Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 12.0.0-beta10 #69

Merged
merged 7 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ public static class EventManager
{ 29, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 30, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("MapGeneration.Distributors.Locker", false, "locker"),
new EventParameter("System.Byte", false, "colliderId"),
new EventParameter("System.Boolean", false, "canOpen")) },
{ 31, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 32, new Event(
Expand Down Expand Up @@ -241,5 +244,95 @@ public static class EventManager
new EventParameter("Respawning.SpawnableTeamType", false, "team")) },
{ 70, new Event(
new EventParameter("Respawning.SpawnableTeamType", false, "team")) },
{ 72, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("System.Boolean", false, "activated")) },
{ 74, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 75, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("System.Boolean", false, "isSuccessful")) },
{ 76, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("InventorySystem.Items.ThrowableProjectiles.ThrowableItem", false, "item"),
new EventParameter("System.Single", false, "forceAmount"),
new EventParameter("System.Single", false, "upwardsFactor"),
new EventParameter("UnityEngine.Vector3", false, "torque"),
new EventParameter("UnityEngine.Vector3", false, "velocity")) },
{ 77, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 78, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 79, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("InventorySystem.Items.ItemBase", false, "item")) },
{ 80, new Event(
new EventParameter("InventorySystem.Items.Pickups.ItemPickupBase", false, "item")) },
{ 81, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
{ 82, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PlayerRoles.PlayableScps.Scp173.Scp173AudioPlayer+Scp173SoundId", false, "soundId")) },
{ 83, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 84, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("System.Boolean", false, "activate")) },
{ 85, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
{ 100, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
{ 86, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
{ 87, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PlayerRoles.PlayableScps.Scp939.Scp939LungeState", false, "state")) },
{ 88, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("IDestructible", false, "target")) },
{ 89, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("System.Int32", false, "amount"),
new EventParameter("PlayerRoles.PlayableScps.Scp079.Scp079HudTranslation", false, "reason")) },
{ 90, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("System.Int32", false, "tier")) },
{ 91, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("TeslaGate", false, "tesla")) },
{ 92, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
{ 101, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
{ 93, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door")) },
{ 94, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door")) },
{ 95, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("MapGeneration.FacilityZone", false, "zone")) },
{ 96, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
{ 97, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target"),
new EventParameter("Ragdoll", false, "body")) },
{ 98, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target"),
new EventParameter("Ragdoll", false, "body"),
new EventParameter("System.Boolean", false, "canResurrct")) },
{ 99, new Event(
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door"),
new EventParameter("System.Boolean", false, "canOpen")) },
};
}
32 changes: 32 additions & 0 deletions NwPluginAPI.Docs/log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,35 @@
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Description'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"18","date_time":"2022-11-25T22:34:24.5497806Z","message_severity":"warning","correlation_id":"90A474DE-CDDE-4F80-BA38-F0C4652A3A06.1.1.185"}
{"message":"Unable to find either toc.yml or toc.md inside obj/api/. Make sure the file is included in config file docfx.json!","source":"BuildCommand.BuildCore.Build Document.CompilePhaseHandlerWithIncremental.TocDocumentProcessor.Prebuild.BuildTocDocument","file":"toc.yml","date_time":"2022-11-25T22:34:30.6938863Z","message_severity":"warning","correlation_id":"90A474DE-CDDE-4F80-BA38-F0C4652A3A06.2.197.1.31.8.3.2.1"}
{"message":"Unable to find either toc.yml or toc.md inside obj/api/. Make sure the file is included in config file docfx.json!","source":"BuildCommand.BuildCore.Build Document.CompilePhaseHandlerWithIncremental.TocDocumentProcessor.Prebuild.BuildTocDocument","file":"toc.yml","date_time":"2022-11-25T22:35:28.35736Z","message_severity":"warning","correlation_id":"B6BAA1EC-D943-4416-83BD-1787F3891C89.2.197.1.31.7.3.2.1"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for GeneratorActivated defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 88, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2345036Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.20"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerActivateGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 106, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.237005Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.21"}
{"message":"Invalid triple slash comment is ignored: <!-- Badly formed XML comment ignored for member \"F:PluginAPI.Enums.ServerEventType.PlayerChangeRadioRange\" -->\r\n","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2390072Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.22"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerCloseGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 162, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2395073Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.23"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerDeactivatedGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 186, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2410079Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.24"}
{"message":"Invalid cref value \"!:Locker\" found in triple-slash-comments for PlayerInteractLocker defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 258, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2440107Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.25"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerOpenGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 298, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2485156Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.26"}
{"message":"Invalid cref value \"!:byte[]\" found in triple-slash-comments for PlayerPreauth defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 330, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2530182Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.27"}
{"message":"Invalid cref value \"!:PlayerEffect\" found in triple-slash-comments for PlayerReceiveEffect defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 338, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2530182Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.28"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerUnlockGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 426, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2565219Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.29"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for PlayerRemoteAdminCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 539, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2610258Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.30"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for PlayerGameConsoleCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 547, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2615272Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.31"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for ConsoleCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 555, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-11T16:20:40.2620274Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.32"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Command'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"14","date_time":"2022-12-11T16:20:41.5756531Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.36"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Aliases'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"16","date_time":"2022-12-11T16:20:41.5756531Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.37"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Description'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"18","date_time":"2022-12-11T16:20:41.5756531Z","message_severity":"warning","correlation_id":"956508AF-F879-40E1-9527-641FDC822B32.1.1.38"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for GeneratorActivated defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 89, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3543844Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.8"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerActivateGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 107, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3588879Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.9"}
{"message":"Invalid triple slash comment is ignored: <!-- Badly formed XML comment ignored for member \"F:PluginAPI.Enums.ServerEventType.PlayerChangeRadioRange\" -->\r\n","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3593886Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.10"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerCloseGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 163, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3608897Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.11"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerDeactivatedGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 187, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.362391Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.12"}
{"message":"Invalid cref value \"!:Locker\" found in triple-slash-comments for PlayerInteractLocker defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 259, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3673953Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.13"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerOpenGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 299, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3774038Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.14"}
{"message":"Invalid cref value \"!:byte[]\" found in triple-slash-comments for PlayerPreauth defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 331, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3839103Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.15"}
{"message":"Invalid cref value \"!:PlayerEffect\" found in triple-slash-comments for PlayerReceiveEffect defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 339, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3844097Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.16"}
{"message":"Invalid cref value \"!:Generator\" found in triple-slash-comments for PlayerUnlockGenerator defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 427, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3904153Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.17"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for PlayerRemoteAdminCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 540, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3984219Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.18"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for PlayerGameConsoleCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 548, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3994235Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.19"}
{"message":"Invalid cref value \"!:string[]\" found in triple-slash-comments for ConsoleCommand defined in ../NwPluginAPI/Enums/ServerEventType.cs Line 556, ignored.","source":"MetadataCommand.ExtractMetadata","date_time":"2022-12-13T17:20:21.3994235Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.20"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Command'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"14","date_time":"2022-12-13T17:20:23.0233169Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.24"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Aliases'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"16","date_time":"2022-12-13T17:20:23.0233169Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.25"}
{"message":"Could not resolve base documentation for 'PluginAPI.Commands.ListCommand.Description'","source":"MetadataCommand.ExtractMetadata","file":"../NwPluginAPI/Commands/ListCommand.cs","line":"18","date_time":"2022-12-13T17:20:23.0233169Z","message_severity":"warning","correlation_id":"9F6F6742-FFC9-482A-AF5B-472A8D594675.1.1.26"}
32 changes: 32 additions & 0 deletions NwPluginAPI/Core/Attributes/PluginPriority.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace PluginAPI.Core.Attributes
{
using Enums;
using System;

/// <summary>
/// Marks a priority for plugin load.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class PluginPriority : Attribute
{
public byte Priority { get; }

/// <summary>
/// Initializes a new instance of the <see cref="PluginPriority"/> class.
/// </summary>
/// <param name="priority">The <see cref="LoadPriority"/>.</param>
public PluginPriority(LoadPriority priority)
{
Priority = (byte)priority;
}

/// <summary>
/// Initializes a new instance of the <see cref="PluginPriority"/> class.
/// </summary>
/// <param name="priority">The <see cref="LoadPriority"/>.</param>
public PluginPriority(byte priority)
{
Priority = priority;
}
}
}
Loading