Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit 7421b67

Browse files
Update 12.0.0-beta10 (#69)
* Update * PriorityAdditions (#67) * Updot * Update docs * Fixes * Last changes Co-authored-by: Jesus QC <69375249+Jesus-QC@users.noreply.github.com>
1 parent 09243c1 commit 7421b67

112 files changed

Lines changed: 19912 additions & 2336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Analyzers/NWPluginAPI.Analyzers/Generated/GeneratedEventManager.cs

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ public static class EventManager
117117
{ 29, new Event(
118118
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
119119
{ 30, new Event(
120-
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
120+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
121+
new EventParameter("MapGeneration.Distributors.Locker", false, "locker"),
122+
new EventParameter("System.Byte", false, "colliderId"),
123+
new EventParameter("System.Boolean", false, "canOpen")) },
121124
{ 31, new Event(
122125
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
123126
{ 32, new Event(
@@ -241,5 +244,95 @@ public static class EventManager
241244
new EventParameter("Respawning.SpawnableTeamType", false, "team")) },
242245
{ 70, new Event(
243246
new EventParameter("Respawning.SpawnableTeamType", false, "team")) },
247+
{ 72, new Event(
248+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
249+
new EventParameter("System.Boolean", false, "activated")) },
250+
{ 74, new Event(
251+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
252+
{ 75, new Event(
253+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
254+
new EventParameter("System.Boolean", false, "isSuccessful")) },
255+
{ 76, new Event(
256+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
257+
new EventParameter("InventorySystem.Items.ThrowableProjectiles.ThrowableItem", false, "item"),
258+
new EventParameter("System.Single", false, "forceAmount"),
259+
new EventParameter("System.Single", false, "upwardsFactor"),
260+
new EventParameter("UnityEngine.Vector3", false, "torque"),
261+
new EventParameter("UnityEngine.Vector3", false, "velocity")) },
262+
{ 77, new Event(
263+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
264+
{ 78, new Event(
265+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
266+
{ 79, new Event(
267+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
268+
new EventParameter("InventorySystem.Items.ItemBase", false, "item")) },
269+
{ 80, new Event(
270+
new EventParameter("InventorySystem.Items.Pickups.ItemPickupBase", false, "item")) },
271+
{ 81, new Event(
272+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
273+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
274+
{ 82, new Event(
275+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
276+
new EventParameter("PlayerRoles.PlayableScps.Scp173.Scp173AudioPlayer+Scp173SoundId", false, "soundId")) },
277+
{ 83, new Event(
278+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
279+
{ 84, new Event(
280+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
281+
new EventParameter("System.Boolean", false, "activate")) },
282+
{ 85, new Event(
283+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
284+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
285+
{ 100, new Event(
286+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
287+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target")) },
288+
{ 86, new Event(
289+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player")) },
290+
{ 87, new Event(
291+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
292+
new EventParameter("PlayerRoles.PlayableScps.Scp939.Scp939LungeState", false, "state")) },
293+
{ 88, new Event(
294+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
295+
new EventParameter("IDestructible", false, "target")) },
296+
{ 89, new Event(
297+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
298+
new EventParameter("System.Int32", false, "amount"),
299+
new EventParameter("PlayerRoles.PlayableScps.Scp079.Scp079HudTranslation", false, "reason")) },
300+
{ 90, new Event(
301+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
302+
new EventParameter("System.Int32", false, "tier")) },
303+
{ 91, new Event(
304+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
305+
new EventParameter("TeslaGate", false, "tesla")) },
306+
{ 92, new Event(
307+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
308+
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
309+
{ 101, new Event(
310+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
311+
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
312+
{ 93, new Event(
313+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
314+
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door")) },
315+
{ 94, new Event(
316+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
317+
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door")) },
318+
{ 95, new Event(
319+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
320+
new EventParameter("MapGeneration.FacilityZone", false, "zone")) },
321+
{ 96, new Event(
322+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
323+
new EventParameter("MapGeneration.RoomIdentifier", false, "room")) },
324+
{ 97, new Event(
325+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
326+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target"),
327+
new EventParameter("Ragdoll", false, "body")) },
328+
{ 98, new Event(
329+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
330+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "target"),
331+
new EventParameter("Ragdoll", false, "body"),
332+
new EventParameter("System.Boolean", false, "canResurrct")) },
333+
{ 99, new Event(
334+
new EventParameter("PluginAPI.Core.Interfaces.IPlayer", false, "player"),
335+
new EventParameter("Interactables.Interobjects.DoorUtils.DoorVariant", false, "door"),
336+
new EventParameter("System.Boolean", false, "canOpen")) },
244337
};
245338
}

NwPluginAPI.Docs/log.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,35 @@
153153
{"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"}
154154
{"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"}
155155
{"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"}
156+
{"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"}
157+
{"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"}
158+
{"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"}
159+
{"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"}
160+
{"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"}
161+
{"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"}
162+
{"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"}
163+
{"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"}
164+
{"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"}
165+
{"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"}
166+
{"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"}
167+
{"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"}
168+
{"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"}
169+
{"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"}
170+
{"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"}
171+
{"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"}
172+
{"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"}
173+
{"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"}
174+
{"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"}
175+
{"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"}
176+
{"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"}
177+
{"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"}
178+
{"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"}
179+
{"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"}
180+
{"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"}
181+
{"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"}
182+
{"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"}
183+
{"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"}
184+
{"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"}
185+
{"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"}
186+
{"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"}
187+
{"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"}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
namespace PluginAPI.Core.Attributes
2+
{
3+
using Enums;
4+
using System;
5+
6+
/// <summary>
7+
/// Marks a priority for plugin load.
8+
/// </summary>
9+
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
10+
public class PluginPriority : Attribute
11+
{
12+
public byte Priority { get; }
13+
14+
/// <summary>
15+
/// Initializes a new instance of the <see cref="PluginPriority"/> class.
16+
/// </summary>
17+
/// <param name="priority">The <see cref="LoadPriority"/>.</param>
18+
public PluginPriority(LoadPriority priority)
19+
{
20+
Priority = (byte)priority;
21+
}
22+
23+
/// <summary>
24+
/// Initializes a new instance of the <see cref="PluginPriority"/> class.
25+
/// </summary>
26+
/// <param name="priority">The <see cref="LoadPriority"/>.</param>
27+
public PluginPriority(byte priority)
28+
{
29+
Priority = priority;
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)