diff --git a/Exiled.API/Features/Items/Item.cs b/Exiled.API/Features/Items/Item.cs index 801b6ec785..0a9bf69f98 100644 --- a/Exiled.API/Features/Items/Item.cs +++ b/Exiled.API/Features/Items/Item.cs @@ -325,6 +325,19 @@ public virtual Pickup CreatePickup(Vector3 position, Quaternion rotation = defau /// A string containing Item-related data. public override string ToString() => $"{Type} ({Serial}) [{Weight}] *{Scale}* ={Owner}="; + /// + /// Changes the owner of the . + /// + /// Old owner. + /// New owner. + public void ChangeItemOwner(Player oldOwner, Player newOwner) + { + if (oldOwner != null && newOwner != null) + { + ChangeOwner(oldOwner, newOwner); + } + } + /// /// Change the owner of the . /// diff --git a/Exiled.API/Features/Log.cs b/Exiled.API/Features/Log.cs index b5dfa57138..caf9cf3317 100644 --- a/Exiled.API/Features/Log.cs +++ b/Exiled.API/Features/Log.cs @@ -156,8 +156,8 @@ public static void Send(string message, Discord.LogLevel level, ConsoleColor col /// Sends an with the provided message if the condition is false and stops the execution. /// For example: /// - /// Player ply = Player.Get(2); - /// Log.Assert(ply is not null, "The player with the id 2 is null"); + /// Player ply = Player.Get(2); + /// Log.Assert(ply is not null, "The player with the id 2 is null"); /// /// results in it logging an error if the player is null and not continuing. /// diff --git a/Exiled.API/Features/Room.cs b/Exiled.API/Features/Room.cs index d5961683c4..b8613d1cbc 100644 --- a/Exiled.API/Features/Room.cs +++ b/Exiled.API/Features/Room.cs @@ -310,9 +310,19 @@ public static Room FindParentRoom(GameObject objectInRoom) /// /// Flickers the room's lights off for a duration. /// - /// Duration in seconds. - public void TurnOffLights(float duration) + /// Duration in seconds, or -1 for an indefinite duration. + public void TurnOffLights(float duration = -1) { + if (duration == -1) + { + foreach (RoomLightController light in RoomLightControllers) + { + light.SetLights(false); + } + + return; + } + foreach (RoomLightController light in RoomLightControllers) { light.ServerFlickerLights(duration); diff --git a/Exiled.API/Features/Scp914.cs b/Exiled.API/Features/Scp914.cs index cabcba0fdd..93ef42e37f 100644 --- a/Exiled.API/Features/Scp914.cs +++ b/Exiled.API/Features/Scp914.cs @@ -64,6 +64,11 @@ public static Scp914Mode ConfigMode /// public static Vector3 OutputPosition => Scp914Controller.OutputChamber.localPosition; + /// + /// Gets the position offset in which item is moving. + /// + public static Vector3 MovingVector => OutputPosition - IntakePosition; + /// /// Gets a value indicating whether SCP-914 is active and currently processing items. /// diff --git a/Exiled.API/Structs/ArmorAmmoLimit.cs b/Exiled.API/Structs/ArmorAmmoLimit.cs index c94718bab6..86046d71ec 100644 --- a/Exiled.API/Structs/ArmorAmmoLimit.cs +++ b/Exiled.API/Structs/ArmorAmmoLimit.cs @@ -50,8 +50,6 @@ public static implicit operator ArmorAmmoLimit(BodyArmor.ArmorAmmoLimit armorLim /// Converts a to its appropriate base game . /// /// armor limit. - public static explicit operator BodyArmor.ArmorAmmoLimit(ArmorAmmoLimit armorLimit) => - new() - { AmmoType = armorLimit.AmmoType.GetItemType(), Limit = armorLimit.Limit }; + public static explicit operator BodyArmor.ArmorAmmoLimit(ArmorAmmoLimit armorLimit) => new() { AmmoType = armorLimit.AmmoType.GetItemType(), Limit = armorLimit.Limit }; } } \ No newline at end of file diff --git a/Exiled.API/Structs/PrimitiveSettings.cs b/Exiled.API/Structs/PrimitiveSettings.cs index 2abae14390..bfc8032da8 100644 --- a/Exiled.API/Structs/PrimitiveSettings.cs +++ b/Exiled.API/Structs/PrimitiveSettings.cs @@ -3,64 +3,64 @@ // Copyright (c) Exiled Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. // -// ----------------------------------------------------------------------- - -namespace Exiled.API.Structs -{ - using UnityEngine; +// ----------------------------------------------------------------------- + +namespace Exiled.API.Structs +{ + using UnityEngine; + + /// + /// Settings for primitives. + /// + public struct PrimitiveSettings + { + /// + /// Initializes a new instance of the struct. + /// + /// The type of the primitive. + /// The color of the primitive. + /// The position of the primitive. + /// The rotation of the primitive. + /// The scale of the primitive. + /// Whether or not the primitive should be spawned. + public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn) + { + PrimitiveType = primitiveType; + Color = color; + Position = position; + Rotation = rotation; + Scale = scale; + Spawn = spawn; + } + + /// + /// Gets the primitive type. + /// + public PrimitiveType PrimitiveType { get; } + + /// + /// Gets the primitive color. + /// + public Color Color { get; } + + /// + /// Gets the primitive position. + /// + public Vector3 Position { get; } + + /// + /// Gets the primitive rotation. + /// + public Vector3 Rotation { get; } + + /// + /// Gets the primitive scale. + /// + public Vector3 Scale { get; } - /// - /// Settings for primitives. - /// - public struct PrimitiveSettings - { - /// - /// Initializes a new instance of the struct. - /// - /// The type of the primitive. - /// The color of the primitive. - /// The position of the primitive. - /// The rotation of the primitive. - /// The scale of the primitive. - /// Whether or not the primitive should be spawned. - public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn) - { - PrimitiveType = primitiveType; - Color = color; - Position = position; - Rotation = rotation; - Scale = scale; - Spawn = spawn; - } - - /// - /// Gets the primitive type. - /// - public PrimitiveType PrimitiveType { get; } - - /// - /// Gets the primitive color. - /// - public Color Color { get; } - - /// - /// Gets the primitive position. - /// - public Vector3 Position { get; } - - /// - /// Gets the primitive rotation. - /// - public Vector3 Rotation { get; } - - /// - /// Gets the primitive scale. - /// - public Vector3 Scale { get; } - - /// - /// Gets a value indicating whether or not the primitive should be spawned. - /// - public bool Spawn { get; } - } + /// + /// Gets a value indicating whether or not the primitive should be spawned. + /// + public bool Spawn { get; } + } } \ No newline at end of file diff --git a/Exiled.Events/EventArgs/Cassie/SendingCassieMessageEventArgs.cs b/Exiled.Events/EventArgs/Cassie/SendingCassieMessageEventArgs.cs index acbeb7eb3d..c21f7c9f6b 100644 --- a/Exiled.Events/EventArgs/Cassie/SendingCassieMessageEventArgs.cs +++ b/Exiled.Events/EventArgs/Cassie/SendingCassieMessageEventArgs.cs @@ -10,21 +10,21 @@ namespace Exiled.Events.EventArgs.Cassie using Interfaces; /// - /// Contains all the information after sending a C.A.S.S.I.E. message. + /// Contains all the information after sending a C.A.S.S.I.E. message. /// public class SendingCassieMessageEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// Indicates whether the event can be executed or not. public SendingCassieMessageEventArgs(string words, bool makeHold, bool makeNoise, bool isAllowed = true) @@ -36,22 +36,22 @@ public SendingCassieMessageEventArgs(string words, bool makeHold, bool makeNoise } /// - /// Gets or sets the message. + /// Gets or sets the message. /// public string Words { get; set; } /// - /// Gets or sets a value indicating whether or not the message should be held. + /// Gets or sets a value indicating whether or not the message should be held. /// public bool MakeHold { get; set; } /// - /// Gets or sets a value indicating whether or not the message should make noise. + /// Gets or sets a value indicating whether or not the message should make noise. /// public bool MakeNoise { get; set; } /// - /// Gets or sets a value indicating whether or not the message can be sent. + /// Gets or sets a value indicating whether or not the message can be sent. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IAttackerEvent.cs b/Exiled.Events/EventArgs/Interfaces/IAttackerEvent.cs index 9c0e008028..f69b43cadd 100644 --- a/Exiled.Events/EventArgs/Interfaces/IAttackerEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IAttackerEvent.cs @@ -11,17 +11,17 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features.DamageHandlers; /// - /// Event args for when a player is taking damage. + /// Event args for when a player is taking damage. /// public interface IAttackerEvent : IPlayerEvent { /// - /// Gets the attacker . + /// Gets the attacker . /// public Player Attacker { get; } /// - /// Gets or sets the managing the damage to the target. + /// Gets or sets the managing the damage to the target. /// public CustomDamageHandler DamageHandler { get; set; } } diff --git a/Exiled.Events/EventArgs/Interfaces/ICameraEvent.cs b/Exiled.Events/EventArgs/Interfaces/ICameraEvent.cs index ad837509d5..53aadf762a 100644 --- a/Exiled.Events/EventArgs/Interfaces/ICameraEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/ICameraEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface ICameraEvent : IExiledEvent { /// - /// Gets or sets the triggering the event. + /// Gets or sets the triggering the event. /// public Camera Camera { get; set; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IDeniableEvent.cs b/Exiled.Events/EventArgs/Interfaces/IDeniableEvent.cs index 2747b45d12..41a4e78eac 100644 --- a/Exiled.Events/EventArgs/Interfaces/IDeniableEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IDeniableEvent.cs @@ -8,12 +8,12 @@ namespace Exiled.Events.EventArgs.Interfaces { /// - /// Event args for events that can be allowed or denied. + /// Event args for events that can be allowed or denied. /// public interface IDeniableEvent : IExiledEvent { /// - /// Gets or sets a value indicating whether or not the event is allowed to continue. + /// Gets or sets a value indicating whether or not the event is allowed to continue. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IDoorEvent.cs b/Exiled.Events/EventArgs/Interfaces/IDoorEvent.cs index b1060d6033..34a02f036d 100644 --- a/Exiled.Events/EventArgs/Interfaces/IDoorEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IDoorEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Doors; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IDoorEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Door Door { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IExiledEvent.cs b/Exiled.Events/EventArgs/Interfaces/IExiledEvent.cs index 05e651f50c..1e1c55bfc6 100644 --- a/Exiled.Events/EventArgs/Interfaces/IExiledEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IExiledEvent.cs @@ -8,7 +8,7 @@ namespace Exiled.Events.EventArgs.Interfaces { /// - /// The base Exiled Event Args interface to be used by all other event arg interfaces/classes. + /// The base Exiled Event Args interface to be used by all other event arg interfaces/classes. /// public interface IExiledEvent { diff --git a/Exiled.Events/EventArgs/Interfaces/IFirearmEvent.cs b/Exiled.Events/EventArgs/Interfaces/IFirearmEvent.cs index 0fdb3f4a4f..9f73249a04 100644 --- a/Exiled.Events/EventArgs/Interfaces/IFirearmEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IFirearmEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features.Items; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IFirearmEvent : IItemEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Firearm Firearm { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IGeneratorEvent.cs b/Exiled.Events/EventArgs/Interfaces/IGeneratorEvent.cs index b5afc3cc90..479636f7ac 100644 --- a/Exiled.Events/EventArgs/Interfaces/IGeneratorEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IGeneratorEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IGeneratorEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Generator Generator { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IItemEvent.cs b/Exiled.Events/EventArgs/Interfaces/IItemEvent.cs index 603aa2c937..978cb2bc79 100644 --- a/Exiled.Events/EventArgs/Interfaces/IItemEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IItemEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features.Items; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IItemEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Item Item { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IPickupEvent.cs b/Exiled.Events/EventArgs/Interfaces/IPickupEvent.cs index 6ce4463685..d1defc0936 100644 --- a/Exiled.Events/EventArgs/Interfaces/IPickupEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IPickupEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Pickups; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IPickupEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Pickup Pickup { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IPlayerEvent.cs b/Exiled.Events/EventArgs/Interfaces/IPlayerEvent.cs index 62d064bf1b..46c7e2aaf2 100644 --- a/Exiled.Events/EventArgs/Interfaces/IPlayerEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IPlayerEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IPlayerEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IRagdollEvent.cs b/Exiled.Events/EventArgs/Interfaces/IRagdollEvent.cs index 84147ba835..fe1fd61ada 100644 --- a/Exiled.Events/EventArgs/Interfaces/IRagdollEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IRagdollEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IRagdollEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Ragdoll Ragdoll { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IRoomEvent.cs b/Exiled.Events/EventArgs/Interfaces/IRoomEvent.cs index aa38d42509..c1bc250e3d 100644 --- a/Exiled.Events/EventArgs/Interfaces/IRoomEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IRoomEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IRoomEvent : IExiledEvent { /// - /// Gets the that is a part of the event. + /// Gets the that is a part of the event. /// public Room Room { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp0492Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp0492Event.cs index 3a01e27306..65f6edd226 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp0492Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp0492Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp0492Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp0492Role Scp0492 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp049Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp049Event.cs index b397c05e83..29d5e73273 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp049Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp049Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp049Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp049Role Scp049 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp079Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp079Event.cs index df91d55e54..6a2ddae8f6 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp079Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp079Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp079Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp079Role Scp079 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp096Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp096Event.cs index d742c5b8a2..faafdbcb48 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp096Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp096Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp096Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp096Role Scp096 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp106Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp106Event.cs index 32d3971b6c..2fb8751672 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp106Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp106Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp106Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp106Role Scp106 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp173Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp173Event.cs index 7358e66d2d..c9b2f6eb1f 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp173Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp173Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp173Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp173Role Scp173 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp3114Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp3114Event.cs index b9ce041be5..5683a7a7ae 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp3114Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp3114Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp3114Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp3114Role Scp3114 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IScp939Event.cs b/Exiled.Events/EventArgs/Interfaces/IScp939Event.cs index fd4801ef6b..12aed0e088 100644 --- a/Exiled.Events/EventArgs/Interfaces/IScp939Event.cs +++ b/Exiled.Events/EventArgs/Interfaces/IScp939Event.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Roles; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IScp939Event : IPlayerEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Scp939Role Scp939 { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/ITeslaEvent.cs b/Exiled.Events/EventArgs/Interfaces/ITeslaEvent.cs index b5ff5a6f9c..3f6c95287a 100644 --- a/Exiled.Events/EventArgs/Interfaces/ITeslaEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/ITeslaEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using API.Features; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface ITeslaEvent : IExiledEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public TeslaGate Tesla { get; } } diff --git a/Exiled.Events/EventArgs/Interfaces/IUsableEvent.cs b/Exiled.Events/EventArgs/Interfaces/IUsableEvent.cs index 8b8d77ba5e..6c34c16e8a 100644 --- a/Exiled.Events/EventArgs/Interfaces/IUsableEvent.cs +++ b/Exiled.Events/EventArgs/Interfaces/IUsableEvent.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Interfaces using Exiled.API.Features.Items; /// - /// Event args used for all related events. + /// Event args used for all related events. /// public interface IUsableEvent : IItemEvent { /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Usable Usable { get; } } diff --git a/Exiled.Events/EventArgs/Item/ChangingAttachmentsEventArgs.cs b/Exiled.Events/EventArgs/Item/ChangingAttachmentsEventArgs.cs index be50fbd8be..0e1c8fbed3 100644 --- a/Exiled.Events/EventArgs/Item/ChangingAttachmentsEventArgs.cs +++ b/Exiled.Events/EventArgs/Item/ChangingAttachmentsEventArgs.cs @@ -21,22 +21,22 @@ namespace Exiled.Events.EventArgs.Item using InventorySystem.Items.Firearms.Attachments; /// - /// Contains all information before changing item attachments. + /// Contains all information before changing item attachments. /// public class ChangingAttachmentsEventArgs : IPlayerEvent, IDeniableEvent, IFirearmEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// The attachments code. /// - /// + /// /// public ChangingAttachmentsEventArgs( Player player, @@ -54,32 +54,32 @@ public ChangingAttachmentsEventArgs( } /// - /// Gets the old . + /// Gets the old . /// public IEnumerable CurrentAttachmentIdentifiers { get; } /// - /// Gets or sets the new . + /// Gets or sets the new . /// public List NewAttachmentIdentifiers { get; set; } /// - /// Gets the code. + /// Gets the code. /// public uint CurrentCode { get; } /// - /// Gets the code. + /// Gets the code. /// public uint NewCode { get; } /// - /// Gets or sets a value indicating whether or not the attachments can be changed. + /// Gets or sets a value indicating whether or not the attachments can be changed. /// public bool IsAllowed { get; set; } /// - /// Gets the which is being modified. + /// Gets the which is being modified. /// public Firearm Firearm { get; } @@ -87,7 +87,7 @@ public ChangingAttachmentsEventArgs( public Item Item => Firearm; /// - /// Gets the who's changing attachments. + /// Gets the who's changing attachments. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Item/ReceivingPreferenceEventArgs.cs b/Exiled.Events/EventArgs/Item/ReceivingPreferenceEventArgs.cs index 5cef77e0ca..72e04e534a 100644 --- a/Exiled.Events/EventArgs/Item/ReceivingPreferenceEventArgs.cs +++ b/Exiled.Events/EventArgs/Item/ReceivingPreferenceEventArgs.cs @@ -19,27 +19,27 @@ namespace Exiled.Events.EventArgs.Item using Interfaces; /// - /// Contains all information before receiving a preference. + /// Contains all information before receiving a preference. /// public class ReceivingPreferenceEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ReceivingPreferenceEventArgs(Player player, ItemType itemType, uint currentCode, uint newCode, bool isAllowed = true) { @@ -52,27 +52,27 @@ public ReceivingPreferenceEventArgs(Player player, ItemType itemType, uint curre } /// - /// Gets the which is being modified. + /// Gets the which is being modified. /// public FirearmType Item { get; } /// - /// Gets the old []. + /// Gets the old []. /// public IEnumerable CurrentAttachmentIdentifiers { get; } /// - /// Gets or sets the new of . + /// Gets or sets the new of . /// public List NewAttachmentIdentifiers { get; set; } /// - /// Gets the current attachments code. + /// Gets the current attachments code. /// public uint CurrentCode { get; } /// - /// Gets or sets the new attachments code. + /// Gets or sets the new attachments code. /// public uint NewCode { @@ -81,12 +81,12 @@ public uint NewCode } /// - /// Gets or sets a value indicating whether or not the attachments preference is allowed. + /// Gets or sets a value indicating whether or not the attachments preference is allowed. /// public bool IsAllowed { get; set; } /// - /// Gets the who's changing attachments. + /// Gets the who's changing attachments. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Item/UsingRadioPickupBatteryEventArgs.cs b/Exiled.Events/EventArgs/Item/UsingRadioPickupBatteryEventArgs.cs new file mode 100644 index 0000000000..5367b43630 --- /dev/null +++ b/Exiled.Events/EventArgs/Item/UsingRadioPickupBatteryEventArgs.cs @@ -0,0 +1,45 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.EventArgs.Item +{ + using Exiled.API.Features.Pickups; + using Exiled.Events.EventArgs.Interfaces; + + /// + /// Contains all information before radio pickup battery drains. + /// + public class UsingRadioPickupBatteryEventArgs : IDeniableEvent, IPickupEvent + { + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + public UsingRadioPickupBatteryEventArgs(InventorySystem.Items.Radio.RadioPickup pickup, float drain, bool isAllowed = true) + { + RadioPickup = Pickup.Get(pickup).As(); + Drain = drain; + IsAllowed = isAllowed; + } + + /// + public bool IsAllowed { get; set; } + + /// + public Pickup Pickup => RadioPickup; + + /// + public RadioPickup RadioPickup { get; } + + /// + /// Gets or sets the radio percent drain. + /// + public float Drain { get; set; } + } +} \ No newline at end of file diff --git a/Exiled.Events/EventArgs/Map/AnnouncingDecontaminationEventArgs.cs b/Exiled.Events/EventArgs/Map/AnnouncingDecontaminationEventArgs.cs index 56949b40d2..6b13ed6a55 100644 --- a/Exiled.Events/EventArgs/Map/AnnouncingDecontaminationEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/AnnouncingDecontaminationEventArgs.cs @@ -13,18 +13,18 @@ namespace Exiled.Events.EventArgs.Map using static LightContainmentZoneDecontamination.DecontaminationController.DecontaminationPhase; /// - /// Contains all information before C.A.S.S.I.E announces light containment zone decontamination. + /// Contains all information before C.A.S.S.I.E announces light containment zone decontamination. /// public class AnnouncingDecontaminationEventArgs : IExiledEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public AnnouncingDecontaminationEventArgs(int announcementId, PhaseFunction phaseFunction) { @@ -34,22 +34,22 @@ public AnnouncingDecontaminationEventArgs(int announcementId, PhaseFunction phas } /// - /// Gets the announcement id, from 0 to 6. + /// Gets the announcement id, from 0 to 6. /// public int Id { get; } /// - /// Gets the announcement id, from 0 to 6. + /// Gets the announcement id, from 0 to 6. /// public DecontaminationState State => (DecontaminationState)Id; /// - /// Gets a value indicating whether the action will be. + /// Gets a value indicating whether the action will be. /// public PhaseFunction PhaseFunction { get; } /// - /// Gets a value indicating whether the announcement is going to be global or not. + /// Gets a value indicating whether the announcement is going to be global or not. /// public bool IsGlobal { get; } } diff --git a/Exiled.Events/EventArgs/Map/AnnouncingNtfEntranceEventArgs.cs b/Exiled.Events/EventArgs/Map/AnnouncingNtfEntranceEventArgs.cs index a19357a33d..7f701de084 100644 --- a/Exiled.Events/EventArgs/Map/AnnouncingNtfEntranceEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/AnnouncingNtfEntranceEventArgs.cs @@ -10,24 +10,24 @@ namespace Exiled.Events.EventArgs.Map using Interfaces; /// - /// Contains all information before C.A.S.S.I.E announces the NTF entrance. + /// Contains all information before C.A.S.S.I.E announces the NTF entrance. /// public class AnnouncingNtfEntranceEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public AnnouncingNtfEntranceEventArgs(int scpsLeft, string unitName, int unitNumber, bool isAllowed = true) { @@ -38,22 +38,22 @@ public AnnouncingNtfEntranceEventArgs(int scpsLeft, string unitName, int unitNum } /// - /// Gets or sets the number of SCPs left. + /// Gets or sets the number of SCPs left. /// public int ScpsLeft { get; set; } /// - /// Gets or sets the NTF unit name. + /// Gets or sets the NTF unit name. /// public string UnitName { get; set; } /// - /// Gets or sets the NTF unit number. + /// Gets or sets the NTF unit number. /// public int UnitNumber { get; set; } /// - /// Gets or sets a value indicating whether or not the NTF spawn will be announced by C.A.S.S.I.E. + /// Gets or sets a value indicating whether or not the NTF spawn will be announced by C.A.S.S.I.E. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Map/AnnouncingScpTerminationEventArgs.cs b/Exiled.Events/EventArgs/Map/AnnouncingScpTerminationEventArgs.cs index 298c2f291c..2636eb26fd 100644 --- a/Exiled.Events/EventArgs/Map/AnnouncingScpTerminationEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/AnnouncingScpTerminationEventArgs.cs @@ -17,21 +17,21 @@ namespace Exiled.Events.EventArgs.Map using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before C.A.S.S.I.E announces an SCP termination. + /// Contains all information before C.A.S.S.I.E announces an SCP termination. /// public class AnnouncingScpTerminationEventArgs : IAttackerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public AnnouncingScpTerminationEventArgs(Player scp, DamageHandlerBase damageHandlerBase, bool isAllowed = true) { @@ -44,32 +44,32 @@ public AnnouncingScpTerminationEventArgs(Player scp, DamageHandlerBase damageHan } /// - /// Gets the killed . + /// Gets the killed . /// public Role Role { get; } /// - /// Gets or sets the termination cause. + /// Gets or sets the termination cause. /// public string TerminationCause { get; set; } /// - /// Gets the player the announcement is being played for. + /// Gets the player the announcement is being played for. /// public Player Player { get; } /// - /// Gets the player who killed the SCP. + /// Gets the player who killed the SCP. /// public Player Attacker { get; } /// - /// Gets or sets the . + /// Gets or sets the . /// public CustomDamageHandler DamageHandler { get; set; } /// - /// Gets or sets a value indicating whether or not the SCP termination will be announced by C.A.S.S.I.E. + /// Gets or sets a value indicating whether or not the SCP termination will be announced by C.A.S.S.I.E. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Map/ChangingIntoGrenadeEventArgs.cs b/Exiled.Events/EventArgs/Map/ChangingIntoGrenadeEventArgs.cs index f29358d4ba..765d38f61b 100644 --- a/Exiled.Events/EventArgs/Map/ChangingIntoGrenadeEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/ChangingIntoGrenadeEventArgs.cs @@ -14,12 +14,12 @@ namespace Exiled.Events.EventArgs.Map using InventorySystem.Items.ThrowableProjectiles; /// - /// Contains all information for when the server is turning a pickup into a live grenade. + /// Contains all information for when the server is turning a pickup into a live grenade. /// public class ChangingIntoGrenadeEventArgs : IDeniableEvent, IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The being changed. public ChangingIntoGrenadeEventArgs(TimedGrenadePickup pickup) @@ -42,7 +42,7 @@ public ChangingIntoGrenadeEventArgs(TimedGrenadePickup pickup) public ItemType Type { get; set; } /// - /// Gets or sets a value indicating whether the pickup will be changed. + /// Gets or sets a value indicating whether the pickup will be changed. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Map/DecontaminatingEventArgs.cs b/Exiled.Events/EventArgs/Map/DecontaminatingEventArgs.cs index 588ef4d3db..6bce5e7801 100644 --- a/Exiled.Events/EventArgs/Map/DecontaminatingEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/DecontaminatingEventArgs.cs @@ -10,15 +10,15 @@ namespace Exiled.Events.EventArgs.Map using Interfaces; /// - /// Contains all information before decontaminating the light containment zone. + /// Contains all information before decontaminating the light containment zone. /// public class DecontaminatingEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public DecontaminatingEventArgs(bool isAllowed = true) { @@ -26,7 +26,7 @@ public DecontaminatingEventArgs(bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not light containment zone decontamination can begin. + /// Gets or sets a value indicating whether or not light containment zone decontamination can begin. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Map/ExplodingGrenadeEventArgs.cs b/Exiled.Events/EventArgs/Map/ExplodingGrenadeEventArgs.cs index 2c21cfde45..7fadaccfbe 100644 --- a/Exiled.Events/EventArgs/Map/ExplodingGrenadeEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/ExplodingGrenadeEventArgs.cs @@ -23,7 +23,7 @@ namespace Exiled.Events.EventArgs.Map using UnityEngine; /// - /// Contains all information before a grenade explodes. + /// Contains all information before a grenade explodes. /// public class ExplodingGrenadeEventArgs : IPlayerEvent, IDeniableEvent { @@ -80,16 +80,16 @@ public ExplodingGrenadeEventArgs(Footprint thrower, Vector3 position, ExplosionG } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ExplodingGrenadeEventArgs(Player thrower, EffectGrenade grenade, bool isAllowed = true) { @@ -114,7 +114,7 @@ public ExplodingGrenadeEventArgs(Player thrower, EffectGrenade grenade, bool isA public Vector3 Position { get; } /// - /// Gets the players who could be affected by the grenade, if any, and the damage that be dealt. + /// Gets the players who could be affected by the grenade, if any, and the damage that be dealt. /// public List TargetsToAffect { get; } @@ -124,12 +124,12 @@ public ExplodingGrenadeEventArgs(Player thrower, EffectGrenade grenade, bool isA public EffectGrenadeProjectile Projectile { get; } /// - /// Gets or sets a value indicating whether or not the grenade can be thrown. + /// Gets or sets a value indicating whether or not the grenade can be thrown. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player who thrown the grenade. + /// Gets the player who thrown the grenade. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Map/FillingLockerEventArgs.cs b/Exiled.Events/EventArgs/Map/FillingLockerEventArgs.cs index 954b419cf0..f50a87182f 100644 --- a/Exiled.Events/EventArgs/Map/FillingLockerEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/FillingLockerEventArgs.cs @@ -15,18 +15,18 @@ namespace Exiled.Events.EventArgs.Map using MapGeneration.Distributors; /// - /// Contains all information before the server spawns an item in locker. + /// Contains all information before the server spawns an item in locker. /// public class FillingLockerEventArgs : IDeniableEvent, IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public FillingLockerEventArgs(ItemPickupBase pickupBase, LockerChamber lockerChamber) { @@ -35,17 +35,17 @@ public FillingLockerEventArgs(ItemPickupBase pickupBase, LockerChamber lockerCha } /// - /// Gets a value indicating the item being spawned. + /// Gets a value indicating the item being spawned. /// public Pickup Pickup { get; } /// - /// Gets a value indicating the target locker chamber. + /// Gets a value indicating the target locker chamber. /// public LockerChamber LockerChamber { get; } /// - /// Gets or sets a value indicating whether or not the item can be spawned. + /// Gets or sets a value indicating whether or not the item can be spawned. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Map/GeneratorActivatingEventArgs.cs b/Exiled.Events/EventArgs/Map/GeneratorActivatingEventArgs.cs index f4e1fca145..aa8fad27ec 100644 --- a/Exiled.Events/EventArgs/Map/GeneratorActivatingEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/GeneratorActivatingEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Map using MapGeneration.Distributors; /// - /// Contains all information after activating a generator. + /// Contains all information after activating a generator. /// public class GeneratorActivatingEventArgs : IGeneratorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public GeneratorActivatingEventArgs(Scp079Generator generator, bool isAllowed = true) { @@ -34,12 +34,12 @@ public GeneratorActivatingEventArgs(Scp079Generator generator, bool isAllowed = } /// - /// Gets the generator. + /// Gets the generator. /// public Generator Generator { get; } /// - /// Gets or sets a value indicating whether the generator can be activated or not. + /// Gets or sets a value indicating whether the generator can be activated or not. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Map/PickupAddedEventArgs.cs b/Exiled.Events/EventArgs/Map/PickupAddedEventArgs.cs index cffd4ecd49..6b1c175234 100644 --- a/Exiled.Events/EventArgs/Map/PickupAddedEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/PickupAddedEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Map using InventorySystem.Items.Pickups; /// - /// Contains all information after the server spawns a pickup. + /// Contains all information after the server spawns a pickup. /// public class PickupAddedEventArgs : IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public PickupAddedEventArgs(ItemPickupBase pickupBase) { @@ -28,7 +28,7 @@ public PickupAddedEventArgs(ItemPickupBase pickupBase) } /// - /// Gets a value indicating the pickup being spawned. + /// Gets a value indicating the pickup being spawned. /// public Pickup Pickup { get; } } diff --git a/Exiled.Events/EventArgs/Map/PickupDestroyedEventArgs.cs b/Exiled.Events/EventArgs/Map/PickupDestroyedEventArgs.cs index 751fc5fba8..982073b9a1 100644 --- a/Exiled.Events/EventArgs/Map/PickupDestroyedEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/PickupDestroyedEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Map using InventorySystem.Items.Pickups; /// - /// Contains all information after the server destroys a pickup. + /// Contains all information after the server destroys a pickup. /// public class PickupDestroyedEventArgs : IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public PickupDestroyedEventArgs(ItemPickupBase pickupBase) { @@ -28,7 +28,7 @@ public PickupDestroyedEventArgs(ItemPickupBase pickupBase) } /// - /// Gets a value indicating the pickup being destroyed. + /// Gets a value indicating the pickup being destroyed. /// public Pickup Pickup { get; } } diff --git a/Exiled.Events/EventArgs/Map/PlacingBloodEventArgs.cs b/Exiled.Events/EventArgs/Map/PlacingBloodEventArgs.cs index bfe1cedaf8..58a06aeaf4 100644 --- a/Exiled.Events/EventArgs/Map/PlacingBloodEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/PlacingBloodEventArgs.cs @@ -14,24 +14,24 @@ namespace Exiled.Events.EventArgs.Map using UnityEngine; /// - /// Contains all information before placing a blood decal. + /// Contains all information before placing a blood decal. /// public class PlacingBloodEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public PlacingBloodEventArgs(Player player, Player target, RaycastHit hit, bool isAllowed = true) { @@ -42,22 +42,22 @@ public PlacingBloodEventArgs(Player player, Player target, RaycastHit hit, bool } /// - /// Gets the who's placing the blood. + /// Gets the who's placing the blood. /// public Player Player { get; } /// - /// Gets the target's instance. + /// Gets the target's instance. /// public Player Target { get; } /// - /// Gets or sets the blood placing position. + /// Gets or sets the blood placing position. /// public Vector3 Position { get; set; } /// - /// Gets or sets a value indicating whether or not the blood can be placed. + /// Gets or sets a value indicating whether or not the blood can be placed. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Map/PlacingBulletHoleEventArgs.cs b/Exiled.Events/EventArgs/Map/PlacingBulletHoleEventArgs.cs index 6869d87819..8e237af27e 100644 --- a/Exiled.Events/EventArgs/Map/PlacingBulletHoleEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/PlacingBulletHoleEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Map using UnityEngine; /// - /// Contains all information before placing a bullet hole decal. + /// Contains all information before placing a bullet hole decal. /// public class PlacingBulletHoleEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public PlacingBulletHoleEventArgs(Player owner, RaycastHit hit) { @@ -35,22 +35,22 @@ public PlacingBulletHoleEventArgs(Player owner, RaycastHit hit) } /// - /// Gets or sets the decal position. + /// Gets or sets the decal position. /// public Vector3 Position { get; set; } /// - /// Gets or sets the decal rotation. + /// Gets or sets the decal rotation. /// public Quaternion Rotation { get; set; } /// - /// Gets or sets a value indicating whether or not the decal can be placed. + /// Gets or sets a value indicating whether or not the decal can be placed. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the decal owner. + /// Gets the decal owner. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Map/SpawningItemEventArgs.cs b/Exiled.Events/EventArgs/Map/SpawningItemEventArgs.cs index 0cb31843de..7e1ef1cf66 100644 --- a/Exiled.Events/EventArgs/Map/SpawningItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/SpawningItemEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Map using InventorySystem.Items.Pickups; /// - /// Contains all information before the server spawns an item. + /// Contains all information before the server spawns an item. /// public class SpawningItemEventArgs : IDeniableEvent, IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public SpawningItemEventArgs(ItemPickupBase pickupBase, bool shouldInitiallySpawn, DoorVariant door) { @@ -38,26 +38,26 @@ public SpawningItemEventArgs(ItemPickupBase pickupBase, bool shouldInitiallySpaw } /// - /// Gets a value indicating the pickup being spawned. + /// Gets a value indicating the pickup being spawned. /// public Pickup Pickup { get; } /// - /// Gets or sets a value indicating whether or not the item will be initially spawned. + /// Gets or sets a value indicating whether or not the item will be initially spawned. /// public bool ShouldInitiallySpawn { get; set; } /// - /// Gets or sets a value indicating the trigger door for pickup. + /// Gets or sets a value indicating the trigger door for pickup. /// /// - /// Works only when is false. - /// null when is true. + /// Works only when is false. + /// null when is true. /// public Door TriggerDoor { get; set; } /// - /// Gets or sets a value indicating whether or not the item can be spawned. + /// Gets or sets a value indicating whether or not the item can be spawned. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Map/SpawningTeamVehicleEventArgs.cs b/Exiled.Events/EventArgs/Map/SpawningTeamVehicleEventArgs.cs index c412c6f2ab..6cc821d7ac 100644 --- a/Exiled.Events/EventArgs/Map/SpawningTeamVehicleEventArgs.cs +++ b/Exiled.Events/EventArgs/Map/SpawningTeamVehicleEventArgs.cs @@ -11,18 +11,18 @@ namespace Exiled.Events.EventArgs.Map using Respawning; /// - /// Contains all information before the server spawns a team's respawn vehicle. + /// Contains all information before the server spawns a team's respawn vehicle. /// public class SpawningTeamVehicleEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// The team who the vehicle belongs to. + /// The team who the vehicle belongs to. /// /// - /// + /// /// public SpawningTeamVehicleEventArgs(SpawnableTeamType team, bool isAllowed = true) { @@ -31,12 +31,12 @@ public SpawningTeamVehicleEventArgs(SpawnableTeamType team, bool isAllowed = tru } /// - /// Gets or sets which vehicle should spawn. + /// Gets or sets which vehicle should spawn. /// public SpawnableTeamType Team { get; set; } /// - /// Gets or sets a value indicating whether or not the vehicle can be spawned. + /// Gets or sets a value indicating whether or not the vehicle can be spawned. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/ActivatingGeneratorEventArgs.cs b/Exiled.Events/EventArgs/Player/ActivatingGeneratorEventArgs.cs index 9a7fc1beb7..b3ca6d9ccb 100644 --- a/Exiled.Events/EventArgs/Player/ActivatingGeneratorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ActivatingGeneratorEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a player filps the switch to a generator. + /// Contains all information before a player filps the switch to a generator. /// public class ActivatingGeneratorEventArgs : IPlayerEvent, IGeneratorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ActivatingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true) { @@ -38,17 +38,17 @@ public ActivatingGeneratorEventArgs(Player player, Scp079Generator generator, bo } /// - /// Gets or sets a value indicating whether or not the switch can be flipped. + /// Gets or sets a value indicating whether or not the switch can be flipped. /// public bool IsAllowed { get; set; } /// - /// Gets the instance. + /// Gets the instance. /// public Generator Generator { get; } /// - /// Gets the player who's filpping the switch to the generator. + /// Gets the player who's filpping the switch to the generator. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ActivatingWarheadPanelEventArgs.cs b/Exiled.Events/EventArgs/Player/ActivatingWarheadPanelEventArgs.cs index f12af5a357..535dc0ad11 100644 --- a/Exiled.Events/EventArgs/Player/ActivatingWarheadPanelEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ActivatingWarheadPanelEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player activates the warhead panel. + /// Contains all information before a player activates the warhead panel. /// public class ActivatingWarheadPanelEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ActivatingWarheadPanelEventArgs(Player player, bool isAllowed = true) { @@ -32,12 +32,12 @@ public ActivatingWarheadPanelEventArgs(Player player, bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not the warhead can be activated. + /// Gets or sets a value indicating whether or not the warhead can be activated. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's trying to activate the warhead panel. + /// Gets the player who's trying to activate the warhead panel. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ActivatingWorkstationEventArgs.cs b/Exiled.Events/EventArgs/Player/ActivatingWorkstationEventArgs.cs index 8a530dbeb0..db84492c0c 100644 --- a/Exiled.Events/EventArgs/Player/ActivatingWorkstationEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ActivatingWorkstationEventArgs.cs @@ -16,21 +16,21 @@ namespace Exiled.Events.EventArgs.Player using static InventorySystem.Items.Firearms.Attachments.WorkstationController; /// - /// Contains all information before a player activates a workstation. + /// Contains all information before a player activates a workstation. /// public class ActivatingWorkstationEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ActivatingWorkstationEventArgs(Player player, WorkstationController controller, bool isAllowed = true) { @@ -40,22 +40,22 @@ public ActivatingWorkstationEventArgs(Player player, WorkstationController contr } /// - /// Gets the workstation. + /// Gets the workstation. /// public WorkstationController WorkstationController { get; } /// - /// Gets or sets the workstation status. + /// Gets or sets the workstation status. /// public WorkstationStatus NewStatus { get; set; } = WorkstationStatus.PoweringUp; /// - /// Gets or sets a value indicating whether or not the workstation can be activated. + /// Gets or sets a value indicating whether or not the workstation can be activated. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's trying to activate the workstation. + /// Gets the player who's trying to activate the workstation. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/AimingDownSightEventArgs.cs b/Exiled.Events/EventArgs/Player/AimingDownSightEventArgs.cs index 7d3ceb4006..eebbae5a3a 100644 --- a/Exiled.Events/EventArgs/Player/AimingDownSightEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/AimingDownSightEventArgs.cs @@ -13,25 +13,25 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information when a player aims. + /// Contains all information when a player aims. /// // TODO: remove stupid AdsIn/AdsOut propetry, and let exists only one public class AimingDownSightEventArgs : IPlayerEvent, IFirearmEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public AimingDownSightEventArgs(Player player, Firearm firearm, bool adsIn, bool adsOut) { @@ -42,17 +42,17 @@ public AimingDownSightEventArgs(Player player, Firearm firearm, bool adsIn, bool } /// - /// Gets a value indicating whether or not the player is aiming down sight in. + /// Gets a value indicating whether or not the player is aiming down sight in. /// public bool AdsIn { get; } /// - /// Gets a value indicating whether or not the player is aiming down sight out. + /// Gets a value indicating whether or not the player is aiming down sight out. /// public bool AdsOut { get; } /// - /// Gets the used to trigger the aim action. + /// Gets the used to trigger the aim action. /// public Firearm Firearm { get; } @@ -60,7 +60,7 @@ public AimingDownSightEventArgs(Player player, Firearm firearm, bool adsIn, bool public Item Item => Firearm; /// - /// Gets the player who's triggering the aim action. + /// Gets the player who's triggering the aim action. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/BannedEventArgs.cs b/Exiled.Events/EventArgs/Player/BannedEventArgs.cs index 8eb2a7f178..0d55acc865 100644 --- a/Exiled.Events/EventArgs/Player/BannedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/BannedEventArgs.cs @@ -12,12 +12,12 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after banning a player from the server. + /// Contains all information after banning a player from the server. /// public class BannedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -34,27 +34,27 @@ public BannedEventArgs(Player target, Player issuer, BanDetails details, BanHand } /// - /// Gets the banned player. + /// Gets the banned player. /// public Player Target { get; } /// - /// Gets the issuer player. + /// Gets the issuer player. /// public Player Player { get; } /// - /// Gets the ban details. + /// Gets the ban details. /// public BanDetails Details { get; } /// - /// Gets the ban type. + /// Gets the ban type. /// public BanHandler.BanType Type { get; } /// - /// Gets a value indicating whether the ban is forced or not. + /// Gets a value indicating whether the ban is forced or not. /// public bool IsForced { get; } } diff --git a/Exiled.Events/EventArgs/Player/BanningEventArgs.cs b/Exiled.Events/EventArgs/Player/BanningEventArgs.cs index 3010f64841..235deea129 100644 --- a/Exiled.Events/EventArgs/Player/BanningEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/BanningEventArgs.cs @@ -12,14 +12,14 @@ namespace Exiled.Events.EventArgs.Player using API.Features; /// - /// Contains all information before banning a player from the server. + /// Contains all information before banning a player from the server. /// public class BanningEventArgs : KickingEventArgs { private long duration; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The ban target. /// The ban issuer. @@ -34,7 +34,7 @@ public BanningEventArgs(Player target, Player issuer, long duration, string reas } /// - /// Gets or sets the ban duration. + /// Gets or sets the ban duration. /// public long Duration { diff --git a/Exiled.Events/EventArgs/Player/CancelledItemUseEventArgs.cs b/Exiled.Events/EventArgs/Player/CancelledItemUseEventArgs.cs index a393d2dbe1..bd994bbca5 100644 --- a/Exiled.Events/EventArgs/Player/CancelledItemUseEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/CancelledItemUseEventArgs.cs @@ -12,16 +12,16 @@ namespace Exiled.Events.EventArgs.Player using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before a player cancels usage of an item. + /// Contains all information before a player cancels usage of an item. /// public class CancelledItemUseEventArgs : IPlayerEvent, IUsableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's stopping the use of an item. /// - /// + /// /// public CancelledItemUseEventArgs(Player player, Item item) { @@ -30,7 +30,7 @@ public CancelledItemUseEventArgs(Player player, Item item) } /// - /// Gets the item that the player cancelling. + /// Gets the item that the player cancelling. /// public Usable Usable { get; } @@ -38,7 +38,7 @@ public CancelledItemUseEventArgs(Player player, Item item) public Item Item => Usable; /// - /// Gets the player who cancelling the item. + /// Gets the player who cancelling the item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/CancellingItemUseEventArgs.cs b/Exiled.Events/EventArgs/Player/CancellingItemUseEventArgs.cs index af94aaf95a..ac07393e72 100644 --- a/Exiled.Events/EventArgs/Player/CancellingItemUseEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/CancellingItemUseEventArgs.cs @@ -13,16 +13,16 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Usables; /// - /// Contains all information before a player cancels usage of an item. + /// Contains all information before a player cancels usage of an item. /// public class CancellingItemUseEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's stopping the use of an item. /// - /// + /// /// public CancellingItemUseEventArgs(Player player, UsableItem item) { @@ -31,7 +31,7 @@ public CancellingItemUseEventArgs(Player player, UsableItem item) } /// - /// Gets the item that the player cancelling. + /// Gets the item that the player cancelling. /// public Usable Usable { get; } @@ -39,12 +39,12 @@ public CancellingItemUseEventArgs(Player player, UsableItem item) public Item Item => Usable; /// - /// Gets the player who is cancelling the item. + /// Gets the player who is cancelling the item. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether or not the player can cancelling the use of item. + /// Gets or sets a value indicating whether or not the player can cancelling the use of item. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/ChangedItemEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangedItemEventArgs.cs index cda873d1be..50cd514e58 100644 --- a/Exiled.Events/EventArgs/Player/ChangedItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangedItemEventArgs.cs @@ -17,18 +17,18 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items; /// - /// Contains all information after a player's held item changes. + /// Contains all information after a player's held item changes. /// public class ChangedItemEventArgs : IPlayerEvent, IItemEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ChangedItemEventArgs(Player player, ItemBase oldItem) { @@ -38,23 +38,23 @@ public ChangedItemEventArgs(Player player, ItemBase oldItem) } /// - /// Gets the previous item. + /// Gets the previous item. /// public Item OldItem { get; } /// - /// Gets the new item. + /// Gets the new item. /// [Obsolete("Use ev.Item instead of this")] public Item NewItem => Item; /// - /// Gets the new item. + /// Gets the new item. /// public Item Item { get; } /// - /// Gets the player who's changed the item. + /// Gets the player who's changed the item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingGroupEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingGroupEventArgs.cs index 4783c1f5c0..13ecb5c99e 100644 --- a/Exiled.Events/EventArgs/Player/ChangingGroupEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingGroupEventArgs.cs @@ -17,16 +17,16 @@ namespace Exiled.Events.EventArgs.Player public class ChangingGroupEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingGroupEventArgs(Player player, UserGroup newGroup, bool isAllowed = true) { @@ -36,17 +36,17 @@ public ChangingGroupEventArgs(Player player, UserGroup newGroup, bool isAllowed } /// - /// Gets or sets the player's new group. + /// Gets or sets the player's new group. /// public UserGroup NewGroup { get; set; } /// - /// Gets or sets a value indicating whether or not the player can change groups. + /// Gets or sets a value indicating whether or not the player can change groups. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's changing his group. + /// Gets the player who's changing his group. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingIntercomMuteStatusEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingIntercomMuteStatusEventArgs.cs index fb1677847b..dab9f1a702 100644 --- a/Exiled.Events/EventArgs/Player/ChangingIntercomMuteStatusEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingIntercomMuteStatusEventArgs.cs @@ -11,21 +11,21 @@ namespace Exiled.Events.EventArgs.Player using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before a player's intercom mute status is changed. + /// Contains all information before a player's intercom mute status is changed. /// public class ChangingIntercomMuteStatusEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingIntercomMuteStatusEventArgs(Player player, bool isMuted, bool isAllowed = true) { @@ -35,17 +35,17 @@ public ChangingIntercomMuteStatusEventArgs(Player player, bool isMuted, bool isA } /// - /// Gets the player who's being intercom muted/unmuted. + /// Gets the player who's being intercom muted/unmuted. /// public Player Player { get; } /// - /// Gets a value indicating whether the player is being intercom muted or unmuted. + /// Gets a value indicating whether the player is being intercom muted or unmuted. /// public bool IsMuted { get; } /// - /// Gets or sets a value indicating whether or not the player can be intercom muted/unmuted. + /// Gets or sets a value indicating whether or not the player can be intercom muted/unmuted. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingItemEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingItemEventArgs.cs index de2d78d049..403f5f7050 100644 --- a/Exiled.Events/EventArgs/Player/ChangingItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingItemEventArgs.cs @@ -17,20 +17,20 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items; /// - /// Contains all information before a player's held item changes. + /// Contains all information before a player's held item changes. /// public class ChangingItemEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { private Item newItem; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ChangingItemEventArgs(Player player, ItemBase newItem) { @@ -39,7 +39,7 @@ public ChangingItemEventArgs(Player player, ItemBase newItem) } /// - /// Gets or sets the new item. + /// Gets or sets the new item. /// public Item Item { @@ -54,12 +54,12 @@ public Item Item } /// - /// Gets or sets a value indicating whether the event is allowed to continue. + /// Gets or sets a value indicating whether the event is allowed to continue. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player who's changing the item. + /// Gets the player who's changing the item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingMicroHIDStateEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingMicroHIDStateEventArgs.cs index f7e0679ecf..4cb941b0a1 100644 --- a/Exiled.Events/EventArgs/Player/ChangingMicroHIDStateEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingMicroHIDStateEventArgs.cs @@ -15,27 +15,27 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.MicroHID; /// - /// Contains all information before MicroHID state is changed. + /// Contains all information before MicroHID state is changed. /// public class ChangingMicroHIDStateEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingMicroHIDStateEventArgs(Player player, MicroHIDItem microHID, HidState oldState, HidState newState, bool isAllowed = true) { @@ -47,27 +47,27 @@ public ChangingMicroHIDStateEventArgs(Player player, MicroHIDItem microHID, HidS } /// - /// Gets the MicroHID instance. + /// Gets the MicroHID instance. /// public MicroHid MicroHID { get; } /// - /// Gets the old MicroHID state. + /// Gets the old MicroHID state. /// public HidState OldState { get; } /// - /// Gets or sets the new MicroHID state. + /// Gets or sets the new MicroHID state. /// public HidState NewState { get; set; } /// - /// Gets or sets a value indicating whether the MicroHID state can be changed or not. + /// Gets or sets a value indicating whether the MicroHID state can be changed or not. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using the MicroHID. + /// Gets the player who's using the MicroHID. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingMoveStateEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingMoveStateEventArgs.cs index 6bbcd0419b..1c55aa6aaf 100644 --- a/Exiled.Events/EventArgs/Player/ChangingMoveStateEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingMoveStateEventArgs.cs @@ -16,24 +16,24 @@ namespace Exiled.Events.EventArgs.Player using PlayerRoles.FirstPersonControl; /// - /// Contains all information before changing movement state. + /// Contains all information before changing movement state. /// public class ChangingMoveStateEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingMoveStateEventArgs(Player player, PlayerMovementState oldState, PlayerMovementState newState, bool isAllowed = true) { @@ -45,17 +45,17 @@ public ChangingMoveStateEventArgs(Player player, PlayerMovementState oldState, P } /// - /// Gets the player who's changing the movement state. + /// Gets the player who's changing the movement state. /// public Player Player { get; } /// - /// Gets the old state. + /// Gets the old state. /// public PlayerMovementState OldState { get; } /// - /// Gets or sets the new state. + /// Gets or sets the new state. /// // TODO: remove setter public PlayerMovementState NewState @@ -66,7 +66,7 @@ public PlayerMovementState NewState } /// - /// Gets or sets a value indicating whether the player can change the movement state. + /// Gets or sets a value indicating whether the player can change the movement state. /// // TODO: remove [Obsolete("Property was removed due to desync problems.")] diff --git a/Exiled.Events/EventArgs/Player/ChangingMuteStatusEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingMuteStatusEventArgs.cs index b1ee372231..11904835a6 100644 --- a/Exiled.Events/EventArgs/Player/ChangingMuteStatusEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingMuteStatusEventArgs.cs @@ -11,21 +11,21 @@ namespace Exiled.Events.EventArgs.Player using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before a player's mute status is changed. + /// Contains all information before a player's mute status is changed. /// public class ChangingMuteStatusEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingMuteStatusEventArgs(Player player, bool isMuted, bool isAllowed = true) { @@ -35,17 +35,17 @@ public ChangingMuteStatusEventArgs(Player player, bool isMuted, bool isAllowed = } /// - /// Gets the player who's being muted/unmuted. + /// Gets the player who's being muted/unmuted. /// public Player Player { get; } /// - /// Gets a value indicating whether the player is being muted or unmuted. + /// Gets a value indicating whether the player is being muted or unmuted. /// public bool IsMuted { get; } /// - /// Gets or sets a value indicating whether or not the player can be muted/unmuted. + /// Gets or sets a value indicating whether or not the player can be muted/unmuted. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingRadioPresetEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingRadioPresetEventArgs.cs index f2d97cb33c..651612a0ca 100644 --- a/Exiled.Events/EventArgs/Player/ChangingRadioPresetEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingRadioPresetEventArgs.cs @@ -16,24 +16,24 @@ namespace Exiled.Events.EventArgs.Player using static InventorySystem.Items.Radio.RadioMessages; /// - /// Contains all information before radio preset is changed. + /// Contains all information before radio preset is changed. /// public class ChangingRadioPresetEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingRadioPresetEventArgs(Player player, RadioRangeLevel oldValue, RadioRangeLevel newValue, bool isAllowed = true) { @@ -44,24 +44,24 @@ public ChangingRadioPresetEventArgs(Player player, RadioRangeLevel oldValue, Rad } /// - /// Gets the old radio preset value. + /// Gets the old radio preset value. /// public RadioRange OldValue { get; } /// - /// Gets or sets the new radio preset value. - /// Client radio graphics won't sync with this value. + /// Gets or sets the new radio preset value. + /// Client radio graphics won't sync with this value. /// public RadioRange NewValue { get; set; } /// - /// Gets or sets a value indicating whether the radio preset can be changed or not. - /// Client radio graphics won't sync with . + /// Gets or sets a value indicating whether the radio preset can be changed or not. + /// Client radio graphics won't sync with . /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using the radio. + /// Gets the player who's using the radio. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ChangingRoleEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingRoleEventArgs.cs index d12d4e4363..552d70a73b 100644 --- a/Exiled.Events/EventArgs/Player/ChangingRoleEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingRoleEventArgs.cs @@ -19,26 +19,26 @@ namespace Exiled.Events.EventArgs.Player using PlayerRoles; /// - /// Contains all information before a player's changes. + /// Contains all information before a player's changes. /// public class ChangingRoleEventArgs : IPlayerEvent, IDeniableEvent { private RoleTypeId newRole; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingRoleEventArgs(Player player, RoleTypeId newRole, RoleChangeReason reason, RoleSpawnFlags spawnFlags) { @@ -58,12 +58,12 @@ public ChangingRoleEventArgs(Player player, RoleTypeId newRole, RoleChangeReason } /// - /// Gets the player whose is changing. + /// Gets the player whose is changing. /// public Player Player { get; } /// - /// Gets or sets the new player's role. + /// Gets or sets the new player's role. /// public RoleTypeId NewRole { @@ -87,17 +87,17 @@ public RoleTypeId NewRole } /// - /// Gets base items that the player will receive. + /// Gets base items that the player will receive. /// public List Items { get; } = ListPool.Pool.Get(); /// - /// Gets the base ammo values for the new role. + /// Gets the base ammo values for the new role. /// public Dictionary Ammo { get; } = DictionaryPool.Pool.Get(); /// - /// Gets or sets a value indicating whether the inventory will be preserved or not. + /// Gets or sets a value indicating whether the inventory will be preserved or not. /// public bool ShouldPreserveInventory { @@ -106,17 +106,17 @@ public bool ShouldPreserveInventory } /// - /// Gets or sets the reason for their class change. + /// Gets or sets the reason for their class change. /// public SpawnReason Reason { get; set; } /// - /// Gets or sets the spawn flags for their class change. + /// Gets or sets the spawn flags for their class change. /// public RoleSpawnFlags SpawnFlags { get; set; } /// - /// Gets or sets a value indicating whether the event can continue. + /// Gets or sets a value indicating whether the event can continue. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/ChangingSpectatedPlayerEventArgs.cs b/Exiled.Events/EventArgs/Player/ChangingSpectatedPlayerEventArgs.cs index 23f5fc2e04..dce1aff91b 100644 --- a/Exiled.Events/EventArgs/Player/ChangingSpectatedPlayerEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ChangingSpectatedPlayerEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a spectator changes the spectated player. + /// Contains all information before a spectator changes the spectated player. /// public class ChangingSpectatedPlayerEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingSpectatedPlayerEventArgs(ReferenceHub player, uint oldTarget, uint newTarget) { @@ -36,17 +36,17 @@ public ChangingSpectatedPlayerEventArgs(ReferenceHub player, uint oldTarget, uin } /// - /// Gets player that was being spectated. + /// Gets player that was being spectated. /// public Player OldTarget { get; } /// - /// Gets the player who's going to be spectated. + /// Gets the player who's going to be spectated. /// public Player NewTarget { get; } /// - /// Gets player that is changing spectated player. + /// Gets player that is changing spectated player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ClosingGeneratorEventArgs.cs b/Exiled.Events/EventArgs/Player/ClosingGeneratorEventArgs.cs index a8340f7939..0adc72e3f8 100644 --- a/Exiled.Events/EventArgs/Player/ClosingGeneratorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ClosingGeneratorEventArgs.cs @@ -12,12 +12,12 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a player closes a generator. + /// Contains all information before a player closes a generator. /// public class ClosingGeneratorEventArgs : IPlayerEvent, IDeniableEvent, IGeneratorEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's closing the generator. /// The instance. @@ -30,17 +30,17 @@ public ClosingGeneratorEventArgs(Player player, Scp079Generator generator, bool } /// - /// Gets or sets a value indicating whether or not the generator door can be closed. + /// Gets or sets a value indicating whether or not the generator door can be closed. /// public bool IsAllowed { get; set; } /// - /// Gets the generator that is being closed. + /// Gets the generator that is being closed. /// public Generator Generator { get; } /// - /// Gets the player who's closing the generator door. + /// Gets the player who's closing the generator door. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DamagingDoorEventArgs.cs b/Exiled.Events/EventArgs/Player/DamagingDoorEventArgs.cs index d875b83767..50926289dc 100644 --- a/Exiled.Events/EventArgs/Player/DamagingDoorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DamagingDoorEventArgs.cs @@ -12,19 +12,19 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before damage is dealt to a . + /// Contains all information before damage is dealt to a . /// public class DamagingDoorEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// The damage being dealt. /// - /// + /// /// public DamagingDoorEventArgs(DoorVariant door, float damage, DoorDamageType doorDamageType) { @@ -34,22 +34,22 @@ public DamagingDoorEventArgs(DoorVariant door, float damage, DoorDamageType door } /// - /// Gets the object that is damaged. + /// Gets the object that is damaged. /// public Door Door { get; } /// - /// Gets or sets the damage dealt to the door. + /// Gets or sets the damage dealt to the door. /// public float Damage { get; set; } /// - /// Gets or sets a value indicating whether the door can be broken. + /// Gets or sets a value indicating whether the door can be broken. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the dealt to the door. + /// Gets the dealt to the door. /// public DoorDamageType DamageType { get; } } diff --git a/Exiled.Events/EventArgs/Player/DamagingShootingTargetEventArgs.cs b/Exiled.Events/EventArgs/Player/DamagingShootingTargetEventArgs.cs index 698a6cfa80..6bbd5cef07 100644 --- a/Exiled.Events/EventArgs/Player/DamagingShootingTargetEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DamagingShootingTargetEventArgs.cs @@ -20,33 +20,33 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before a player damages a shooting target. + /// Contains all information before a player damages a shooting target. /// public class DamagingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DamagingShootingTargetEventArgs(Player player, float damage, float distance, Vector3 hitLocation, ShootingTarget shootingTarget, DamageHandlerBase damageHandler, bool isAllowed = true) { @@ -61,42 +61,42 @@ public DamagingShootingTargetEventArgs(Player player, float damage, float distan } /// - /// Gets the shooting target which is being damaged. + /// Gets the shooting target which is being damaged. /// public ShootingTargetToy ShootingTarget { get; } /// - /// Gets the . + /// Gets the . /// public AttackerDamageHandler DamageHandler { get; } /// - /// Gets the exact world location the bullet impacted the target. + /// Gets the exact world location the bullet impacted the target. /// public Vector3 HitLocation { get; } /// - /// Gets or sets the damage amount. + /// Gets or sets the damage amount. /// public float Amount { get; set; } /// - /// Gets or sets the distance between the shooter and the shooting target. + /// Gets or sets the distance between the shooter and the shooting target. /// public float Distance { get; set; } /// - /// Gets or sets a value indicating whether or not the target can be damaged. + /// Gets or sets a value indicating whether or not the target can be damaged. /// public bool IsAllowed { get; set; } /// - /// Gets the item which is being used to deal the damage. + /// Gets the item which is being used to deal the damage. /// public Item Item { get; } /// - /// Gets the player who's damaging the shooting target. + /// Gets the player who's damaging the shooting target. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DamagingWindowEventArgs.cs b/Exiled.Events/EventArgs/Player/DamagingWindowEventArgs.cs index 4f92dcb6f3..48396f5016 100644 --- a/Exiled.Events/EventArgs/Player/DamagingWindowEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DamagingWindowEventArgs.cs @@ -16,19 +16,19 @@ namespace Exiled.Events.EventArgs.Player using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before damage is dealt to a . + /// Contains all information before damage is dealt to a . /// public class DamagingWindowEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// The damage being dealt. /// - /// + /// /// public DamagingWindowEventArgs(BreakableWindow window, float damage, DamageHandlerBase handler) { @@ -39,22 +39,22 @@ public DamagingWindowEventArgs(BreakableWindow window, float damage, DamageHandl } /// - /// Gets the object that is damaged. + /// Gets the object that is damaged. /// public Window Window { get; } /// - /// Gets or sets the damage handler for this event. + /// Gets or sets the damage handler for this event. /// public DamageHandler Handler { get; set; } /// - /// Gets or sets a value indicating whether the window can be broken. + /// Gets or sets a value indicating whether the window can be broken. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the causing the damage. + /// Gets the causing the damage. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DeactivatingWorkstationEventArgs.cs b/Exiled.Events/EventArgs/Player/DeactivatingWorkstationEventArgs.cs index abaafe51c4..fd8b0a281f 100644 --- a/Exiled.Events/EventArgs/Player/DeactivatingWorkstationEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DeactivatingWorkstationEventArgs.cs @@ -16,18 +16,18 @@ namespace Exiled.Events.EventArgs.Player using static InventorySystem.Items.Firearms.Attachments.WorkstationController; /// - /// Contains all information before deactivating a workstation. + /// Contains all information before deactivating a workstation. /// public class DeactivatingWorkstationEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public DeactivatingWorkstationEventArgs(WorkstationController controller, bool isAllowed = true) { @@ -37,22 +37,22 @@ public DeactivatingWorkstationEventArgs(WorkstationController controller, bool i } /// - /// Gets the last user of the workstation. + /// Gets the last user of the workstation. /// public Player Player { get; } /// - /// Gets the workstation. + /// Gets the workstation. /// public WorkstationController WorkstationController { get; } /// - /// Gets or sets the workstation status. + /// Gets or sets the workstation status. /// public WorkstationStatus NewStatus { get; set; } = WorkstationStatus.PoweringDown; /// - /// Gets or sets a value indicating whether or not the workstation can be deactivated. + /// Gets or sets a value indicating whether or not the workstation can be deactivated. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/DestroyingEventArgs.cs b/Exiled.Events/EventArgs/Player/DestroyingEventArgs.cs index 50a5722c2a..e633ab4913 100644 --- a/Exiled.Events/EventArgs/Player/DestroyingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DestroyingEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player's object is destroyed. + /// Contains all information before a player's object is destroyed. /// public class DestroyingEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public DestroyingEventArgs(Player player) { @@ -31,7 +31,7 @@ public DestroyingEventArgs(Player player) } /// - /// Gets the destroying player. + /// Gets the destroying player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DiedEventArgs.cs b/Exiled.Events/EventArgs/Player/DiedEventArgs.cs index 4ffee7af27..c6606c9b7a 100644 --- a/Exiled.Events/EventArgs/Player/DiedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DiedEventArgs.cs @@ -18,19 +18,19 @@ namespace Exiled.Events.EventArgs.Player using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information after a player dies. + /// Contains all information after a player dies. /// public class DiedEventArgs : IPlayerEvent, IAttackerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// Target's old . /// - /// + /// /// public DiedEventArgs(Player target, RoleTypeId targetOldRole, DamageHandlerBase damageHandler) { @@ -41,22 +41,22 @@ public DiedEventArgs(Player target, RoleTypeId targetOldRole, DamageHandlerBase } /// - /// Gets the old from the killed player. + /// Gets the old from the killed player. /// public RoleTypeId TargetOldRole { get; } /// - /// Gets the dead player. + /// Gets the dead player. /// public Player Player { get; } /// - /// Gets or sets the . + /// Gets or sets the . /// public CustomDamageHandler DamageHandler { get; set; } /// - /// Gets the attacker. + /// Gets the attacker. /// public Player Attacker { get; } } diff --git a/Exiled.Events/EventArgs/Player/DroppedAmmoEventArgs.cs b/Exiled.Events/EventArgs/Player/DroppedAmmoEventArgs.cs index 29a243fd77..68ffac1741 100644 --- a/Exiled.Events/EventArgs/Player/DroppedAmmoEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DroppedAmmoEventArgs.cs @@ -17,24 +17,24 @@ namespace Exiled.Events.EventArgs.Player using AmmoPickup = API.Features.Pickups.AmmoPickup; /// - /// Contains all information after a player drops ammo. + /// Contains all information after a player drops ammo. /// public class DroppedAmmoEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DroppedAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, List ammoPickups) { @@ -45,22 +45,22 @@ public DroppedAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, Lis } /// - /// Gets the type of dropped ammo. + /// Gets the type of dropped ammo. /// public AmmoType AmmoType { get; } /// - /// Gets the amount of dropped ammo. + /// Gets the amount of dropped ammo. /// public ushort Amount { get; } /// - /// Gets the dropped ammo pickups. + /// Gets the dropped ammo pickups. /// public IEnumerable AmmoPickups { get; } /// - /// Gets the player who dropped the ammo. + /// Gets the player who dropped the ammo. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DroppedItemEventArgs.cs b/Exiled.Events/EventArgs/Player/DroppedItemEventArgs.cs index 9f390afccb..14d298c843 100644 --- a/Exiled.Events/EventArgs/Player/DroppedItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DroppedItemEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after a player drops an item. + /// Contains all information after a player drops an item. /// public class DroppedItemEventArgs : IPlayerEvent, IPickupEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DroppedItemEventArgs(Player player, Pickup pickup, bool wasThrown) { @@ -36,7 +36,7 @@ public DroppedItemEventArgs(Player player, Pickup pickup, bool wasThrown) } /// - /// Gets or sets a value indicating whether or not the pickup was thrown. + /// Gets or sets a value indicating whether or not the pickup was thrown. /// public bool WasThrown { get; set; } diff --git a/Exiled.Events/EventArgs/Player/DroppingAmmoEventArgs.cs b/Exiled.Events/EventArgs/Player/DroppingAmmoEventArgs.cs index 1d8ab32978..3a0d0de97f 100644 --- a/Exiled.Events/EventArgs/Player/DroppingAmmoEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DroppingAmmoEventArgs.cs @@ -15,26 +15,26 @@ namespace Exiled.Events.EventArgs.Player using PlayerRoles; /// - /// Contains all information before a player drops ammo. + /// Contains all information before a player drops ammo. /// public class DroppingAmmoEventArgs : IPlayerEvent, IDeniableEvent { private bool isAllowed = true; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DroppingAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, bool isAllowed = true) { @@ -45,17 +45,17 @@ public DroppingAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, bo } /// - /// Gets the type of ammo being dropped. + /// Gets the type of ammo being dropped. /// public AmmoType AmmoType { get; } /// - /// Gets or sets the amount of ammo being dropped. + /// Gets or sets the amount of ammo being dropped. /// public ushort Amount { get; set; } /// - /// Gets or sets a value indicating whether or not the ammo can be dropped. + /// Gets or sets a value indicating whether or not the ammo can be dropped. /// public bool IsAllowed { @@ -75,7 +75,7 @@ public bool IsAllowed } /// - /// Gets the player who's dropping the ammo. + /// Gets the player who's dropping the ammo. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DroppingItemEventArgs.cs b/Exiled.Events/EventArgs/Player/DroppingItemEventArgs.cs index 46bcd8dc2f..2173163e7d 100644 --- a/Exiled.Events/EventArgs/Player/DroppingItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DroppingItemEventArgs.cs @@ -17,26 +17,26 @@ namespace Exiled.Events.EventArgs.Player using PlayerRoles; /// - /// Contains all information before a player drops an item. + /// Contains all information before a player drops an item. /// public class DroppingItemEventArgs : IPlayerEvent, IItemEvent, IDeniableEvent { private bool isAllowed = true; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DroppingItemEventArgs(Player player, ItemBase item, bool isThrown, bool isAllowed = true) { @@ -47,12 +47,12 @@ public DroppingItemEventArgs(Player player, ItemBase item, bool isThrown, bool i } /// - /// Gets or sets a value indicating whether or not the item was thrown. + /// Gets or sets a value indicating whether or not the item was thrown. /// public bool IsThrown { get; set; } /// - /// Gets or sets a value indicating whether or not the item can be dropped. + /// Gets or sets a value indicating whether or not the item can be dropped. /// public bool IsAllowed { @@ -72,12 +72,12 @@ public bool IsAllowed } /// - /// Gets the item to be dropped. + /// Gets the item to be dropped. /// public Item Item { get; } /// - /// Gets the player who's dropping the item. + /// Gets the player who's dropping the item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DroppingNothingEventArgs.cs b/Exiled.Events/EventArgs/Player/DroppingNothingEventArgs.cs index d4d247c330..758e1578f6 100644 --- a/Exiled.Events/EventArgs/Player/DroppingNothingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DroppingNothingEventArgs.cs @@ -12,20 +12,20 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player drops a null item. + /// Contains all information before a player drops a null item. /// public class DroppingNothingEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public DroppingNothingEventArgs(Player player) => Player = player; /// - /// Gets the player who's dropping the null item. + /// Gets the player who's dropping the null item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DryfiringWeaponEventArgs.cs b/Exiled.Events/EventArgs/Player/DryfiringWeaponEventArgs.cs index 22e43885e5..85ba867333 100644 --- a/Exiled.Events/EventArgs/Player/DryfiringWeaponEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DryfiringWeaponEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player's weapon is dryfired. + /// Contains all information before a player's weapon is dryfired. /// public class DryfiringWeaponEventArgs : IPlayerEvent, IFirearmEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DryfiringWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = true) { @@ -37,12 +37,12 @@ public DryfiringWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = } /// - /// Gets or sets a value indicating whether or not the weapon can be dryfired. + /// Gets or sets a value indicating whether or not the weapon can be dryfired. /// public bool IsAllowed { get; set; } /// - /// Gets the being dryfired. + /// Gets the being dryfired. /// public Firearm Firearm { get; } @@ -50,7 +50,7 @@ public DryfiringWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = public Item Item => Firearm; /// - /// Gets the player who's dryfiring the weapon. + /// Gets the player who's dryfiring the weapon. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/DyingEventArgs.cs b/Exiled.Events/EventArgs/Player/DyingEventArgs.cs index 5b6a29f220..1a96627e78 100644 --- a/Exiled.Events/EventArgs/Player/DyingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/DyingEventArgs.cs @@ -21,18 +21,18 @@ namespace Exiled.Events.EventArgs.Player using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before a player dies. + /// Contains all information before a player dies. /// public class DyingEventArgs : IAttackerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public DyingEventArgs(Player target, DamageHandlerBase damageHandler) { @@ -45,7 +45,7 @@ public DyingEventArgs(Player target, DamageHandlerBase damageHandler) } /// - /// Gets or sets the list of items to be dropped. + /// Gets or sets the list of items to be dropped. /// public List ItemsToDrop { @@ -55,22 +55,22 @@ public List ItemsToDrop } /// - /// Gets the dying player. + /// Gets the dying player. /// public Player Player { get; } /// - /// Gets or sets the . + /// Gets or sets the . /// public CustomDamageHandler DamageHandler { get; set; } /// - /// Gets or sets a value indicating whether or not the player can be killed. + /// Gets or sets a value indicating whether or not the player can be killed. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the killing player. + /// Gets the killing player. /// public Player Attacker { get; } } diff --git a/Exiled.Events/EventArgs/Player/EarningAchievementEventArgs.cs b/Exiled.Events/EventArgs/Player/EarningAchievementEventArgs.cs index c430077922..d44036193c 100644 --- a/Exiled.Events/EventArgs/Player/EarningAchievementEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/EarningAchievementEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player earns an achievement. + /// Contains all information before a player earns an achievement. /// public class EarningAchievementEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EarningAchievementEventArgs(Player player, AchievementName achievementName, bool isAllowed = true) { @@ -36,17 +36,17 @@ public EarningAchievementEventArgs(Player player, AchievementName achievementNam } /// - /// Gets the achievement that will be earned. + /// Gets the achievement that will be earned. /// public AchievementName AchievementName { get; } /// - /// Gets or sets a value indicating whether the achievement will be awarded to the player. + /// Gets or sets a value indicating whether the achievement will be awarded to the player. /// public bool IsAllowed { get; set; } /// - /// Gets the player who earned the achievement. + /// Gets the player who earned the achievement. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/EnteringPocketDimensionEventArgs.cs b/Exiled.Events/EventArgs/Player/EnteringPocketDimensionEventArgs.cs index cee8be4967..dc9aa207b6 100644 --- a/Exiled.Events/EventArgs/Player/EnteringPocketDimensionEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/EnteringPocketDimensionEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player enters the pocket dimension. + /// Contains all information before a player enters the pocket dimension. /// public class EnteringPocketDimensionEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EnteringPocketDimensionEventArgs(Player player, Player scp106, bool isAllowed = true) { @@ -36,17 +36,17 @@ public EnteringPocketDimensionEventArgs(Player player, Player scp106, bool isAll } /// - /// Gets the SCP-106 who sent the player to the pocket dimension. + /// Gets the SCP-106 who sent the player to the pocket dimension. /// public Player Scp106 { get; } /// - /// Gets or sets a value indicating whether or not the player can enter the pocket dimension. + /// Gets or sets a value indicating whether or not the player can enter the pocket dimension. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's entering the pocket dimension. + /// Gets the player who's entering the pocket dimension. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/EscapingEventArgs.cs b/Exiled.Events/EventArgs/Player/EscapingEventArgs.cs index 3b92597ccb..109a744b12 100644 --- a/Exiled.Events/EventArgs/Player/EscapingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/EscapingEventArgs.cs @@ -18,21 +18,21 @@ namespace Exiled.Events.EventArgs.Player using Respawning; /// - /// Contains all information before a player escapes. + /// Contains all information before a player escapes. /// public class EscapingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escapeScenario) { @@ -43,19 +43,19 @@ public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escap } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escapeScenario, KeyValuePair respawnTickets) : this(player, newRole, escapeScenario) @@ -64,22 +64,22 @@ public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escap } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// A that will be initialized with. + /// A that will be initialized with. /// /// - /// A that will be initialized with. + /// A that will be initialized with. /// public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escapeScenario, SpawnableTeamType teamToGrantTickets, float ticketsToGrant) : this(player, newRole, escapeScenario) @@ -89,28 +89,28 @@ public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escap } /// - /// Gets the player who's escaping. + /// Gets the player who's escaping. /// public Player Player { get; } /// - /// Gets or sets the role that will be assigned when the player escapes. + /// Gets or sets the role that will be assigned when the player escapes. /// public RoleTypeId NewRole { get; set; } /// - /// Gets or sets the EscapeScenario that will represent for this player. + /// Gets or sets the EscapeScenario that will represent for this player. /// public EscapeScenario EscapeScenario { get; set; } /// - /// Gets or sets the RespawnTickets that will represent the amount of tickets granted to a specific after the player escapes. + /// Gets or sets the RespawnTickets that will represent the amount of tickets granted to a specific after the player escapes. /// /// public KeyValuePair RespawnTickets { get; set; } /// - /// Gets or sets a value indicating whether or not the player can escape. + /// Gets or sets a value indicating whether or not the player can escape. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/EscapingPocketDimensionEventArgs.cs b/Exiled.Events/EventArgs/Player/EscapingPocketDimensionEventArgs.cs index 8fd13c0dc3..4848107a6c 100644 --- a/Exiled.Events/EventArgs/Player/EscapingPocketDimensionEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/EscapingPocketDimensionEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before a player escapes the pocket dimension. + /// Contains all information before a player escapes the pocket dimension. /// public class EscapingPocketDimensionEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public EscapingPocketDimensionEventArgs(Player player, Vector3 position) { @@ -34,17 +34,17 @@ public EscapingPocketDimensionEventArgs(Player player, Vector3 position) } /// - /// Gets the player who's escaping the pocket dimension. + /// Gets the player who's escaping the pocket dimension. /// public Player Player { get; } /// - /// Gets or sets the position in which the player is going to be teleported to. + /// Gets or sets the position in which the player is going to be teleported to. /// public Vector3 TeleportPosition { get; set; } /// - /// Gets or sets a value indicating whether or not the player can successfully escape the pocket dimension. + /// Gets or sets a value indicating whether or not the player can successfully escape the pocket dimension. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/FailingEscapePocketDimensionEventArgs.cs b/Exiled.Events/EventArgs/Player/FailingEscapePocketDimensionEventArgs.cs index dbf8847097..602cf6fb6a 100644 --- a/Exiled.Events/EventArgs/Player/FailingEscapePocketDimensionEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/FailingEscapePocketDimensionEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player dies from walking through an incorrect exit in the pocket dimension. + /// Contains all information before a player dies from walking through an incorrect exit in the pocket dimension. /// public class FailingEscapePocketDimensionEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public FailingEscapePocketDimensionEventArgs(Player player, PocketDimensionTeleport teleporter, bool isAllowed = true) { @@ -36,17 +36,17 @@ public FailingEscapePocketDimensionEventArgs(Player player, PocketDimensionTelep } /// - /// Gets the PocketDimensionTeleport the player walked into. + /// Gets the PocketDimensionTeleport the player walked into. /// public PocketDimensionTeleport Teleporter { get; } /// - /// Gets or sets a value indicating whether or not the player dies by failing the pocket dimension escape. + /// Gets or sets a value indicating whether or not the player dies by failing the pocket dimension escape. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's escaping the pocket dimension. + /// Gets the player who's escaping the pocket dimension. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/FlippingCoinEventArgs.cs b/Exiled.Events/EventArgs/Player/FlippingCoinEventArgs.cs index 34afc7a8ef..7622d71b5e 100644 --- a/Exiled.Events/EventArgs/Player/FlippingCoinEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/FlippingCoinEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Coin; /// - /// Contains all information before a player flips a coin. + /// Contains all information before a player flips a coin. /// public class FlippingCoinEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public FlippingCoinEventArgs(Player player, Coin coin, bool isTails) { @@ -37,7 +37,7 @@ public FlippingCoinEventArgs(Player player, Coin coin, bool isTails) } /// - /// Gets the player who's flipping the coin. + /// Gets the player who's flipping the coin. /// public Player Player { get; } @@ -45,12 +45,12 @@ public FlippingCoinEventArgs(Player player, Coin coin, bool isTails) public Item Item { get; } /// - /// Gets or sets a value indicating whether or not the coin is landing on tails. + /// Gets or sets a value indicating whether or not the coin is landing on tails. /// public bool IsTails { get; set; } /// - /// Gets or sets a value indicating whether or not the coin can be flipped. + /// Gets or sets a value indicating whether or not the coin can be flipped. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/HandcuffingEventArgs.cs b/Exiled.Events/EventArgs/Player/HandcuffingEventArgs.cs index 55902301fe..27a361cda2 100644 --- a/Exiled.Events/EventArgs/Player/HandcuffingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/HandcuffingEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before handcuffing a player. + /// Contains all information before handcuffing a player. /// public class HandcuffingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public HandcuffingEventArgs(Player cuffer, Player target, bool isAllowed = true) { @@ -36,17 +36,17 @@ public HandcuffingEventArgs(Player cuffer, Player target, bool isAllowed = true) } /// - /// Gets the player who is getting cuffed. + /// Gets the player who is getting cuffed. /// public Player Target { get; } /// - /// Gets or sets a value indicating whether or not the player can be handcuffed. + /// Gets or sets a value indicating whether or not the player can be handcuffed. /// public bool IsAllowed { get; set; } /// - /// Gets the cuffer player. + /// Gets the cuffer player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/HurtEventArgs.cs b/Exiled.Events/EventArgs/Player/HurtEventArgs.cs index 951254ea64..80cff1c51b 100644 --- a/Exiled.Events/EventArgs/Player/HurtEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/HurtEventArgs.cs @@ -16,21 +16,21 @@ namespace Exiled.Events.EventArgs.Player using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before a player gets damaged. + /// Contains all information before a player gets damaged. /// public class HurtEventArgs : IAttackerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public HurtEventArgs(Player target, DamageHandlerBase damageHandler, DamageHandlerBase.HandlerOutput handlerOutput) { @@ -47,12 +47,12 @@ public HurtEventArgs(Player target, DamageHandlerBase damageHandler, DamageHandl public Player Attacker { get; } /// - /// Gets the amount of inflicted damage. + /// Gets the amount of inflicted damage. /// public float Amount => DamageHandler.Damage; /// - /// Gets or sets the action than will be made on the player. + /// Gets or sets the action than will be made on the player. /// public DamageHandlerBase.HandlerOutput HandlerOutput { get; set; } diff --git a/Exiled.Events/EventArgs/Player/HurtingEventArgs.cs b/Exiled.Events/EventArgs/Player/HurtingEventArgs.cs index 326d1ad09e..b5b8912ac3 100644 --- a/Exiled.Events/EventArgs/Player/HurtingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/HurtingEventArgs.cs @@ -16,18 +16,18 @@ namespace Exiled.Events.EventArgs.Player using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before a player gets damaged. + /// Contains all information before a player gets damaged. /// public class HurtingEventArgs : IAttackerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public HurtingEventArgs(Player target, DamageHandlerBase damageHandler) { @@ -44,7 +44,7 @@ public HurtingEventArgs(Player target, DamageHandlerBase damageHandler) public Player Attacker { get; } /// - /// Gets or sets the amount of inflicted damage. + /// Gets or sets the amount of inflicted damage. /// public float Amount { diff --git a/Exiled.Events/EventArgs/Player/InteractedEventArgs.cs b/Exiled.Events/EventArgs/Player/InteractedEventArgs.cs index d39985d1d9..327d6dd8c7 100644 --- a/Exiled.Events/EventArgs/Player/InteractedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/InteractedEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after a player has interacted with an interactable. + /// Contains all information after a player has interacted with an interactable. /// public class InteractedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public InteractedEventArgs(Player player) { @@ -28,7 +28,7 @@ public InteractedEventArgs(Player player) } /// - /// Gets the player who interacted. + /// Gets the player who interacted. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/InteractingDoorEventArgs.cs b/Exiled.Events/EventArgs/Player/InteractingDoorEventArgs.cs index f5991e6111..d56c6c682c 100644 --- a/Exiled.Events/EventArgs/Player/InteractingDoorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/InteractingDoorEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player interacts with a door. + /// Contains all information before a player interacts with a door. /// public class InteractingDoorEventArgs : IPlayerEvent, IDoorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public InteractingDoorEventArgs(Player player, DoorVariant door, bool isAllowed = true) { @@ -37,17 +37,17 @@ public InteractingDoorEventArgs(Player player, DoorVariant door, bool isAllowed } /// - /// Gets or sets a value indicating whether or not the player can interact with the door. + /// Gets or sets a value indicating whether or not the player can interact with the door. /// public bool IsAllowed { get; set; } /// - /// Gets or sets the instance. + /// Gets or sets the instance. /// public Door Door { get; set; } /// - /// Gets the player who's interacting with the door. + /// Gets the player who's interacting with the door. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/InteractingElevatorEventArgs.cs b/Exiled.Events/EventArgs/Player/InteractingElevatorEventArgs.cs index ebd6138781..7df9b7476d 100644 --- a/Exiled.Events/EventArgs/Player/InteractingElevatorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/InteractingElevatorEventArgs.cs @@ -15,21 +15,21 @@ namespace Exiled.Events.EventArgs.Player using Lift = API.Features.Lift; /// - /// Contains all information before a player interacts with an elevator. + /// Contains all information before a player interacts with an elevator. /// public class InteractingElevatorEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public InteractingElevatorEventArgs(Player player, ElevatorChamber elevator, bool isAllowed = true) { @@ -40,22 +40,22 @@ public InteractingElevatorEventArgs(Player player, ElevatorChamber elevator, boo } /// - /// Gets the instance. + /// Gets the instance. /// public ElevatorChamber Elevator { get; } /// - /// Gets the instance. + /// Gets the instance. /// public Lift Lift { get; } /// - /// Gets or sets a value indicating whether or not the player can interact with the elevator. + /// Gets or sets a value indicating whether or not the player can interact with the elevator. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's interacting with the elevator. + /// Gets the player who's interacting with the elevator. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/InteractingLockerEventArgs.cs b/Exiled.Events/EventArgs/Player/InteractingLockerEventArgs.cs index d07fbb8d37..2eec0c06b9 100644 --- a/Exiled.Events/EventArgs/Player/InteractingLockerEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/InteractingLockerEventArgs.cs @@ -14,27 +14,27 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a player interacts with a locker. + /// Contains all information before a player interacts with a locker. /// public class InteractingLockerEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public InteractingLockerEventArgs(Player player, Locker locker, LockerChamber lockerChamber, byte chamberId, bool isAllowed) { @@ -46,27 +46,27 @@ public InteractingLockerEventArgs(Player player, Locker locker, LockerChamber lo } /// - /// Gets the instance. + /// Gets the instance. /// public Locker Locker { get; } /// - /// Gets the interacting chamber. + /// Gets the interacting chamber. /// public LockerChamber Chamber { get; } /// - /// Gets the chamber id. + /// Gets the chamber id. /// public byte ChamberId { get; } /// - /// Gets or sets a value indicating whether or not the player can interact with the locker. + /// Gets or sets a value indicating whether or not the player can interact with the locker. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's interacting with the locker. + /// Gets the player who's interacting with the locker. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/InteractingShootingTargetEventArgs.cs b/Exiled.Events/EventArgs/Player/InteractingShootingTargetEventArgs.cs index c7824474c7..6f42b451ef 100644 --- a/Exiled.Events/EventArgs/Player/InteractingShootingTargetEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/InteractingShootingTargetEventArgs.cs @@ -20,7 +20,7 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before a player interacts with a shooting target. + /// Contains all information before a player interacts with a shooting target. /// public class InteractingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent { @@ -28,25 +28,25 @@ public class InteractingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent private int maxHp; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public InteractingShootingTargetEventArgs(Player player, ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true) { @@ -59,17 +59,17 @@ public InteractingShootingTargetEventArgs(Player player, ShootingTarget shooting } /// - /// Gets the shooting target being interacted with. + /// Gets the shooting target being interacted with. /// public ShootingTargetToy ShootingTarget { get; } /// - /// Gets the button the player interacted with. + /// Gets the button the player interacted with. /// public ShootingTargetButton TargetButton { get; } /// - /// Gets or sets the new max HP of the target. + /// Gets or sets the new max HP of the target. /// public int NewMaxHp { @@ -83,7 +83,7 @@ public int NewMaxHp } /// - /// Gets or sets the new auto reset time of the target. + /// Gets or sets the new auto reset time of the target. /// public int NewAutoResetTime { @@ -97,12 +97,12 @@ public int NewAutoResetTime } /// - /// Gets or sets a value indicating whether or not the interaction is allowed. + /// Gets or sets a value indicating whether or not the interaction is allowed. /// public bool IsAllowed { get; set; } /// - /// Gets the player interacting with the shooting target. + /// Gets the player interacting with the shooting target. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/IntercomSpeakingEventArgs.cs b/Exiled.Events/EventArgs/Player/IntercomSpeakingEventArgs.cs index d604e1d85f..49b605ac05 100644 --- a/Exiled.Events/EventArgs/Player/IntercomSpeakingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/IntercomSpeakingEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player speaks to the intercom. + /// Contains all information before a player speaks to the intercom. /// public class IntercomSpeakingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public IntercomSpeakingEventArgs(Player player, bool isAllowed = true) { @@ -32,12 +32,12 @@ public IntercomSpeakingEventArgs(Player player, bool isAllowed = true) } /// - /// Gets the player who's going to speak on the intercom. + /// Gets the player who's going to speak on the intercom. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether or not the player can speak on the intercom. + /// Gets or sets a value indicating whether or not the player can speak on the intercom. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/IssuingMuteEventArgs.cs b/Exiled.Events/EventArgs/Player/IssuingMuteEventArgs.cs index 3e4e909ff3..19cf623e14 100644 --- a/Exiled.Events/EventArgs/Player/IssuingMuteEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/IssuingMuteEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before muting a player. + /// Contains all information before muting a player. /// public class IssuingMuteEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public IssuingMuteEventArgs(Player player, bool isIntercom, bool isAllowed = true) { @@ -36,17 +36,17 @@ public IssuingMuteEventArgs(Player player, bool isIntercom, bool isAllowed = tru } /// - /// Gets the player who's being muted. + /// Gets the player who's being muted. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether the player is being intercom muted or not. + /// Gets or sets a value indicating whether the player is being intercom muted or not. /// public bool IsIntercom { get; set; } /// - /// Gets or sets a value indicating whether or not the player can be muted. + /// Gets or sets a value indicating whether or not the player can be muted. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/JoinedEventArgs.cs b/Exiled.Events/EventArgs/Player/JoinedEventArgs.cs index c9af031343..03782dfd40 100644 --- a/Exiled.Events/EventArgs/Player/JoinedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/JoinedEventArgs.cs @@ -12,20 +12,20 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after a player joins the server. + /// Contains all information after a player joins the server. /// public class JoinedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public JoinedEventArgs(Player player) => Player = player; /// - /// Gets the joined player. + /// Gets the joined player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/JumpingEventArgs.cs b/Exiled.Events/EventArgs/Player/JumpingEventArgs.cs index c03b5234a1..7717acc0b9 100644 --- a/Exiled.Events/EventArgs/Player/JumpingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/JumpingEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before a player jumps. + /// Contains all information before a player jumps. /// public class JumpingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public JumpingEventArgs(Player player, Vector3 direction, bool isAllowed = true) { @@ -38,17 +38,17 @@ public JumpingEventArgs(Player player, Vector3 direction, bool isAllowed = true) } /// - /// Gets the player who's jumping. + /// Gets the player who's jumping. /// public Player Player { get; } /// - /// Gets or sets the jump direction. + /// Gets or sets the jump direction. /// public Vector3 Direction { get; set; } /// - /// Gets or sets the jump speed. + /// Gets or sets the jump speed. /// public float Speed { @@ -57,7 +57,7 @@ public float Speed } /// - /// Gets or sets a value indicating whether the client data can be synchronized with the server. + /// Gets or sets a value indicating whether the client data can be synchronized with the server. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/KickedEventArgs.cs b/Exiled.Events/EventArgs/Player/KickedEventArgs.cs index b14e0f51be..bf7f0c3be0 100644 --- a/Exiled.Events/EventArgs/Player/KickedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/KickedEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after kicking a player from the server. + /// Contains all information after kicking a player from the server. /// public class KickedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public KickedEventArgs(Player target, string reason) { @@ -32,12 +32,12 @@ public KickedEventArgs(Player target, string reason) } /// - /// Gets the kick reason. + /// Gets the kick reason. /// public string Reason { get; } /// - /// Gets the kicked player. + /// Gets the kicked player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/KickingEventArgs.cs b/Exiled.Events/EventArgs/Player/KickingEventArgs.cs index 6489761640..595ae16947 100644 --- a/Exiled.Events/EventArgs/Player/KickingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/KickingEventArgs.cs @@ -16,7 +16,7 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before kicking a player from the server. + /// Contains all information before kicking a player from the server. /// public class KickingEventArgs : IPlayerEvent, IDeniableEvent { @@ -26,22 +26,22 @@ public class KickingEventArgs : IPlayerEvent, IDeniableEvent private Player target; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public KickingEventArgs(Player target, Player issuer, string reason, string fullMessage, bool isAllowed = true) { @@ -53,7 +53,7 @@ public KickingEventArgs(Player target, Player issuer, string reason, string full } /// - /// Gets or sets the ban target. + /// Gets or sets the ban target. /// public Player Target { @@ -71,12 +71,12 @@ public Player Target } /// - /// Gets or sets the kick reason. + /// Gets or sets the kick reason. /// public string Reason { get; set; } /// - /// Gets or sets the full kick message. + /// Gets or sets the full kick message. /// public string FullMessage { @@ -86,7 +86,7 @@ public string FullMessage } /// - /// Gets or sets a value indicating whether or not action is taken against the target. + /// Gets or sets a value indicating whether or not action is taken against the target. /// public bool IsAllowed { @@ -104,7 +104,7 @@ public bool IsAllowed } /// - /// Gets or sets the ban issuer. + /// Gets or sets the ban issuer. /// public Player Player { @@ -122,7 +122,7 @@ public Player Player } /// - /// Logs the kick, anti-backdoor protection from malicious plugins. + /// Logs the kick, anti-backdoor protection from malicious plugins. /// /// The name of the calling assembly. /// The message to be logged. diff --git a/Exiled.Events/EventArgs/Player/LandingEventArgs.cs b/Exiled.Events/EventArgs/Player/LandingEventArgs.cs index 61b2d8312c..6c980591b2 100644 --- a/Exiled.Events/EventArgs/Player/LandingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/LandingEventArgs.cs @@ -12,20 +12,20 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all the information after a lands on the ground. + /// Contains all the information after a lands on the ground. /// public class LandingEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public LandingEventArgs(Player player) => Player = player; /// - /// Gets the who's landing. + /// Gets the who's landing. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/LocalReportingEventArgs.cs b/Exiled.Events/EventArgs/Player/LocalReportingEventArgs.cs index 0ee4adecde..316be50391 100644 --- a/Exiled.Events/EventArgs/Player/LocalReportingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/LocalReportingEventArgs.cs @@ -12,24 +12,24 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains information before a report is sent to local administrators. + /// Contains information before a report is sent to local administrators. /// public class LocalReportingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public LocalReportingEventArgs(Player issuer, Player target, string reason, bool isAllowed = true) { @@ -40,22 +40,22 @@ public LocalReportingEventArgs(Player issuer, Player target, string reason, bool } /// - /// Gets the reported player. + /// Gets the reported player. /// public Player Target { get; } /// - /// Gets or sets the report reason. + /// Gets or sets the report reason. /// public string Reason { get; set; } /// - /// Gets or sets a value indicating whether the report can be processed or not. + /// Gets or sets a value indicating whether the report can be processed or not. /// public bool IsAllowed { get; set; } /// - /// Gets the reporter. + /// Gets the reporter. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/MakingNoiseEventArgs.cs b/Exiled.Events/EventArgs/Player/MakingNoiseEventArgs.cs index e3f6a50b5c..eb7809255f 100644 --- a/Exiled.Events/EventArgs/Player/MakingNoiseEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/MakingNoiseEventArgs.cs @@ -12,7 +12,7 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player makes noise. + /// Contains all information before a player makes noise. /// public class MakingNoiseEventArgs : IPlayerEvent, IDeniableEvent { @@ -30,12 +30,12 @@ public MakingNoiseEventArgs(Player player, float distance, bool isAllowed = true } /// - /// Gets the player who's making noise. + /// Gets the player who's making noise. /// public Player Player { get; } /// - /// Gets or sets the footsteps distance. + /// Gets or sets the footsteps distance. /// public float Distance { get; set; } diff --git a/Exiled.Events/EventArgs/Player/OpeningGeneratorEventArgs.cs b/Exiled.Events/EventArgs/Player/OpeningGeneratorEventArgs.cs index cf24e48dc6..d208132426 100644 --- a/Exiled.Events/EventArgs/Player/OpeningGeneratorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/OpeningGeneratorEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a player opens a generator. + /// Contains all information before a player opens a generator. /// public class OpeningGeneratorEventArgs : IPlayerEvent, IDeniableEvent, IGeneratorEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public OpeningGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true) { @@ -38,17 +38,17 @@ public OpeningGeneratorEventArgs(Player player, Scp079Generator generator, bool } /// - /// Gets or sets a value indicating whether or not the generator can be opened. + /// Gets or sets a value indicating whether or not the generator can be opened. /// public bool IsAllowed { get; set; } /// - /// Gets the generator that is opening. + /// Gets the generator that is opening. /// public Generator Generator { get; } /// - /// Gets the player who's opening the generator. + /// Gets the player who's opening the generator. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/PickingUpItemEventArgs.cs b/Exiled.Events/EventArgs/Player/PickingUpItemEventArgs.cs index 2d7ace6ff3..200536dd47 100644 --- a/Exiled.Events/EventArgs/Player/PickingUpItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/PickingUpItemEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Pickups; /// - /// Contains all information before a player picks up an item. + /// Contains all information before a player picks up an item. /// public class PickingUpItemEventArgs : IPlayerEvent, IPickupEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public PickingUpItemEventArgs(Player player, ItemPickupBase pickup, bool isAllowed = true) { @@ -38,17 +38,17 @@ public PickingUpItemEventArgs(Player player, ItemPickupBase pickup, bool isAllow } /// - /// Gets or sets a value indicating whether the item can be picked up. + /// Gets or sets a value indicating whether the item can be picked up. /// public bool IsAllowed { get; set; } /// - /// Gets the pickup that's being picked up. + /// Gets the pickup that's being picked up. /// public Pickup Pickup { get; } /// - /// Gets the player who's picking up an item. + /// Gets the player who's picking up an item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/PreAuthenticatingEventArgs.cs b/Exiled.Events/EventArgs/Player/PreAuthenticatingEventArgs.cs index 8fa938b769..0b10296f2a 100644 --- a/Exiled.Events/EventArgs/Player/PreAuthenticatingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/PreAuthenticatingEventArgs.cs @@ -23,7 +23,7 @@ namespace Exiled.Events.EventArgs.Player #pragma warning disable CS1591 /// - /// Contains all information before pre-authenticating a player. + /// Contains all information before pre-authenticating a player. /// public class PreAuthenticatingEventArgs : IExiledEvent { @@ -61,47 +61,47 @@ public PreAuthenticatingEventArgs( } /// - /// Gets the player's user id. + /// Gets the player's user id. /// public string UserId { get; } /// - /// Gets the player's IP address. + /// Gets the player's IP address. /// public string IpAddress { get; } /// - /// Gets the request's expiration. + /// Gets the request's expiration. /// public long Expiration { get; } /// - /// Gets the flags. + /// Gets the flags. /// public CentralAuthPreauthFlags Flags { get; } /// - /// Gets the player's country. + /// Gets the player's country. /// public string Country { get; } /// - /// Gets the request's signature. + /// Gets the request's signature. /// public byte[] Signature { get; } /// - /// Gets the reader starting position for reading the preauth. + /// Gets the reader starting position for reading the preauth. /// public int ReaderStartPosition { get; } /// - /// Gets the connection request. + /// Gets the connection request. /// public ConnectionRequest Request { get; } /// - /// Gets a value indicating whether the player can be authenticated or not. + /// Gets a value indicating whether the player can be authenticated or not. /// public bool IsAllowed { get; private set; } = true; @@ -170,7 +170,7 @@ public void Reject(RejectionReason reason, bool isForced) => /* /// - /// Delays the connection. + /// Delays the connection. /// /// The delay in seconds. /// Indicates whether the player has to be rejected forcefully or not. @@ -183,14 +183,14 @@ public void Delay(byte seconds, bool isForced) } /// - /// Rejects the player and redirects them to another server port. + /// Rejects the player and redirects them to another server port. /// /// The new server port. /// Indicates whether the player has to be rejected forcefully or not. public void Redirect(ushort port, bool isForced) => Reject(RejectionReason.Redirect, isForced, null, 0, 0, port); /// - /// Rejects a player who's trying to authenticate. + /// Rejects a player who's trying to authenticate. /// /// The ban reason. /// The ban expiration time. @@ -198,7 +198,7 @@ public void Delay(byte seconds, bool isForced) public void RejectBanned(string banReason, DateTime expiration, bool isForced) => Reject(RejectionReason.Banned, isForced, banReason, expiration.Ticks); /// - /// Rejects a player who's trying to authenticate. + /// Rejects a player who's trying to authenticate. /// /// The ban reason. /// The ban expiration time in .NET Ticks. @@ -206,7 +206,7 @@ public void Delay(byte seconds, bool isForced) public void RejectBanned(string banReason, long expiration, bool isForced) => Reject(RejectionReason.Banned, isForced, banReason, expiration); /// - /// Rejects a player who's trying to authenticate. + /// Rejects a player who's trying to authenticate. /// /// The instance. /// Indicates whether the player has to be rejected forcefully or not. @@ -224,14 +224,14 @@ public void Reject(NetDataWriter writer, bool isForced) } /// - /// Rejects a player who's trying to authenticate. + /// Rejects a player who's trying to authenticate. /// /// The custom rejection reason. /// Indicates whether the player has to be rejected forcefully or not. public void Reject(string rejectionReason, bool isForced) => Reject(RejectionReason.Custom, isForced, rejectionReason); /// - /// Rejects a player who's trying to authenticate. + /// Rejects a player who's trying to authenticate. /// /// The rejection reason. /// Indicates whether the player has to be rejected forcefully or not. @@ -280,8 +280,8 @@ public void Reject(RejectionReason rejectionReason, bool isForced, string custom } /// - /// Disallows the connection without sending any reason. Should only be used when the connection has already been - /// terminated by the plugin itself. + /// Disallows the connection without sending any reason. Should only be used when the connection has already been + /// terminated by the plugin itself. /// public void Disallow() => IsAllowed = false; */ diff --git a/Exiled.Events/EventArgs/Player/ReceivingEffectEventArgs.cs b/Exiled.Events/EventArgs/Player/ReceivingEffectEventArgs.cs index 5e8d565715..696f4ff0c1 100644 --- a/Exiled.Events/EventArgs/Player/ReceivingEffectEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ReceivingEffectEventArgs.cs @@ -14,14 +14,14 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player receives a . + /// Contains all information before a player receives a . /// public class ReceivingEffectEventArgs : IPlayerEvent, IDeniableEvent { private byte intensity; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -38,23 +38,23 @@ public ReceivingEffectEventArgs(Player player, StatusEffectBase effect, byte int } /// - /// Gets the receiving the effect. + /// Gets the receiving the effect. /// public Player Player { get; } /// - /// Gets the being received. + /// Gets the being received. /// public StatusEffectBase Effect { get; } /// - /// Gets or sets a value indicating how long the effect will last. If its value is 0, then it doesn't always reflect the real effect duration. + /// Gets or sets a value indicating how long the effect will last. If its value is 0, then it doesn't always reflect the real effect duration. /// public float Duration { get; set; } = 0; /// - /// Gets or sets the value of the new intensity of the effect. Setting this to 0 is the same as setting IsAllowed to - /// . + /// Gets or sets the value of the new intensity of the effect. Setting this to 0 is the same as setting IsAllowed to + /// . /// public byte Intensity { @@ -69,12 +69,12 @@ public byte Intensity } /// - /// Gets the value of the intensity of this effect on the player. + /// Gets the value of the intensity of this effect on the player. /// public byte CurrentIntensity { get; } /// - /// Gets or sets a value indicating whether or not the effect will be applied. + /// Gets or sets a value indicating whether or not the effect will be applied. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/ReloadingWeaponEventArgs.cs b/Exiled.Events/EventArgs/Player/ReloadingWeaponEventArgs.cs index b3caa7bb8d..3fa8ba3ecb 100644 --- a/Exiled.Events/EventArgs/Player/ReloadingWeaponEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ReloadingWeaponEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player's weapon is reloaded. + /// Contains all information before a player's weapon is reloaded. /// public class ReloadingWeaponEventArgs : IPlayerEvent, IFirearmEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ReloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = true) { @@ -37,12 +37,12 @@ public ReloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = } /// - /// Gets or sets a value indicating whether or not the weapon can be reloaded. + /// Gets or sets a value indicating whether or not the weapon can be reloaded. /// public bool IsAllowed { get; set; } /// - /// Gets the being reloaded. + /// Gets the being reloaded. /// public Firearm Firearm { get; } @@ -50,7 +50,7 @@ public ReloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = public Item Item => Firearm; /// - /// Gets the player who's reloading the weapon. + /// Gets the player who's reloading the weapon. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/RemovingHandcuffsEventArgs.cs b/Exiled.Events/EventArgs/Player/RemovingHandcuffsEventArgs.cs index 8fe8c6861d..c6a90a8355 100644 --- a/Exiled.Events/EventArgs/Player/RemovingHandcuffsEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/RemovingHandcuffsEventArgs.cs @@ -11,12 +11,12 @@ namespace Exiled.Events.EventArgs.Player using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before freeing a handcuffed player. + /// Contains all information before freeing a handcuffed player. /// public class RemovingHandcuffsEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The cuffer player. /// The target player to be uncuffed. @@ -29,17 +29,17 @@ public RemovingHandcuffsEventArgs(Player cuffer, Player target, bool isAllowed = } /// - /// Gets the target player to be cuffed. + /// Gets the target player to be cuffed. /// public Player Target { get; } /// - /// Gets or sets a value indicating whether or not the player can be handcuffed. + /// Gets or sets a value indicating whether or not the player can be handcuffed. /// public bool IsAllowed { get; set; } /// - /// Gets the cuffer player. + /// Gets the cuffer player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ReservedSlotsCheckEventArgs.cs b/Exiled.Events/EventArgs/Player/ReservedSlotsCheckEventArgs.cs index cba5f7905f..db722959bd 100644 --- a/Exiled.Events/EventArgs/Player/ReservedSlotsCheckEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ReservedSlotsCheckEventArgs.cs @@ -11,18 +11,18 @@ namespace Exiled.Events.EventArgs.Player using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information when checking if a player has a reserved slot. + /// Contains all information when checking if a player has a reserved slot. /// public class ReservedSlotsCheckEventArgs : IExiledEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ReservedSlotsCheckEventArgs(string userId, bool hasReservedSlot) { @@ -31,17 +31,17 @@ public ReservedSlotsCheckEventArgs(string userId, bool hasReservedSlot) } /// - /// Gets the UserID of the player that is being checked. + /// Gets the UserID of the player that is being checked. /// public string UserId { get; } /// - /// Gets a value indicating whether the player has a reserved slot in the base game system. + /// Gets a value indicating whether the player has a reserved slot in the base game system. /// public bool HasReservedSlot { get; } /// - /// Gets or sets the event result. + /// Gets or sets the event result. /// public ReservedSlotEventResult Result { get; set; } = ReservedSlotEventResult.UseBaseGameSystem; } diff --git a/Exiled.Events/EventArgs/Player/RevokingMuteEventArgs.cs b/Exiled.Events/EventArgs/Player/RevokingMuteEventArgs.cs index 6c7bc09c99..52dd71aef8 100644 --- a/Exiled.Events/EventArgs/Player/RevokingMuteEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/RevokingMuteEventArgs.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Player using API.Features; /// - /// Contains all information before unmuting a player. + /// Contains all information before unmuting a player. /// public class RevokingMuteEventArgs : IssuingMuteEventArgs { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The player who's being unmuted. diff --git a/Exiled.Events/EventArgs/Player/SearchingPickupEventArgs.cs b/Exiled.Events/EventArgs/Player/SearchingPickupEventArgs.cs index b12aec67c5..6d2366364d 100644 --- a/Exiled.Events/EventArgs/Player/SearchingPickupEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/SearchingPickupEventArgs.cs @@ -15,27 +15,27 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Searching; /// - /// Contains all information before a player searches a Pickup. + /// Contains all information before a player searches a Pickup. /// public class SearchingPickupEventArgs : IPlayerEvent, IPickupEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public SearchingPickupEventArgs(Player player, ItemPickupBase pickup, SearchSession searchSession, SearchCompletor searchCompletor, float searchTime) { @@ -48,32 +48,32 @@ public SearchingPickupEventArgs(Player player, ItemPickupBase pickup, SearchSess } /// - /// Gets or sets the SearchSession. + /// Gets or sets the SearchSession. /// public SearchSession SearchSession { get; set; } /// - /// Gets or sets the SearchCompletor. + /// Gets or sets the SearchCompletor. /// public SearchCompletor SearchCompletor { get; set; } /// - /// Gets or sets the Pickup search duration. + /// Gets or sets the Pickup search duration. /// public float SearchTime { get; set; } /// - /// Gets or sets a value indicating whether the Pickup can be searched. + /// Gets or sets a value indicating whether the Pickup can be searched. /// public bool IsAllowed { get; set; } /// - /// Gets the Pickup that is being searched. + /// Gets the Pickup that is being searched. /// public Pickup Pickup { get; } /// - /// Gets the Player who's searching the Pickup. + /// Gets the Player who's searching the Pickup. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/SendingAdminChatMessageEventsArgs.cs b/Exiled.Events/EventArgs/Player/SendingAdminChatMessageEventsArgs.cs index 4ff21132d7..ba65b6d791 100644 --- a/Exiled.Events/EventArgs/Player/SendingAdminChatMessageEventsArgs.cs +++ b/Exiled.Events/EventArgs/Player/SendingAdminChatMessageEventsArgs.cs @@ -15,21 +15,21 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Searching; /// - /// Contains all information before a player sends a message in AdminChat. + /// Contains all information before a player sends a message in AdminChat. /// public class SendingAdminChatMessageEventsArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public SendingAdminChatMessageEventsArgs(Player player, string message, bool isAllowed) { @@ -39,17 +39,17 @@ public SendingAdminChatMessageEventsArgs(Player player, string message, bool isA } /// - /// Gets or sets a value indicating whether the pickup can be searched. + /// Gets or sets a value indicating whether the pickup can be searched. /// public bool IsAllowed { get; set; } /// - /// Gets or sets the message which is being sent. + /// Gets or sets the message which is being sent. /// public string Message { get; set; } /// - /// Gets the player who's sending the message. + /// Gets the player who's sending the message. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/ShootingEventArgs.cs b/Exiled.Events/EventArgs/Player/ShootingEventArgs.cs index 6aa51b108e..9802b83304 100644 --- a/Exiled.Events/EventArgs/Player/ShootingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ShootingEventArgs.cs @@ -19,37 +19,39 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; + using BaseFirearm = InventorySystem.Items.Firearms.Firearm; + /// - /// Contains all information before a player fires a weapon. + /// Contains all information before a player fires a weapon. /// public class ShootingEventArgs : IPlayerEvent, IDeniableEvent, IFirearmEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// - public ShootingEventArgs(Player shooter, Firearm firearm, ShotMessage msg) + public ShootingEventArgs(Player shooter, BaseFirearm firearm, ShotMessage msg) { Player = shooter; - Firearm = firearm; + Firearm = Item.Get(firearm).As(); ShotMessage = msg; } /// - /// Gets the player who's shooting. + /// Gets the player who's shooting. /// public Player Player { get; } /// - /// Gets the target . + /// Gets the target . /// public Firearm Firearm { get; } @@ -57,12 +59,12 @@ public ShootingEventArgs(Player shooter, Firearm firearm, ShotMessage msg) public Item Item => Firearm; /// - /// Gets or sets the for the event. + /// Gets or sets the for the event. /// public ShotMessage ShotMessage { get; set; } /// - /// Gets or sets the position of the shot. + /// Gets or sets the position of the shot. /// public Vector3 ShotPosition { @@ -83,7 +85,7 @@ public Vector3 ShotPosition } /// - /// Gets or sets the netId of the target of the shot. + /// Gets or sets the netId of the target of the shot. /// public uint TargetNetId { @@ -104,7 +106,7 @@ public uint TargetNetId } /// - /// Gets or sets a value indicating whether or not the shot can be fired. + /// Gets or sets a value indicating whether or not the shot can be fired. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/ShotEventArgs.cs b/Exiled.Events/EventArgs/Player/ShotEventArgs.cs index c659a793ee..288d3c3f72 100644 --- a/Exiled.Events/EventArgs/Player/ShotEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ShotEventArgs.cs @@ -14,25 +14,25 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information after a player has fired a weapon. + /// Contains all information after a player has fired a weapon. /// public class ShotEventArgs : IPlayerEvent, IFirearmEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// The hit. /// - /// + /// /// /// - /// + /// /// public ShotEventArgs(Player shooter, Firearm firearm, RaycastHit hit, IDestructible destructible, float damage) { @@ -51,12 +51,12 @@ public ShotEventArgs(Player shooter, Firearm firearm, RaycastHit hit, IDestructi } /// - /// Gets the player who shot. + /// Gets the player who shot. /// public Player Player { get; } /// - /// Gets the firearm used to shoot. + /// Gets the firearm used to shoot. /// public Firearm Firearm { get; } @@ -64,37 +64,37 @@ public ShotEventArgs(Player shooter, Firearm firearm, RaycastHit hit, IDestructi public Item Item => Firearm; /// - /// Gets the hitbox type of the shot. Can be !. + /// Gets the hitbox type of the shot. Can be !. /// public HitboxIdentity Hitbox { get; } /// - /// Gets or sets the inflicted damage. + /// Gets or sets the inflicted damage. /// public float Damage { get; set; } /// - /// Gets the shot distance. + /// Gets the shot distance. /// public float Distance { get; } /// - /// Gets the shot position. + /// Gets the shot position. /// public Vector3 Position { get; } /// - /// Gets the raycast result. + /// Gets the raycast result. /// public RaycastHit RaycastHit { get; } /// - /// Gets the target of the shot. Can be !. + /// Gets the target of the shot. Can be !. /// public Player Target { get; } /// - /// Gets or sets a value indicating whether or not the shot can hurt the target. + /// Gets or sets a value indicating whether or not the shot can hurt the target. /// public bool CanHurt { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/SpawnedEventArgs.cs b/Exiled.Events/EventArgs/Player/SpawnedEventArgs.cs index 268d57796b..094b5406a3 100644 --- a/Exiled.Events/EventArgs/Player/SpawnedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/SpawnedEventArgs.cs @@ -16,12 +16,12 @@ namespace Exiled.Events.EventArgs.Player using PlayerRoles; /// - /// Contains all information after spawning a player. + /// Contains all information after spawning a player. /// public class SpawnedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// the spawned player. /// the spawned player's old role. @@ -34,22 +34,22 @@ public SpawnedEventArgs(Player player, PlayerRoleBase oldRole) } /// - /// Gets the who spawned. + /// Gets the who spawned. /// public Player Player { get; } /// - /// Gets the player's old role. + /// Gets the player's old role. /// public Role OldRole { get; } /// - /// Gets the reason for their class change. + /// Gets the reason for their class change. /// public SpawnReason Reason { get; } /// - /// Gets the spawn flags for their class change. + /// Gets the spawn flags for their class change. /// public RoleSpawnFlags SpawnFlags { get; } } diff --git a/Exiled.Events/EventArgs/Player/SpawnedRagdollEventArgs.cs b/Exiled.Events/EventArgs/Player/SpawnedRagdollEventArgs.cs index 768cd868e3..497d25e9e2 100644 --- a/Exiled.Events/EventArgs/Player/SpawnedRagdollEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/SpawnedRagdollEventArgs.cs @@ -18,24 +18,24 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information after spawning a player ragdoll. + /// Contains all information after spawning a player ragdoll. /// public class SpawnedRagdollEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public SpawnedRagdollEventArgs(Player player, Ragdoll ragdoll, RagdollData info, DamageHandlerBase damageHandlerBase) { @@ -46,47 +46,47 @@ public SpawnedRagdollEventArgs(Player player, Ragdoll ragdoll, RagdollData info, } /// - /// Gets the ragdoll's position. + /// Gets the ragdoll's position. /// public Vector3 Position => Info.StartPosition; /// - /// Gets the ragdoll's rotation. + /// Gets the ragdoll's rotation. /// public Quaternion Rotation => Info.StartRotation; /// - /// Gets the ragdoll's . + /// Gets the ragdoll's . /// public RoleTypeId Role => Info.RoleType; /// - /// Gets the ragdoll's creation time. + /// Gets the ragdoll's creation time. /// public double CreationTime => Info.CreationTime; /// - /// Gets the ragdoll's nickname. + /// Gets the ragdoll's nickname. /// public string Nickname => Info.Nickname; /// - /// Gets the ragdoll's . + /// Gets the ragdoll's . /// public RagdollData Info { get; } /// - /// Gets the ragdoll's . + /// Gets the ragdoll's . /// public DamageHandlerBase DamageHandlerBase { get; } /// - /// Gets the spawned . + /// Gets the spawned . /// public Ragdoll Ragdoll { get; } /// - /// Gets the Owner of the ragdoll. + /// Gets the Owner of the ragdoll. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/SpawningEventArgs.cs b/Exiled.Events/EventArgs/Player/SpawningEventArgs.cs index 82a59251d9..ab972e705c 100644 --- a/Exiled.Events/EventArgs/Player/SpawningEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/SpawningEventArgs.cs @@ -15,24 +15,24 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before spawning a player. + /// Contains all information before spawning a player. /// public class SpawningEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// the spawned player's old role. + /// the spawned player's old role. /// public SpawningEventArgs(Player player, Vector3 position, float rotation, PlayerRoleBase oldRole) { @@ -43,28 +43,28 @@ public SpawningEventArgs(Player player, Vector3 position, float rotation, Player } /// - /// Gets the spawning . + /// Gets the spawning . /// public Player Player { get; } /// - /// Gets or sets the 's spawning position. + /// Gets or sets the 's spawning position. /// /// - /// Position will apply only for . + /// Position will apply only for . /// public Vector3 Position { get; set; } /// - /// Gets or sets the 's spawning rotation. + /// Gets or sets the 's spawning rotation. /// /// - /// Rotation will apply only for . + /// Rotation will apply only for . /// public float HorizontalRotation { get; set; } /// - /// Gets the player's old role. + /// Gets the player's old role. /// public Role OldRole { get; } } diff --git a/Exiled.Events/EventArgs/Player/SpawningRagdollEventArgs.cs b/Exiled.Events/EventArgs/Player/SpawningRagdollEventArgs.cs index 59a60fda54..13e7f25bcf 100644 --- a/Exiled.Events/EventArgs/Player/SpawningRagdollEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/SpawningRagdollEventArgs.cs @@ -18,21 +18,21 @@ namespace Exiled.Events.EventArgs.Player using UnityEngine; /// - /// Contains all information before spawning a player ragdoll. + /// Contains all information before spawning a player ragdoll. /// public class SpawningRagdollEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public SpawningRagdollEventArgs(RagdollData info, DamageHandlerBase damageHandlerBase, bool isAllowed = true) { @@ -44,7 +44,7 @@ public SpawningRagdollEventArgs(RagdollData info, DamageHandlerBase damageHandle } /// - /// Gets or sets the spawning position of the ragdoll. + /// Gets or sets the spawning position of the ragdoll. /// public Vector3 Position { @@ -53,7 +53,7 @@ public Vector3 Position } /// - /// Gets or sets the ragdoll's rotation. + /// Gets or sets the ragdoll's rotation. /// public Quaternion Rotation { @@ -62,12 +62,12 @@ public Quaternion Rotation } /// - /// Gets or sets the ragdoll's scale. + /// Gets or sets the ragdoll's scale. /// public Vector3 Scale { get; set; } /// - /// Gets or sets the ragdoll's . + /// Gets or sets the ragdoll's . /// public RoleTypeId Role { @@ -76,12 +76,12 @@ public RoleTypeId Role } /// - /// Gets the ragdoll's creation time. + /// Gets the ragdoll's creation time. /// public double CreationTime => Info.CreationTime; /// - /// Gets or sets the ragdoll's nickname. + /// Gets or sets the ragdoll's nickname. /// public string Nickname { @@ -90,22 +90,22 @@ public string Nickname } /// - /// Gets or sets the ragdoll's . + /// Gets or sets the ragdoll's . /// public RagdollData Info { get; set; } /// - /// Gets or sets the ragdoll's . + /// Gets or sets the ragdoll's . /// public DamageHandlerBase DamageHandlerBase { get; set; } /// - /// Gets or sets a value indicating whether or not the ragdoll can be spawned. + /// Gets or sets a value indicating whether or not the ragdoll can be spawned. /// public bool IsAllowed { get; set; } /// - /// Gets the Owner of the ragdoll. + /// Gets the Owner of the ragdoll. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/StoppingGeneratorEventArgs.cs b/Exiled.Events/EventArgs/Player/StoppingGeneratorEventArgs.cs index c96bde94f6..addeb79ad1 100644 --- a/Exiled.Events/EventArgs/Player/StoppingGeneratorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/StoppingGeneratorEventArgs.cs @@ -12,12 +12,12 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a player turns off a generator. + /// Contains all information before a player turns off a generator. /// public class StoppingGeneratorEventArgs : IPlayerEvent, IGeneratorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's flipping the switch. /// The instance. @@ -30,17 +30,17 @@ public StoppingGeneratorEventArgs(Player player, Scp079Generator generator, bool } /// - /// Gets or sets a value indicating whether or not the switch can be flipped. + /// Gets or sets a value indicating whether or not the switch can be flipped. /// public bool IsAllowed { get; set; } /// - /// Gets the instance. + /// Gets the instance. /// public Generator Generator { get; } /// - /// Gets the player who's filpping the switch of the generator. + /// Gets the player who's filpping the switch of the generator. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/TogglingFlashlightEventArgs.cs b/Exiled.Events/EventArgs/Player/TogglingFlashlightEventArgs.cs index 167d85c689..b8990f85d7 100644 --- a/Exiled.Events/EventArgs/Player/TogglingFlashlightEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/TogglingFlashlightEventArgs.cs @@ -14,23 +14,23 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.ToggleableLights; /// - /// Contains all information before a player toggles a flashlight. + /// Contains all information before a player toggles a flashlight. /// public class TogglingFlashlightEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { private readonly bool initialState; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TogglingFlashlightEventArgs(ReferenceHub hub, ToggleableLightItemBase flashlight, bool newState) { @@ -41,7 +41,7 @@ public TogglingFlashlightEventArgs(ReferenceHub hub, ToggleableLightItemBase fla } /// - /// Gets the being toggled. + /// Gets the being toggled. /// public Flashlight Flashlight { get; } @@ -49,12 +49,12 @@ public TogglingFlashlightEventArgs(ReferenceHub hub, ToggleableLightItemBase fla public Item Item => Flashlight; /// - /// Gets or sets a value indicating whether or not the flashlight should be on. + /// Gets or sets a value indicating whether or not the flashlight should be on. /// public bool NewState { get; set; } /// - /// Gets or sets a value indicating whether or not the player can toggle the flashlight. + /// Gets or sets a value indicating whether or not the player can toggle the flashlight. /// public bool IsAllowed { @@ -63,7 +63,7 @@ public bool IsAllowed } /// - /// Gets the player who's toggling the flashlight. + /// Gets the player who's toggling the flashlight. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/TogglingNoClipEventArgs.cs b/Exiled.Events/EventArgs/Player/TogglingNoClipEventArgs.cs index c1921f28e4..ee1b858d83 100644 --- a/Exiled.Events/EventArgs/Player/TogglingNoClipEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/TogglingNoClipEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player toggles noclip. + /// Contains all information before a player toggles noclip. /// public class TogglingNoClipEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TogglingNoClipEventArgs(Player player, bool newValue, bool isAllowed = true) { @@ -36,17 +36,17 @@ public TogglingNoClipEventArgs(Player player, bool newValue, bool isAllowed = tr } /// - /// Gets the player who's toggling noclip. + /// Gets the player who's toggling noclip. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether or not the noclip mode will be enabled or not. + /// Gets or sets a value indicating whether or not the noclip mode will be enabled or not. /// public bool IsEnabled { get; set; } /// - /// Gets or sets a value indicating whether or not the player can toggle noclip. + /// Gets or sets a value indicating whether or not the player can toggle noclip. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/TogglingWeaponFlashlightEventArgs.cs b/Exiled.Events/EventArgs/Player/TogglingWeaponFlashlightEventArgs.cs index e697ed79e4..1335fe0bb9 100644 --- a/Exiled.Events/EventArgs/Player/TogglingWeaponFlashlightEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/TogglingWeaponFlashlightEventArgs.cs @@ -13,24 +13,24 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player toggles the weapon's flashlight. + /// Contains all information before a player toggles the weapon's flashlight. /// public class TogglingWeaponFlashlightEventArgs : IPlayerEvent, IFirearmEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TogglingWeaponFlashlightEventArgs(Player player, Firearm firearm, bool newState, bool isAllowed = true) { @@ -41,17 +41,17 @@ public TogglingWeaponFlashlightEventArgs(Player player, Firearm firearm, bool ne } /// - /// Gets or sets a value indicating whether the new weapon's flashlight state will be enabled. + /// Gets or sets a value indicating whether the new weapon's flashlight state will be enabled. /// public bool NewState { get; set; } /// - /// Gets or sets a value indicating whether or not the weapon's flashlight can be toggled. + /// Gets or sets a value indicating whether or not the weapon's flashlight can be toggled. /// public bool IsAllowed { get; set; } /// - /// Gets the being held. + /// Gets the being held. /// public Firearm Firearm { get; } @@ -59,7 +59,7 @@ public TogglingWeaponFlashlightEventArgs(Player player, Firearm firearm, bool ne public Item Item => Firearm; /// - /// Gets the player who's toggling the weapon's flashlight. + /// Gets the player who's toggling the weapon's flashlight. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/TransmittingEventArgs.cs b/Exiled.Events/EventArgs/Player/TransmittingEventArgs.cs index f1f421539c..853ee0e3e9 100644 --- a/Exiled.Events/EventArgs/Player/TransmittingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/TransmittingEventArgs.cs @@ -15,18 +15,18 @@ namespace Exiled.Events.EventArgs.Player using VoiceChat; /// - /// Contains all information regarding the player using the radio. + /// Contains all information regarding the player using the radio. /// public class TransmittingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public TransmittingEventArgs(Player player, VoiceModuleBase voiceModule) { @@ -36,22 +36,22 @@ public TransmittingEventArgs(Player player, VoiceModuleBase voiceModule) } /// - /// Gets the player who's transmitting. + /// Gets the player who's transmitting. /// public Player Player { get; } /// - /// Gets the 's . + /// Gets the 's . /// public VoiceModuleBase VoiceModule { get; } /// - /// Gets a value indicating whether or not the player is transmitting. + /// Gets a value indicating whether or not the player is transmitting. /// public bool IsTransmitting { get; } /// - /// Gets or sets a value indicating whether or not the player can transmit. + /// Gets or sets a value indicating whether or not the player can transmit. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/TriggeringTeslaEventArgs.cs b/Exiled.Events/EventArgs/Player/TriggeringTeslaEventArgs.cs index 26cb1d11f3..ad71df8d1e 100644 --- a/Exiled.Events/EventArgs/Player/TriggeringTeslaEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/TriggeringTeslaEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before triggering a tesla. + /// Contains all information before triggering a tesla. /// public class TriggeringTeslaEventArgs : IPlayerEvent, ITeslaEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public TriggeringTeslaEventArgs(Player player, TeslaGate teslaGate) { @@ -34,37 +34,37 @@ public TriggeringTeslaEventArgs(Player player, TeslaGate teslaGate) } /// - /// Gets or sets a value indicating whether or not the player is in hurting range. + /// Gets or sets a value indicating whether or not the player is in hurting range. /// public bool IsInHurtingRange { get; set; } /// - /// Gets or sets a value indicating whether or not the player will cause the tesla going to be idle. + /// Gets or sets a value indicating whether or not the player will cause the tesla going to be idle. /// public bool IsInIdleRange { get; set; } = true; /// - /// Gets or sets a value indicating whether or not the player will cause the tesla going to be activated. + /// Gets or sets a value indicating whether or not the player will cause the tesla going to be activated. /// public bool IsTriggerable { get; set; } /// - /// Gets the player who triggered the tesla. + /// Gets the player who triggered the tesla. /// public Player Player { get; } /// - /// Gets the Tesla. + /// Gets the Tesla. /// public TeslaGate Tesla { get; } /// - /// Gets or sets a value indicating whether or not the player will be detected by the tesla. + /// Gets or sets a value indicating whether or not the player will be detected by the tesla. /// public bool IsAllowed { get; set; } = true; /// - /// Gets or sets a value indicating whether or not the tesla will be deactivated. + /// Gets or sets a value indicating whether or not the tesla will be deactivated. /// public bool DisableTesla { get; set; } } diff --git a/Exiled.Events/EventArgs/Player/UnloadingWeaponEventArgs.cs b/Exiled.Events/EventArgs/Player/UnloadingWeaponEventArgs.cs index 213f15adba..c16b1131f0 100644 --- a/Exiled.Events/EventArgs/Player/UnloadingWeaponEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UnloadingWeaponEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information before a player's weapon is unloaded. + /// Contains all information before a player's weapon is unloaded. /// public class UnloadingWeaponEventArgs : IPlayerEvent, IFirearmEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UnloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = true) { @@ -37,12 +37,12 @@ public UnloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = } /// - /// Gets or sets a value indicating whether or not the weapon can be unloaded. + /// Gets or sets a value indicating whether or not the weapon can be unloaded. /// public bool IsAllowed { get; set; } /// - /// Gets the being unloaded. + /// Gets the being unloaded. /// public Firearm Firearm { get; } @@ -50,7 +50,7 @@ public UnloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = public Item Item => Firearm; /// - /// Gets the player who's unloading the weapon. + /// Gets the player who's unloading the weapon. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/UnlockingGeneratorEventArgs.cs b/Exiled.Events/EventArgs/Player/UnlockingGeneratorEventArgs.cs index e0a3b01bfb..5a42e30140 100644 --- a/Exiled.Events/EventArgs/Player/UnlockingGeneratorEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UnlockingGeneratorEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Player using MapGeneration.Distributors; /// - /// Contains all information before a generator is unlocked. + /// Contains all information before a generator is unlocked. /// public class UnlockingGeneratorEventArgs : IPlayerEvent, IGeneratorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UnlockingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true) { @@ -38,17 +38,17 @@ public UnlockingGeneratorEventArgs(Player player, Scp079Generator generator, boo } /// - /// Gets or sets a value indicating whether or not the generator can be unlocked. + /// Gets or sets a value indicating whether or not the generator can be unlocked. /// public bool IsAllowed { get; set; } /// - /// Gets the generator that is going to be unlocked. + /// Gets the generator that is going to be unlocked. /// public Generator Generator { get; } /// - /// Gets the player who's unlocking the generator. + /// Gets the player who's unlocking the generator. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/UsedItemEventArgs.cs b/Exiled.Events/EventArgs/Player/UsedItemEventArgs.cs index 333037c8d8..2618d4a5db 100644 --- a/Exiled.Events/EventArgs/Player/UsedItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UsedItemEventArgs.cs @@ -15,18 +15,18 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Usables; /// - /// Contains all information after a player used an item. + /// Contains all information after a player used an item. /// public class UsedItemEventArgs : IPlayerEvent, IUsableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public UsedItemEventArgs(ReferenceHub player, UsableItem item) { @@ -35,7 +35,7 @@ public UsedItemEventArgs(ReferenceHub player, UsableItem item) } /// - /// Gets the item that the player used. + /// Gets the item that the player used. /// public Usable Usable { get; } @@ -43,7 +43,7 @@ public UsedItemEventArgs(ReferenceHub player, UsableItem item) public Item Item => Usable; /// - /// Gets the player who used the item. + /// Gets the player who used the item. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/UsingItemCompletedEventArgs.cs b/Exiled.Events/EventArgs/Player/UsingItemCompletedEventArgs.cs index 00198760e8..a0f86dd041 100644 --- a/Exiled.Events/EventArgs/Player/UsingItemCompletedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UsingItemCompletedEventArgs.cs @@ -14,16 +14,16 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Usables; /// - /// Contains all information before a player uses an item. + /// Contains all information before a player uses an item. /// public class UsingItemCompletedEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's going to use the item. /// - /// + /// /// public UsingItemCompletedEventArgs(Player player, UsableItem item) { @@ -32,7 +32,7 @@ public UsingItemCompletedEventArgs(Player player, UsableItem item) } /// - /// Gets the item that the player using. + /// Gets the item that the player using. /// public Usable Usable { get; } @@ -40,12 +40,12 @@ public UsingItemCompletedEventArgs(Player player, UsableItem item) public Item Item => Usable; /// - /// Gets the player who using the item. + /// Gets the player who using the item. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether or not the player can use the item. + /// Gets or sets a value indicating whether or not the player can use the item. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/UsingItemEventArgs.cs b/Exiled.Events/EventArgs/Player/UsingItemEventArgs.cs index 999eecf568..708a58f8a9 100644 --- a/Exiled.Events/EventArgs/Player/UsingItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UsingItemEventArgs.cs @@ -14,19 +14,19 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Usables; /// - /// Contains all information before a player uses an item. + /// Contains all information before a player uses an item. /// public class UsingItemEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's going to use the item. /// - /// + /// /// /// - /// + /// /// public UsingItemEventArgs(Player player, UsableItem item, float cooldown) { @@ -36,7 +36,7 @@ public UsingItemEventArgs(Player player, UsableItem item, float cooldown) } /// - /// Gets the item that the player using. + /// Gets the item that the player using. /// public Usable Usable { get; } @@ -44,17 +44,17 @@ public UsingItemEventArgs(Player player, UsableItem item, float cooldown) public Item Item => Usable; /// - /// Gets the player who using the item. + /// Gets the player who using the item. /// public Player Player { get; } /// - /// Gets or sets the item cooldown. + /// Gets or sets the item cooldown. /// public float Cooldown { get; set; } /// - /// Gets or sets a value indicating whether or not the player can use the item. + /// Gets or sets a value indicating whether or not the player can use the item. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Player/UsingMicroHIDEnergyEventArgs.cs b/Exiled.Events/EventArgs/Player/UsingMicroHIDEnergyEventArgs.cs index 353617e2da..d98f014ed8 100644 --- a/Exiled.Events/EventArgs/Player/UsingMicroHIDEnergyEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UsingMicroHIDEnergyEventArgs.cs @@ -15,27 +15,27 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.MicroHID; /// - /// Contains all information before MicroHID energy is changed. + /// Contains all information before MicroHID energy is changed. /// public class UsingMicroHIDEnergyEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UsingMicroHIDEnergyEventArgs(Player player, MicroHIDItem microHIDitem, HidState currentState, float drain, bool isAllowed = true) { @@ -47,7 +47,7 @@ public UsingMicroHIDEnergyEventArgs(Player player, MicroHIDItem microHIDitem, Hi } /// - /// Gets the MicroHID instance. + /// Gets the MicroHID instance. /// public MicroHid MicroHID { get; } @@ -55,22 +55,22 @@ public UsingMicroHIDEnergyEventArgs(Player player, MicroHIDItem microHIDitem, Hi public Item Item => MicroHID; /// - /// Gets the current state of the MicroHID. + /// Gets the current state of the MicroHID. /// public HidState CurrentState { get; } /// - /// Gets or sets the MicroHID energy drain. + /// Gets or sets the MicroHID energy drain. /// public float Drain { get; set; } /// - /// Gets or sets a value indicating whether the MicroHID energy can be changed or not. + /// Gets or sets a value indicating whether the MicroHID energy can be changed or not. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using the MicroHID. + /// Gets the player who's using the MicroHID. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/UsingRadioBatteryEventArgs.cs b/Exiled.Events/EventArgs/Player/UsingRadioBatteryEventArgs.cs index 7b0191a150..90369883f1 100644 --- a/Exiled.Events/EventArgs/Player/UsingRadioBatteryEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/UsingRadioBatteryEventArgs.cs @@ -15,24 +15,24 @@ namespace Exiled.Events.EventArgs.Player using InventorySystem.Items.Radio; /// - /// Contains all information before radio battery charge is changed. + /// Contains all information before radio battery charge is changed. /// public class UsingRadioBatteryEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, bool isAllowed = true) { @@ -43,7 +43,7 @@ public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, b } /// - /// Gets the which is being used. + /// Gets the which is being used. /// public Radio Radio { get; } @@ -51,17 +51,17 @@ public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, b public Item Item => Radio; /// - /// Gets or sets the radio battery drain per second. + /// Gets or sets the radio battery drain per second. /// public float Drain { get; set; } /// - /// Gets or sets a value indicating whether the radio battery charge can be changed or not. + /// Gets or sets a value indicating whether the radio battery charge can be changed or not. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using the radio. + /// Gets the player who's using the radio. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/VerifiedEventArgs.cs b/Exiled.Events/EventArgs/Player/VerifiedEventArgs.cs index 626f11b25a..28ae41d509 100644 --- a/Exiled.Events/EventArgs/Player/VerifiedEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/VerifiedEventArgs.cs @@ -12,20 +12,20 @@ namespace Exiled.Events.EventArgs.Player using Interfaces; /// - /// Contains all information after the server verifies a player. + /// Contains all information after the server verifies a player. /// public class VerifiedEventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public VerifiedEventArgs(Player player) => Player = player; /// - /// Gets the verified player. + /// Gets the verified player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Player/VoiceChattingEventArgs.cs b/Exiled.Events/EventArgs/Player/VoiceChattingEventArgs.cs index d838f0a066..3b0e90bb8c 100644 --- a/Exiled.Events/EventArgs/Player/VoiceChattingEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/VoiceChattingEventArgs.cs @@ -15,24 +15,24 @@ namespace Exiled.Events.EventArgs.Player using VoiceChat.Networking; /// - /// Contains all information after a player presses the voicechat key. + /// Contains all information after a player presses the voicechat key. /// public class VoiceChattingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public VoiceChattingEventArgs(Player player, VoiceMessage voiceMessage, VoiceModuleBase voiceModule, bool isAllowed = true) { @@ -43,22 +43,22 @@ public VoiceChattingEventArgs(Player player, VoiceMessage voiceMessage, VoiceMod } /// - /// Gets the player who's voicechatting. + /// Gets the player who's voicechatting. /// public Player Player { get; } /// - /// Gets or sets the 's . + /// Gets or sets the 's . /// public VoiceMessage VoiceMessage { get; set; } /// - /// Gets the 's . + /// Gets the 's . /// public VoiceModuleBase VoiceModule { get; } /// - /// Gets or sets a value indicating whether or not the player can voicechat. + /// Gets or sets a value indicating whether or not the player can voicechat. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp049/ActivatingSenseEventArgs.cs b/Exiled.Events/EventArgs/Scp049/ActivatingSenseEventArgs.cs index f5b3f3eb2d..8a8b719be7 100644 --- a/Exiled.Events/EventArgs/Scp049/ActivatingSenseEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp049/ActivatingSenseEventArgs.cs @@ -16,7 +16,7 @@ namespace Exiled.Events.EventArgs.Scp049 using Scp049Role = API.Features.Roles.Scp049Role; /// - /// Contains all information before SCP-049 good sense of the doctor is activated. + /// Contains all information before SCP-049 good sense of the doctor is activated. /// public class ActivatingSenseEventArgs : IScp049Event, IDeniableEvent { diff --git a/Exiled.Events/EventArgs/Scp049/FinishingRecallEventArgs.cs b/Exiled.Events/EventArgs/Scp049/FinishingRecallEventArgs.cs index e29916155e..e897dbb04a 100644 --- a/Exiled.Events/EventArgs/Scp049/FinishingRecallEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp049/FinishingRecallEventArgs.cs @@ -13,24 +13,24 @@ namespace Exiled.Events.EventArgs.Scp049 using PlayerRoles.Ragdolls; /// - /// Contains all information before SCP-049 finishes reviving a player. + /// Contains all information before SCP-049 finishes reviving a player. /// public class FinishingRecallEventArgs : IScp049Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public FinishingRecallEventArgs(Player target, Player scp049, BasicRagdoll ragdoll, bool isAllowed = true) { @@ -45,22 +45,22 @@ public FinishingRecallEventArgs(Player target, Player scp049, BasicRagdoll ragdo public Scp049Role Scp049 { get; } /// - /// Gets the player who is controlling SCP-049. + /// Gets the player who is controlling SCP-049. /// public Player Player { get; } /// - /// Gets the player who's getting revived. + /// Gets the player who's getting revived. /// public Player Target { get; } /// - /// Gets the Ragdoll who's getting revived. + /// Gets the Ragdoll who's getting revived. /// public Ragdoll Ragdoll { get; } /// - /// Gets or sets a value indicating whether or not the player can be revived. + /// Gets or sets a value indicating whether or not the player can be revived. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp0492/ConsumedCorpseEventArgs.cs b/Exiled.Events/EventArgs/Scp0492/ConsumedCorpseEventArgs.cs index ce45ceff26..c3d33374c8 100644 --- a/Exiled.Events/EventArgs/Scp0492/ConsumedCorpseEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp0492/ConsumedCorpseEventArgs.cs @@ -17,7 +17,7 @@ namespace Exiled.Events.EventArgs.Scp0492 using PlayerRoles.Ragdolls; /// - /// Contains all information after zombie consumes RagDolls. + /// Contains all information after zombie consumes RagDolls. /// public class ConsumedCorpseEventArgs : IScp0492Event, IRagdollEvent { @@ -35,7 +35,7 @@ public ConsumedCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll) } /// - /// Gets the player who is controlling SCP-049-2. + /// Gets the player who is controlling SCP-049-2. /// public Player Player { get; } @@ -43,12 +43,12 @@ public ConsumedCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll) public Scp0492Role Scp0492 { get; } /// - /// Gets the RagDoll to be consumed. + /// Gets the RagDoll to be consumed. /// public Ragdoll Ragdoll { get; } /// - /// Gets or sets a value about how mush heath the Zombie will get. + /// Gets or sets a value about how mush heath the Zombie will get. /// public float ConsumeHeal { get; set; } = ZombieConsumeAbility.ConsumeHeal; } diff --git a/Exiled.Events/EventArgs/Scp0492/ConsumingCorpseEventArgs.cs b/Exiled.Events/EventArgs/Scp0492/ConsumingCorpseEventArgs.cs index 63c07e8cf0..d398e147a5 100644 --- a/Exiled.Events/EventArgs/Scp0492/ConsumingCorpseEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp0492/ConsumingCorpseEventArgs.cs @@ -15,7 +15,7 @@ namespace Exiled.Events.EventArgs.Scp0492 using PlayerRoles.Ragdolls; /// - /// Contains all information before zombie consumes a ragdoll. + /// Contains all information before zombie consumes a ragdoll. /// public class ConsumingCorpseEventArgs : IScp0492Event, IRagdollEvent, IDeniableEvent { @@ -37,7 +37,7 @@ public ConsumingCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll, Zombi } /// - /// Gets the player who is controlling SCP-049-2. + /// Gets the player who is controlling SCP-049-2. /// public Player Player { get; } @@ -45,7 +45,7 @@ public ConsumingCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll, Zombi public Scp0492Role Scp0492 { get; } /// - /// Gets the ragdoll to be consumed. + /// Gets the ragdoll to be consumed. /// public Ragdoll Ragdoll { get; } @@ -55,7 +55,7 @@ public ConsumingCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll, Zombi public ZombieConsumeAbility.ConsumeError ErrorCode { get; set; } /// - /// Gets or sets a value indicating whether 049-2 can consume a corpse. + /// Gets or sets a value indicating whether 049-2 can consume a corpse. /// public bool IsAllowed { diff --git a/Exiled.Events/EventArgs/Scp079/ChangingCameraEventArgs.cs b/Exiled.Events/EventArgs/Scp079/ChangingCameraEventArgs.cs index 496feac804..88e1542430 100644 --- a/Exiled.Events/EventArgs/Scp079/ChangingCameraEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/ChangingCameraEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Scp079 using PlayerRoles.PlayableScps.Scp079.Cameras; /// - /// Contains all information before a SCP-079 changes the current camera. + /// Contains all information before a SCP-079 changes the current camera. /// public class ChangingCameraEventArgs : IScp079Event, ICameraEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingCameraEventArgs(Player player, Scp079Camera camera, float auxiliaryPowerCost) { @@ -40,7 +40,7 @@ public ChangingCameraEventArgs(Player player, Scp079Camera camera, float auxilia } /// - /// Gets the player who is SCP-079. + /// Gets the player who is SCP-079. /// public Player Player { get; } @@ -48,19 +48,19 @@ public ChangingCameraEventArgs(Player player, Scp079Camera camera, float auxilia public Scp079Role Scp079 { get; } /// - /// Gets or sets the amount of auxiliary power that will be required to switch cameras. + /// Gets or sets the amount of auxiliary power that will be required to switch cameras. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets the camera SCP-079 will be moved to. + /// Gets or sets the camera SCP-079 will be moved to. /// public Camera Camera { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can switch cameras. - /// Defaults to a value describing whether or not SCP-079 has enough auxiliary power to switch. - ///
Can be set to to allow a switch regardless of SCP-079's auxiliary power amount.
+ /// Gets or sets a value indicating whether or not SCP-079 can switch cameras. + /// Defaults to a value describing whether or not SCP-079 has enough auxiliary power to switch. + ///
Can be set to to allow a switch regardless of SCP-079's auxiliary power amount.
///
public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/ChangingSpeakerStatusEventArgs.cs b/Exiled.Events/EventArgs/Scp079/ChangingSpeakerStatusEventArgs.cs index e2b90a766c..5b4002366f 100644 --- a/Exiled.Events/EventArgs/Scp079/ChangingSpeakerStatusEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/ChangingSpeakerStatusEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Scp079 using Interfaces; /// - /// Contains all information before SCP-079 uses a speaker. + /// Contains all information before SCP-079 uses a speaker. /// public class ChangingSpeakerStatusEventArgs : IScp079Event, IRoomEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ChangingSpeakerStatusEventArgs(Player player, bool isAllowed) { @@ -36,7 +36,7 @@ public ChangingSpeakerStatusEventArgs(Player player, bool isAllowed) } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -44,12 +44,12 @@ public ChangingSpeakerStatusEventArgs(Player player, bool isAllowed) public Scp079Role Scp079 { get; } /// - /// Gets the room that the speaker is located in. + /// Gets the room that the speaker is located in. /// public Room Room { get; } /// - /// Gets or sets a value indicating whether SCP-079 is able to speak to players. + /// Gets or sets a value indicating whether SCP-079 is able to speak to players. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/ElevatorTeleportingEventArgs.cs b/Exiled.Events/EventArgs/Scp079/ElevatorTeleportingEventArgs.cs index 35374315df..55ad118fa5 100644 --- a/Exiled.Events/EventArgs/Scp079/ElevatorTeleportingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/ElevatorTeleportingEventArgs.cs @@ -16,24 +16,24 @@ namespace Exiled.Events.EventArgs.Scp079 using MapGeneration; /// - /// Contains all information before SCP-079 changes rooms via elevator. + /// Contains all information before SCP-079 changes rooms via elevator. /// public class ElevatorTeleportingEventArgs : IScp079Event, IRoomEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ElevatorTeleportingEventArgs(Player player, RoomIdentifier room, ElevatorDoor elevatorDoor, float auxiliaryPowerCost) { @@ -46,7 +46,7 @@ public ElevatorTeleportingEventArgs(Player player, RoomIdentifier room, Elevator } /// - /// Gets the player who is controlling SCP-079. + /// Gets the player who is controlling SCP-079. /// public Player Player { get; } @@ -54,23 +54,23 @@ public ElevatorTeleportingEventArgs(Player player, RoomIdentifier room, Elevator public Scp079Role Scp079 { get; } /// - /// Gets or sets the amount of auxiliary power required to teleport to an elevator camera. + /// Gets or sets the amount of auxiliary power required to teleport to an elevator camera. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets SCP-079 is in. + /// Gets SCP-079 is in. /// public Room Room { get; } /// - /// Gets the SCP-079 wants to move. + /// Gets the SCP-079 wants to move. /// public Lift Lift { get; } /// - /// Gets or sets a value indicating whether or not SCP-079 can teleport. - /// Defaults to a describing whether or not SCP-079 has enough auxiliary power to teleport. + /// Gets or sets a value indicating whether or not SCP-079 can teleport. + /// Defaults to a describing whether or not SCP-079 has enough auxiliary power to teleport. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/GainingExperienceEventArgs.cs b/Exiled.Events/EventArgs/Scp079/GainingExperienceEventArgs.cs index fc7407d71a..dfeae7760e 100644 --- a/Exiled.Events/EventArgs/Scp079/GainingExperienceEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/GainingExperienceEventArgs.cs @@ -15,27 +15,27 @@ namespace Exiled.Events.EventArgs.Scp079 using Scp079Role = API.Features.Roles.Scp079Role; /// - /// Contains all information before SCP-079 gains experience. + /// Contains all information before SCP-079 gains experience. /// public class GainingExperienceEventArgs : IScp079Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public GainingExperienceEventArgs(Player player, Scp079HudTranslation gainType, int amount, RoleTypeId roleType, bool isAllowed = true) { @@ -48,28 +48,28 @@ public GainingExperienceEventArgs(Player player, Scp079HudTranslation gainType, } /// - /// Gets or sets the role that was used to gain experience. - /// The RoleType will be when it's not an assisted experience. + /// Gets or sets the role that was used to gain experience. + /// The RoleType will be when it's not an assisted experience. /// public RoleTypeId RoleType { get; set; } /// - /// Gets or sets the experience gain type. + /// Gets or sets the experience gain type. /// public Scp079HudTranslation GainType { get; set; } /// - /// Gets or sets the amount of experience to be gained. + /// Gets or sets the amount of experience to be gained. /// public int Amount { get; set; } /// - /// Gets or sets a value indicating whether or not the experience is successfully granted. + /// Gets or sets a value indicating whether or not the experience is successfully granted. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp079/GainingLevelEventArgs.cs b/Exiled.Events/EventArgs/Scp079/GainingLevelEventArgs.cs index 03e5458dc0..8548052b87 100644 --- a/Exiled.Events/EventArgs/Scp079/GainingLevelEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/GainingLevelEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Scp079 using Interfaces; /// - /// Contains all information before SCP-079 gains a level. + /// Contains all information before SCP-079 gains a level. /// public class GainingLevelEventArgs : IScp079Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public GainingLevelEventArgs(Player player, int newLevel, bool isAllowed = true) { @@ -37,17 +37,17 @@ public GainingLevelEventArgs(Player player, int newLevel, bool isAllowed = true) } /// - /// Gets or sets SCP-079's new level. + /// Gets or sets SCP-079's new level. /// public int NewLevel { get; set; } /// - /// Gets or sets a value indicating whether or not the level is successfully granted. + /// Gets or sets a value indicating whether or not the level is successfully granted. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp079/InteractingTeslaEventArgs.cs b/Exiled.Events/EventArgs/Scp079/InteractingTeslaEventArgs.cs index 588f4cb0b8..a22f2d04ab 100644 --- a/Exiled.Events/EventArgs/Scp079/InteractingTeslaEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/InteractingTeslaEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Scp079 using TeslaGate = TeslaGate; /// - /// Contains all information before SCP-079 triggers a tesla gate. + /// Contains all information before SCP-079 triggers a tesla gate. /// public class InteractingTeslaEventArgs : IScp079Event, ITeslaEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public InteractingTeslaEventArgs(Player player, TeslaGate teslaGate, float auxiliaryPowerCost) { @@ -40,7 +40,7 @@ public InteractingTeslaEventArgs(Player player, TeslaGate teslaGate, float auxil } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -48,17 +48,17 @@ public InteractingTeslaEventArgs(Player player, TeslaGate teslaGate, float auxil public Scp079Role Scp079 { get; } /// - /// Gets the that SCP-079 is triggering. + /// Gets the that SCP-079 is triggering. /// public API.Features.TeslaGate Tesla { get; } /// - /// Gets or sets the amount of auxiliary power required to interact with a tesla gate through SCP-079. + /// Gets or sets the amount of auxiliary power required to interact with a tesla gate through SCP-079. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can interact with the tesla gate. + /// Gets or sets a value indicating whether or not SCP-079 can interact with the tesla gate. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/LockingDownEventArgs.cs b/Exiled.Events/EventArgs/Scp079/LockingDownEventArgs.cs index 3f1bd09e4f..151b3fd46e 100644 --- a/Exiled.Events/EventArgs/Scp079/LockingDownEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/LockingDownEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Scp079 using MapGeneration; /// - /// Contains all information before SCP-079 lockdowns a room. + /// Contains all information before SCP-079 lockdowns a room. /// public class LockingDownEventArgs : IScp079Event, IRoomEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public LockingDownEventArgs(Player player, RoomIdentifier roomIdentifier, float auxiliaryPowerCost) { @@ -40,7 +40,7 @@ public LockingDownEventArgs(Player player, RoomIdentifier roomIdentifier, float } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -48,17 +48,17 @@ public LockingDownEventArgs(Player player, RoomIdentifier roomIdentifier, float public Scp079Role Scp079 { get; } /// - /// Gets the of the room that will be locked down. + /// Gets the of the room that will be locked down. /// public Room Room { get; } /// - /// Gets or sets the amount of auxiliary power required to lockdown a room. + /// Gets or sets the amount of auxiliary power required to lockdown a room. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can lockdown a room. + /// Gets or sets a value indicating whether or not SCP-079 can lockdown a room. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/PingingEventArgs.cs b/Exiled.Events/EventArgs/Scp079/PingingEventArgs.cs index 4ea0b75cc9..50b4b39357 100644 --- a/Exiled.Events/EventArgs/Scp079/PingingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/PingingEventArgs.cs @@ -18,30 +18,30 @@ namespace Exiled.Events.EventArgs.Scp079 using UnityEngine; /// - /// Contains all information before SCP-079 pings a location. + /// Contains all information before SCP-079 pings a location. /// public class PingingEventArgs : IScp079Event, IRoomEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public PingingEventArgs(ReferenceHub hub, RelativePosition position, int powerCost, byte proccesorindex, Vector3 syncNormal, bool isAllowed = true) { @@ -61,22 +61,22 @@ public PingingEventArgs(ReferenceHub hub, RelativePosition position, int powerCo public Vector3 SyncNormal { get; } /// - /// Gets or sets a value indicating whether or not the event is allowed to continue. + /// Gets or sets a value indicating whether or not the event is allowed to continue. /// public bool IsAllowed { get; set; } /// - /// Gets or sets the amount of auxiliary power required for SCP-079 to ping. + /// Gets or sets the amount of auxiliary power required for SCP-079 to ping. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets a value indicating the type of ping. + /// Gets or sets a value indicating the type of ping. /// public PingType Type { get; set; } /// - /// Gets or sets a value indicating the position of the ping. + /// Gets or sets a value indicating the position of the ping. /// public Vector3 Position { get; set; } @@ -86,7 +86,7 @@ public PingingEventArgs(ReferenceHub hub, RelativePosition position, int powerCo public Room Room { get; } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp079/RecontainedEventArgs.cs b/Exiled.Events/EventArgs/Scp079/RecontainedEventArgs.cs index 6d88fc0f6c..84a2e93ade 100644 --- a/Exiled.Events/EventArgs/Scp079/RecontainedEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/RecontainedEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Scp079 using Interfaces; /// - /// Contains information after SCP-079 gets recontained. + /// Contains information after SCP-079 gets recontained. /// public class RecontainedEventArgs : IScp079Event { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public RecontainedEventArgs(Player player) { @@ -29,7 +29,7 @@ public RecontainedEventArgs(Player player) } /// - /// Gets the player that previously controlled SCP-079. + /// Gets the player that previously controlled SCP-079. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp079/RoomBlackoutEventArgs.cs b/Exiled.Events/EventArgs/Scp079/RoomBlackoutEventArgs.cs index 51e1046391..f1f6c85d55 100644 --- a/Exiled.Events/EventArgs/Scp079/RoomBlackoutEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/RoomBlackoutEventArgs.cs @@ -14,30 +14,30 @@ namespace Exiled.Events.EventArgs.Scp079 using MapGeneration; /// - /// Contains all information before SCP-079 turns off the lights in a room. + /// Contains all information before SCP-079 turns off the lights in a room. /// public class RoomBlackoutEventArgs : IScp079Event, IRoomEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public RoomBlackoutEventArgs(ReferenceHub player, RoomIdentifier roomIdentifier, float auxiliaryPowerCost, float blackoutduration, float cooldown, bool isAllowed) { @@ -51,7 +51,7 @@ public RoomBlackoutEventArgs(ReferenceHub player, RoomIdentifier roomIdentifier, } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -59,27 +59,27 @@ public RoomBlackoutEventArgs(ReferenceHub player, RoomIdentifier roomIdentifier, public API.Features.Roles.Scp079Role Scp079 { get; } /// - /// Gets the room that will be locked down. + /// Gets the room that will be locked down. /// public Room Room { get; } /// - /// Gets or sets the duration of the blackout. + /// Gets or sets the duration of the blackout. /// public float BlackoutDuration { get; set; } /// - /// Gets or sets the amount of auxiliary power required to black out the room. + /// Gets or sets the amount of auxiliary power required to black out the room. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets the blackout cooldown duration. + /// Gets or sets the blackout cooldown duration. /// public double Cooldown { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can black out the room. + /// Gets or sets a value indicating whether or not SCP-079 can black out the room. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/StartingSpeakerEventArgs.cs b/Exiled.Events/EventArgs/Scp079/StartingSpeakerEventArgs.cs index 8c2430a59d..b671e4da1c 100644 --- a/Exiled.Events/EventArgs/Scp079/StartingSpeakerEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/StartingSpeakerEventArgs.cs @@ -12,24 +12,24 @@ namespace Exiled.Events.EventArgs.Scp079 using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before SCP-079 uses a speaker. + /// Contains all information before SCP-079 uses a speaker. /// public class StartingSpeakerEventArgs : IScp079Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public StartingSpeakerEventArgs(Player player, Room room, float auxiliaryPowerCost, bool isAllowed = true) { @@ -41,7 +41,7 @@ public StartingSpeakerEventArgs(Player player, Room room, float auxiliaryPowerCo } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -49,17 +49,17 @@ public StartingSpeakerEventArgs(Player player, Room room, float auxiliaryPowerCo public Scp079Role Scp079 { get; } /// - /// Gets the room that the speaker is located in. + /// Gets the room that the speaker is located in. /// public Room Room { get; } /// - /// Gets or sets the amount of auxiliary power required to use a speaker through SCP-079. + /// Gets or sets the amount of auxiliary power required to use a speaker through SCP-079. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can use the speaker. + /// Gets or sets a value indicating whether or not SCP-079 can use the speaker. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/StoppingSpeakerEventArgs.cs b/Exiled.Events/EventArgs/Scp079/StoppingSpeakerEventArgs.cs index c52fcde3a8..2c69fbc161 100644 --- a/Exiled.Events/EventArgs/Scp079/StoppingSpeakerEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/StoppingSpeakerEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Scp079 using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before SCP-079 finishes using a speaker. + /// Contains all information before SCP-079 finishes using a speaker. /// public class StoppingSpeakerEventArgs : IScp079Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public StoppingSpeakerEventArgs(Player player, Room room, bool isAllowed = true) { @@ -37,7 +37,7 @@ public StoppingSpeakerEventArgs(Player player, Room room, bool isAllowed = true) } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } @@ -45,12 +45,12 @@ public StoppingSpeakerEventArgs(Player player, Room room, bool isAllowed = true) public Scp079Role Scp079 { get; } /// - /// Gets the room that the speaker is located in. + /// Gets the room that the speaker is located in. /// public Room Room { get; } /// - /// Gets or sets a value indicating whether or not SCP-079 can stop using the speaker. + /// Gets or sets a value indicating whether or not SCP-079 can stop using the speaker. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/TriggeringDoorEventArgs.cs b/Exiled.Events/EventArgs/Scp079/TriggeringDoorEventArgs.cs index 0ca724effb..83d9d48496 100644 --- a/Exiled.Events/EventArgs/Scp079/TriggeringDoorEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/TriggeringDoorEventArgs.cs @@ -16,21 +16,21 @@ namespace Exiled.Events.EventArgs.Scp079 using Player; /// - /// Contains all information before SCP-079 interacts with a door. + /// Contains all information before SCP-079 interacts with a door. /// public class TriggeringDoorEventArgs : IScp079Event, IDoorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TriggeringDoorEventArgs(Player player, DoorVariant door, float auxiliaryPowerCost) { @@ -41,17 +41,17 @@ public TriggeringDoorEventArgs(Player player, DoorVariant door, float auxiliaryP } /// - /// Gets or sets a value indicating whether or not the player can interact with the door. + /// Gets or sets a value indicating whether or not the player can interact with the door. /// public bool IsAllowed { get; set; } = true; /// - /// Gets or sets the instance. + /// Gets or sets the instance. /// public Door Door { get; set; } /// - /// Gets the player who's interacting with the door. + /// Gets the player who's interacting with the door. /// public Player Player { get; } @@ -59,7 +59,7 @@ public TriggeringDoorEventArgs(Player player, DoorVariant door, float auxiliaryP public Scp079Role Scp079 { get; } /// - /// Gets or sets the amount of auxiliary power required to trigger a door through SCP-079. + /// Gets or sets the amount of auxiliary power required to trigger a door through SCP-079. /// public float AuxiliaryPowerCost { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp079/ZoneBlackoutEventArgs.cs b/Exiled.Events/EventArgs/Scp079/ZoneBlackoutEventArgs.cs index e6f7bf3f0d..99adf04f53 100644 --- a/Exiled.Events/EventArgs/Scp079/ZoneBlackoutEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp079/ZoneBlackoutEventArgs.cs @@ -17,30 +17,30 @@ namespace Exiled.Events.EventArgs.Scp079 using Scp079Role = API.Features.Roles.Scp079Role; /// - /// Contains all information before SCP-079 lockdowns a room. + /// Contains all information before SCP-079 lockdowns a room. /// public class ZoneBlackoutEventArgs : IScp079Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ZoneBlackoutEventArgs(ReferenceHub player, FacilityZone zone, float auxiliaryPowerCost, float blackoutduration, float cooldown, Scp079HudTranslation scp079HudTranslation) { @@ -55,27 +55,27 @@ public ZoneBlackoutEventArgs(ReferenceHub player, FacilityZone zone, float auxil } /// - /// Gets the player who's controlling SCP-079. + /// Gets the player who's controlling SCP-079. /// public Player Player { get; } /// - /// Gets the of the room that will be locked down. + /// Gets the of the room that will be locked down. /// public ZoneType Zone { get; } /// - /// Gets the send back to player. + /// Gets the send back to player. /// public Scp079HudTranslation Scp079HudTranslation { get; } /// - /// Gets or sets the amount of auxiliary power required to lockdown a room. + /// Gets or sets the amount of auxiliary power required to lockdown a room. /// public float AuxiliaryPowerCost { get; set; } /// - /// Gets or sets the time of the blackout. + /// Gets or sets the time of the blackout. /// public float BlackoutDuration { get; set; } @@ -85,7 +85,7 @@ public ZoneBlackoutEventArgs(ReferenceHub player, FacilityZone zone, float auxil public float Cooldown { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-079 can lockdown a room. + /// Gets or sets a value indicating whether or not SCP-079 can lockdown a room. /// public bool IsAllowed { get; set; } diff --git a/Exiled.Events/EventArgs/Scp096/AddingTargetEventArgs.cs b/Exiled.Events/EventArgs/Scp096/AddingTargetEventArgs.cs index bfb6c3bf8a..7a21f77f03 100644 --- a/Exiled.Events/EventArgs/Scp096/AddingTargetEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/AddingTargetEventArgs.cs @@ -14,24 +14,24 @@ namespace Exiled.Events.EventArgs.Scp096 using Scp096Role = API.Features.Roles.Scp096Role; /// - /// Contains all information before adding a target to SCP-096. + /// Contains all information before adding a target to SCP-096. /// public class AddingTargetEventArgs : IScp096Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public AddingTargetEventArgs(Player scp096, Player target, bool isLooking, bool isAllowed = true) { @@ -43,7 +43,7 @@ public AddingTargetEventArgs(Player scp096, Player target, bool isLooking, bool } /// - /// Gets the that is controlling SCP-096. + /// Gets the that is controlling SCP-096. /// public Player Player { get; } @@ -51,17 +51,17 @@ public AddingTargetEventArgs(Player scp096, Player target, bool isLooking, bool public Scp096Role Scp096 { get; } /// - /// Gets the being added as a target. + /// Gets the being added as a target. /// public Player Target { get; } /// - /// Gets a value indicating whether or not the target was being target cause of looking it's face. + /// Gets a value indicating whether or not the target was being target cause of looking it's face. /// public bool IsLooking { get; } /// - /// Gets or sets a value indicating whether or not the target is allowed to be added. + /// Gets or sets a value indicating whether or not the target is allowed to be added. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp096/CalmingDownEventArgs.cs b/Exiled.Events/EventArgs/Scp096/CalmingDownEventArgs.cs index 3d75a231a6..1a6647c685 100644 --- a/Exiled.Events/EventArgs/Scp096/CalmingDownEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/CalmingDownEventArgs.cs @@ -12,12 +12,12 @@ namespace Exiled.Events.EventArgs.Scp096 using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before SCP-096 calms down. + /// Contains all information before SCP-096 calms down. /// public class CalmingDownEventArgs : IScp096Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's controlling SCP-096. /// @@ -34,17 +34,17 @@ public CalmingDownEventArgs(Player player, bool shouldClearEnragedTimeLeft, bool public Scp096Role Scp096 { get; } /// - /// Gets the player who's controlling SCP-096. + /// Gets the player who's controlling SCP-096. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether SCP-096 enrage time left should be cleared or not. + /// Gets or sets a value indicating whether SCP-096 enrage time left should be cleared or not. /// public bool ShouldClearEnragedTimeLeft { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-096 can be enraged. + /// Gets or sets a value indicating whether or not SCP-096 can be enraged. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp096/ChargingEventArgs.cs b/Exiled.Events/EventArgs/Scp096/ChargingEventArgs.cs index 5d26306b22..be040740a1 100644 --- a/Exiled.Events/EventArgs/Scp096/ChargingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/ChargingEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Scp096 using Interfaces; /// - /// Contains all information before SCP-096 charges. + /// Contains all information before SCP-096 charges. /// public class ChargingEventArgs : IScp096Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ChargingEventArgs(Player player, bool isAllowed = true) { @@ -36,12 +36,12 @@ public ChargingEventArgs(Player player, bool isAllowed = true) public Scp096Role Scp096 { get; } /// - /// Gets the player who is controlling SCP-096. + /// Gets the player who is controlling SCP-096. /// public Player Player { get; } /// - /// Gets or sets a value indicating whether or not SCP-096 can charge. + /// Gets or sets a value indicating whether or not SCP-096 can charge. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp096/EnragingEventArgs.cs b/Exiled.Events/EventArgs/Scp096/EnragingEventArgs.cs index 773140c6f1..001a67cecd 100644 --- a/Exiled.Events/EventArgs/Scp096/EnragingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/EnragingEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Scp096 using Interfaces; /// - /// Contains all information before SCP-096 gets enraged. + /// Contains all information before SCP-096 gets enraged. /// public class EnragingEventArgs : IScp096Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EnragingEventArgs(Player player, float initialDuration, bool isAllowed = true) { @@ -40,17 +40,17 @@ public EnragingEventArgs(Player player, float initialDuration, bool isAllowed = public Scp096Role Scp096 { get; } /// - /// Gets the player who's controlling SCP-096. + /// Gets the player who's controlling SCP-096. /// public Player Player { get; } /// - /// Gets or sets the SCP-096 rage initial duration. + /// Gets or sets the SCP-096 rage initial duration. /// public float InitialDuration { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-096 can be enraged. + /// Gets or sets a value indicating whether or not SCP-096 can be enraged. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp096/StartPryingGateEventArgs.cs b/Exiled.Events/EventArgs/Scp096/StartPryingGateEventArgs.cs index 87243f928d..f40e1e8749 100644 --- a/Exiled.Events/EventArgs/Scp096/StartPryingGateEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/StartPryingGateEventArgs.cs @@ -16,21 +16,21 @@ namespace Exiled.Events.EventArgs.Scp096 using Scp096Role = API.Features.Roles.Scp096Role; /// - /// Contains all information before SCP-096 begins prying a gate open. + /// Contains all information before SCP-096 begins prying a gate open. /// public class StartPryingGateEventArgs : IScp096Event, IDeniableEvent, IDoorEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public StartPryingGateEventArgs(Player player, PryableDoor gate, bool isAllowed = true) { @@ -44,22 +44,22 @@ public StartPryingGateEventArgs(Player player, PryableDoor gate, bool isAllowed public Scp096Role Scp096 { get; } /// - /// Gets or Sets a value indicating whether or not the gate can be pried open by SCP-096. + /// Gets or Sets a value indicating whether or not the gate can be pried open by SCP-096. /// public bool IsAllowed { get; set; } /// - /// Gets the to be pried open. + /// Gets the to be pried open. /// public Door Door => Gate; /// - /// Gets the to be pried open. + /// Gets the to be pried open. /// public Gate Gate { get; } /// - /// Gets the player that is controlling SCP-096. + /// Gets the player that is controlling SCP-096. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp096/TryingNotToCryEventArgs.cs b/Exiled.Events/EventArgs/Scp096/TryingNotToCryEventArgs.cs index 2dae2e8c62..693bbb3776 100644 --- a/Exiled.Events/EventArgs/Scp096/TryingNotToCryEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp096/TryingNotToCryEventArgs.cs @@ -15,18 +15,18 @@ namespace Exiled.Events.EventArgs.Scp096 using Scp096Role = API.Features.Roles.Scp096Role; /// - /// Contains all information before SCP-096 tries not to cry. + /// Contains all information before SCP-096 tries not to cry. /// public class TryingNotToCryEventArgs : IScp096Event, IDoorEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public TryingNotToCryEventArgs(Player player, bool isAllowed = true) { @@ -42,23 +42,23 @@ public TryingNotToCryEventArgs(Player player, bool isAllowed = true) public Scp096Role Scp096 { get; } /// - /// Gets the player who is controlling SCP-096. + /// Gets the player who is controlling SCP-096. /// public Player Player { get; } /// - /// Gets the to be cried on. - /// the value can be null + /// Gets the to be cried on. + /// the value can be null /// public Door Door { get; } /// - /// Gets the to be cried on. + /// Gets the to be cried on. /// public GameObject GameObject { get; } /// - /// Gets or sets a value indicating whether or not SCP-096 can try not to cry. + /// Gets or sets a value indicating whether or not SCP-096 can try not to cry. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp106/ExitStalkingEventArgs.cs b/Exiled.Events/EventArgs/Scp106/ExitStalkingEventArgs.cs index 9e04b8656e..c6b44dbf71 100644 --- a/Exiled.Events/EventArgs/Scp106/ExitStalkingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp106/ExitStalkingEventArgs.cs @@ -16,7 +16,7 @@ namespace Exiled.Events.EventArgs.Scp106 using Scp106Role = API.Features.Roles.Scp106Role; /// - /// Contains all information before SCP-106 use the stalk ability. + /// Contains all information before SCP-106 use the stalk ability. /// public class ExitStalkingEventArgs : IScp106Event, IDeniableEvent { diff --git a/Exiled.Events/EventArgs/Scp106/StalkingEventArgs.cs b/Exiled.Events/EventArgs/Scp106/StalkingEventArgs.cs index 2f0271cdbf..16c94d2350 100644 --- a/Exiled.Events/EventArgs/Scp106/StalkingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp106/StalkingEventArgs.cs @@ -16,7 +16,7 @@ namespace Exiled.Events.EventArgs.Scp106 using Scp106Role = API.Features.Roles.Scp106Role; /// - /// Contains all information before SCP-106 uses the stalk ability. + /// Contains all information before SCP-106 uses the stalk ability. /// public class StalkingEventArgs : IScp106Event, IDeniableEvent { diff --git a/Exiled.Events/EventArgs/Scp106/TeleportingEventArgs.cs b/Exiled.Events/EventArgs/Scp106/TeleportingEventArgs.cs index c021c704a8..ffc5a10def 100644 --- a/Exiled.Events/EventArgs/Scp106/TeleportingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp106/TeleportingEventArgs.cs @@ -14,21 +14,21 @@ namespace Exiled.Events.EventArgs.Scp106 using UnityEngine; /// - /// Contains all information before SCP-106 teleports using hunter atlas. + /// Contains all information before SCP-106 teleports using hunter atlas. /// public class TeleportingEventArgs : IScp106Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TeleportingEventArgs(Player player, Vector3 position, bool isAllowed = true) { @@ -39,17 +39,17 @@ public TeleportingEventArgs(Player player, Vector3 position, bool isAllowed = tr } /// - /// Gets or sets the teleporting position. + /// Gets or sets the teleporting position. /// public Vector3 Position { get; set; } /// - /// Gets or sets a value indicating whether or not SCP-106 can teleport using a portal. + /// Gets or sets a value indicating whether or not SCP-106 can teleport using a portal. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's controlling SCP-106. + /// Gets the player who's controlling SCP-106. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp173/BlinkingEventArgs.cs b/Exiled.Events/EventArgs/Scp173/BlinkingEventArgs.cs index 5cae027868..5ef166038d 100644 --- a/Exiled.Events/EventArgs/Scp173/BlinkingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp173/BlinkingEventArgs.cs @@ -20,21 +20,21 @@ namespace Exiled.Events.EventArgs.Scp173 using Scp173Role = API.Features.Roles.Scp173Role; /// - /// Contains all information before a players blink near SCP-173. + /// Contains all information before a players blink near SCP-173. /// public class BlinkingEventArgs : IScp173Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public BlinkingEventArgs(Player player, List targets, Vector3 blinkPos) { @@ -46,28 +46,28 @@ public BlinkingEventArgs(Player player, List targets, Vector3 blinkPos) } /// - /// Gets or sets the location the player is blinking to. + /// Gets or sets the location the player is blinking to. /// public Vector3 BlinkPosition { get; set; } /// - /// Gets or sets how long the blink cooldown will last. + /// Gets or sets how long the blink cooldown will last. /// public float BlinkCooldown { get; set; } /// - /// Gets a of players who have triggered SCP-173. + /// Gets a of players who have triggered SCP-173. /// // TODO: convert to ReadOnlyCollection public List Targets { get; } /// - /// Gets or sets a value indicating whether or not the player is allowed to blink. + /// Gets or sets a value indicating whether or not the player is allowed to blink. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player who controlling SCP-173. + /// Gets the player who controlling SCP-173. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp173/BlinkingRequestEventArgs.cs b/Exiled.Events/EventArgs/Scp173/BlinkingRequestEventArgs.cs index dcb3e8a473..3f9df17171 100644 --- a/Exiled.Events/EventArgs/Scp173/BlinkingRequestEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp173/BlinkingRequestEventArgs.cs @@ -20,18 +20,18 @@ namespace Exiled.Events.EventArgs.Scp173 using Scp173Role = API.Features.Roles.Scp173Role; /// - /// Contains all information before server handle SCP-173 blink network message. + /// Contains all information before server handle SCP-173 blink network message. /// public class BlinkingRequestEventArgs : IScp173Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public BlinkingRequestEventArgs(Player player, HashSet targets) { @@ -41,17 +41,17 @@ public BlinkingRequestEventArgs(Player player, HashSet targets) } /// - /// Gets a of players who have triggered SCP-173. + /// Gets a of players who have triggered SCP-173. /// public IReadOnlyCollection Targets { get; } /// - /// Gets or sets a value indicating whether or not the player is allowed to blink. + /// Gets or sets a value indicating whether or not the player is allowed to blink. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player who controlling SCP-173. + /// Gets the player who controlling SCP-173. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp173/PlacingTantrumEventArgs.cs b/Exiled.Events/EventArgs/Scp173/PlacingTantrumEventArgs.cs index e415ac979b..d632310483 100644 --- a/Exiled.Events/EventArgs/Scp173/PlacingTantrumEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp173/PlacingTantrumEventArgs.cs @@ -16,24 +16,24 @@ namespace Exiled.Events.EventArgs.Scp173 using Scp173Role = API.Features.Roles.Scp173Role; /// - /// Contains all information before the tantrum is placed. + /// Contains all information before the tantrum is placed. /// public class PlacingTantrumEventArgs : IScp173Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public PlacingTantrumEventArgs(Player player, TantrumEnvironmentalHazard tantrumHazard, AbilityCooldown cooldown, bool isAllowed = true) { @@ -45,27 +45,27 @@ public PlacingTantrumEventArgs(Player player, TantrumEnvironmentalHazard tantrum } /// - /// Gets the player's instance. + /// Gets the player's instance. /// public Scp173Role Scp173 { get; } /// - /// Gets the . + /// Gets the . /// public TantrumEnvironmentalHazard TantrumHazard { get; } /// - /// Gets the tantrum . + /// Gets the tantrum . /// public AbilityCooldown Cooldown { get; } /// - /// Gets or sets a value indicating whether or not the tantrum can be placed. + /// Gets or sets a value indicating whether or not the tantrum can be placed. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's placing the tantrum. + /// Gets the player who's placing the tantrum. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp173/UsingBreakneckSpeedsEventArgs.cs b/Exiled.Events/EventArgs/Scp173/UsingBreakneckSpeedsEventArgs.cs index 9b712ae4f6..d8cad06ec5 100644 --- a/Exiled.Events/EventArgs/Scp173/UsingBreakneckSpeedsEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp173/UsingBreakneckSpeedsEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Scp173 using Interfaces; /// - /// Contains all information before an Scp-173 uses breakneck speeds. + /// Contains all information before an Scp-173 uses breakneck speeds. /// public class UsingBreakneckSpeedsEventArgs : IScp173Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public UsingBreakneckSpeedsEventArgs(Player player, bool isAllowed = true) { @@ -33,12 +33,12 @@ public UsingBreakneckSpeedsEventArgs(Player player, bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not the player can use breakneck speeds. + /// Gets or sets a value indicating whether or not the player can use breakneck speeds. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using breakneck speeds. + /// Gets the player who's using breakneck speeds. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp244/DamagingScp244EventArgs.cs b/Exiled.Events/EventArgs/Scp244/DamagingScp244EventArgs.cs index c6c1a6a87c..88d67262d8 100644 --- a/Exiled.Events/EventArgs/Scp244/DamagingScp244EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp244/DamagingScp244EventArgs.cs @@ -20,19 +20,19 @@ namespace Exiled.Events.EventArgs.Scp244 using DamageHandlerBase = PlayerStatsSystem.DamageHandlerBase; /// - /// Contains all information before damage is dealt to a . + /// Contains all information before damage is dealt to a . /// public class DamagingScp244EventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// The damage being dealt. /// - /// + /// /// public DamagingScp244EventArgs(Scp244DeployablePickup scp244, float damage, DamageHandlerBase handler) { @@ -45,17 +45,17 @@ public DamagingScp244EventArgs(Scp244DeployablePickup scp244, float damage, Dama } /// - /// Gets the object that is damaged. + /// Gets the object that is damaged. /// public Scp244Pickup Pickup { get; } /// - /// Gets the Damage handler for this event. + /// Gets the Damage handler for this event. /// public DamageHandler Handler { get; } /// - /// Gets or sets a value indicating whether the can be broken. + /// Gets or sets a value indicating whether the can be broken. /// public bool IsAllowed { get; set; } } diff --git a/Exiled.Events/EventArgs/Scp244/OpeningScp244EventArgs.cs b/Exiled.Events/EventArgs/Scp244/OpeningScp244EventArgs.cs index aecdaaa96e..45e354b0cf 100644 --- a/Exiled.Events/EventArgs/Scp244/OpeningScp244EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp244/OpeningScp244EventArgs.cs @@ -13,15 +13,15 @@ namespace Exiled.Events.EventArgs.Scp244 using InventorySystem.Items.Usables.Scp244; /// - /// Contains all information before a player opens SCP-244. + /// Contains all information before a player opens SCP-244. /// public class OpeningScp244EventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public OpeningScp244EventArgs(Scp244DeployablePickup pickup) { @@ -34,7 +34,7 @@ public OpeningScp244EventArgs(Scp244DeployablePickup pickup) public Scp244Pickup Pickup { get; } /// - /// Gets or sets a value indicating whether or not the player can open SCP-244. + /// Gets or sets a value indicating whether or not the player can open SCP-244. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Scp244/UsingScp244EventArgs.cs b/Exiled.Events/EventArgs/Scp244/UsingScp244EventArgs.cs index 9277019690..c3077777c6 100644 --- a/Exiled.Events/EventArgs/Scp244/UsingScp244EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp244/UsingScp244EventArgs.cs @@ -15,21 +15,21 @@ namespace Exiled.Events.EventArgs.Scp244 using InventorySystem.Items.Usables.Scp244; /// - /// Contains all information before SCP-244 is used. + /// Contains all information before SCP-244 is used. /// public class UsingScp244EventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UsingScp244EventArgs(Scp244Item scp244, Player player, bool isAllowed = true) { @@ -39,17 +39,17 @@ public UsingScp244EventArgs(Scp244Item scp244, Player player, bool isAllowed = t } /// - /// Gets the Scp244 instance. + /// Gets the Scp244 instance. /// public Scp244 Scp244 { get; } /// - /// Gets or sets a value indicating whether the SCP-244 can be used. + /// Gets or sets a value indicating whether the SCP-244 can be used. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's using the SCP-244. + /// Gets the player who's using the SCP-244. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp3114/DisguisedEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/DisguisedEventArgs.cs index 2e9a10487a..b091665270 100644 --- a/Exiled.Events/EventArgs/Scp3114/DisguisedEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp3114/DisguisedEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Scp3114 using PlayerRoles.Ragdolls; /// - /// Contains all information before SCP-3114 changes its target focus. + /// Contains all information after SCP-3114 disguised. /// public class DisguisedEventArgs : IScp3114Event, IRagdollEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public DisguisedEventArgs(ReferenceHub player, DynamicRagdoll ragdoll) { diff --git a/Exiled.Events/EventArgs/Scp3114/DisguisingEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/DisguisingEventArgs.cs index 198d9d8c3c..8ab68e084a 100644 --- a/Exiled.Events/EventArgs/Scp3114/DisguisingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp3114/DisguisingEventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Scp3114 using PlayerRoles.Ragdolls; /// - /// Contains all information before SCP-3114 it's diguised to a new role. + /// Contains all information before SCP-3114 disguises to a new role. /// public class DisguisingEventArgs : IScp3114Event, IDeniableEvent, IRagdollEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public DisguisingEventArgs(ReferenceHub player, DynamicRagdoll ragdoll) { diff --git a/Exiled.Events/EventArgs/Scp3114/RevealedEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/RevealedEventArgs.cs index 8f88be803f..8dac197a2a 100644 --- a/Exiled.Events/EventArgs/Scp3114/RevealedEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp3114/RevealedEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Scp3114 using Interfaces; /// - /// Contains all information before SCP-3114 changes its target focus. + /// Contains all information after SCP-3114 reveals. /// public class RevealedEventArgs : IScp3114Event { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public RevealedEventArgs(ReferenceHub player) { diff --git a/Exiled.Events/EventArgs/Scp3114/RevealingEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/RevealingEventArgs.cs index f9efca5b5e..7cbb1dfe04 100644 --- a/Exiled.Events/EventArgs/Scp3114/RevealingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp3114/RevealingEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Scp3114 using Interfaces; /// - /// Contains all information before SCP-3114 changes its target focus. + /// Contains all information before SCP-3114 reveals. /// public class RevealingEventArgs : IScp3114Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public RevealingEventArgs(ReferenceHub player, bool isAllowed = true) { diff --git a/Exiled.Events/EventArgs/Scp3114/TryUseBodyEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/TryUseBodyEventArgs.cs index 7cd8b99bec..4a20916e64 100644 --- a/Exiled.Events/EventArgs/Scp3114/TryUseBodyEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp3114/TryUseBodyEventArgs.cs @@ -13,21 +13,21 @@ namespace Exiled.Events.EventArgs.Scp3114 using PlayerRoles.Ragdolls; /// - /// Contains all information before SCP-3114 changes its target focus. + /// Contains all information before SCP-3114 tries to use a body. /// public class TryUseBodyEventArgs : IScp3114Event, IDeniableEvent, IRagdollEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public TryUseBodyEventArgs(ReferenceHub player, BasicRagdoll ragdoll, bool isAllowed = true) { diff --git a/Exiled.Events/EventArgs/Scp3114/VoiceLinesEventArgs.cs b/Exiled.Events/EventArgs/Scp3114/VoiceLinesEventArgs.cs new file mode 100644 index 0000000000..56b96a30b8 --- /dev/null +++ b/Exiled.Events/EventArgs/Scp3114/VoiceLinesEventArgs.cs @@ -0,0 +1,55 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.EventArgs.Scp3114 +{ + using API.Features; + using Exiled.API.Features.Roles; + using Interfaces; + + using static PlayerRoles.PlayableScps.Scp3114.Scp3114VoiceLines; + + /// + /// Contains all information prior to sending voiceline SCP-3114. + /// + public class VoiceLinesEventArgs : IScp3114Event, IDeniableEvent + { + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + public VoiceLinesEventArgs(ReferenceHub player, VoiceLinesDefinition voiceLine, bool isAllowed = true) + { + Player = Player.Get(player); + Scp3114 = Player.Role.As(); + VoiceLine = voiceLine; + IsAllowed = isAllowed; + } + + /// + public Player Player { get; } + + /// + public Scp3114Role Scp3114 { get; } + + /// + /// Gets or sets the . + /// + public VoiceLinesDefinition VoiceLine { get; set; } + + /// + public bool IsAllowed { get; set; } + } +} \ No newline at end of file diff --git a/Exiled.Events/EventArgs/Scp330/DroppingScp330EventArgs.cs b/Exiled.Events/EventArgs/Scp330/DroppingScp330EventArgs.cs index fef8c4fe8d..5aabbd2264 100644 --- a/Exiled.Events/EventArgs/Scp330/DroppingScp330EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp330/DroppingScp330EventArgs.cs @@ -15,21 +15,21 @@ namespace Exiled.Events.EventArgs.Scp330 using InventorySystem.Items.Usables.Scp330; /// - /// Contains all information before a player drops a SCP-330 candy. + /// Contains all information before a player drops a SCP-330 candy. /// public class DroppingScp330EventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public DroppingScp330EventArgs(Player player, Scp330Bag scp330, CandyKindID candy) { @@ -39,22 +39,22 @@ public DroppingScp330EventArgs(Player player, Scp330Bag scp330, CandyKindID cand } /// - /// Gets or sets a value representing the being picked up. + /// Gets or sets a value representing the being picked up. /// public Scp330 Scp330 { get; set; } /// - /// Gets or sets a value indicating whether or not the type of candy drop. + /// Gets or sets a value indicating whether or not the type of candy drop. /// public CandyKindID Candy { get; set; } /// - /// Gets or sets a value indicating whether or not the player can interact with SCP-330. + /// Gets or sets a value indicating whether or not the player can interact with SCP-330. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player who's interacting with SCP-330. + /// Gets the player who's interacting with SCP-330. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp330/EatenScp330EventArgs.cs b/Exiled.Events/EventArgs/Scp330/EatenScp330EventArgs.cs index cd1b00df5e..3fa09415bd 100644 --- a/Exiled.Events/EventArgs/Scp330/EatenScp330EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp330/EatenScp330EventArgs.cs @@ -14,12 +14,12 @@ namespace Exiled.Events.EventArgs.Scp330 using InventorySystem.Items.Usables.Scp330; /// - /// Contains all information after a player has eaten SCP-330. + /// Contains all information after a player has eaten SCP-330. /// public class EatenScp330EventArgs : IPlayerEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// . /// . @@ -30,12 +30,12 @@ public EatenScp330EventArgs(Player player, ICandy candy) } /// - /// Gets the that was eaten by the player. + /// Gets the that was eaten by the player. /// public ICandy Candy { get; } /// - /// Gets the player who has eaten SCP-330. + /// Gets the player who has eaten SCP-330. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp330/EatingScp330EventArgs.cs b/Exiled.Events/EventArgs/Scp330/EatingScp330EventArgs.cs index d31f9d498d..d24a57ad40 100644 --- a/Exiled.Events/EventArgs/Scp330/EatingScp330EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp330/EatingScp330EventArgs.cs @@ -14,12 +14,12 @@ namespace Exiled.Events.EventArgs.Scp330 using InventorySystem.Items.Usables.Scp330; /// - /// Contains all information before a player eats SCP-330. + /// Contains all information before a player eats SCP-330. /// public class EatingScp330EventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// . /// . @@ -32,17 +32,17 @@ public EatingScp330EventArgs(Player player, ICandy candy, bool isAllowed = true) } /// - /// Gets the that is being eaten by the player. + /// Gets the that is being eaten by the player. /// public ICandy Candy { get; } /// - /// Gets or sets a value indicating whether or not the player can eat SCP-330. + /// Gets or sets a value indicating whether or not the player can eat SCP-330. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's eating SCP-330. + /// Gets the player who's eating SCP-330. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp330/InteractingScp330EventArgs.cs b/Exiled.Events/EventArgs/Scp330/InteractingScp330EventArgs.cs index d1dcfff826..30cd0a1ac3 100644 --- a/Exiled.Events/EventArgs/Scp330/InteractingScp330EventArgs.cs +++ b/Exiled.Events/EventArgs/Scp330/InteractingScp330EventArgs.cs @@ -14,18 +14,18 @@ namespace Exiled.Events.EventArgs.Scp330 using InventorySystem.Items.Usables.Scp330; /// - /// Contains all information before a player interacts with SCP-330. + /// Contains all information before a player interacts with SCP-330. /// public class InteractingScp330EventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public InteractingScp330EventArgs(Player player, int usage) { @@ -37,7 +37,7 @@ public InteractingScp330EventArgs(Player player, int usage) } /// - /// Gets a value indicating how many times this player has interacted with SCP-330. + /// Gets a value indicating how many times this player has interacted with SCP-330. /// public int UsageCount { get; } @@ -47,17 +47,17 @@ public InteractingScp330EventArgs(Player player, int usage) public CandyKindID Candy { get; set; } /// - /// Gets or sets a value indicating whether the player's hands should get severed. + /// Gets or sets a value indicating whether the player's hands should get severed. /// public bool ShouldSever { get; set; } /// - /// Gets or sets a value indicating whether the player is allowed to interact with SCP-330. + /// Gets or sets a value indicating whether the player is allowed to interact with SCP-330. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the triggering the event. + /// Gets the triggering the event. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp914/ActivatingEventArgs.cs b/Exiled.Events/EventArgs/Scp914/ActivatingEventArgs.cs index fb321888cc..6d229acf71 100644 --- a/Exiled.Events/EventArgs/Scp914/ActivatingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/ActivatingEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Scp914 using Interfaces; /// - /// Contains all information before a player activates SCP-914. + /// Contains all information before a player activates SCP-914. /// public class ActivatingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public ActivatingEventArgs(Player player, bool isAllowed = true) { @@ -32,12 +32,12 @@ public ActivatingEventArgs(Player player, bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not SCP-914 can be activated. + /// Gets or sets a value indicating whether or not SCP-914 can be activated. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's activating SCP-914. + /// Gets the player who's activating SCP-914. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp914/ChangingKnobSettingEventArgs.cs b/Exiled.Events/EventArgs/Scp914/ChangingKnobSettingEventArgs.cs index 4229230879..ae9a250425 100644 --- a/Exiled.Events/EventArgs/Scp914/ChangingKnobSettingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/ChangingKnobSettingEventArgs.cs @@ -14,23 +14,23 @@ namespace Exiled.Events.EventArgs.Scp914 using Interfaces; /// - /// Contains all information before a player changes the SCP-914 knob setting. + /// Contains all information before a player changes the SCP-914 knob setting. /// public class ChangingKnobSettingEventArgs : IPlayerEvent, IDeniableEvent { private Scp914KnobSetting knobSetting; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingKnobSettingEventArgs(Player player, Scp914KnobSetting knobSetting, bool isAllowed = true) { @@ -40,7 +40,7 @@ public ChangingKnobSettingEventArgs(Player player, Scp914KnobSetting knobSetting } /// - /// Gets or sets the SCP-914 knob setting. + /// Gets or sets the SCP-914 knob setting. /// public Scp914KnobSetting KnobSetting { @@ -49,12 +49,12 @@ public Scp914KnobSetting KnobSetting } /// - /// Gets or sets a value indicating whether or not SCP-914's knob setting can be changed. + /// Gets or sets a value indicating whether or not SCP-914's knob setting can be changed. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's changing the SCP-914 knob setting. + /// Gets the player who's changing the SCP-914 knob setting. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs b/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs index 5fb1cec315..8dd471a7fd 100644 --- a/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/UpgradingInventoryItemEventArgs.cs @@ -16,24 +16,24 @@ namespace Exiled.Events.EventArgs.Scp914 using InventorySystem.Items; /// - /// Contains all information before SCP-914 upgrades an item. + /// Contains all information before SCP-914 upgrades an item. /// public class UpgradingInventoryItemEventArgs : IPlayerEvent, IItemEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UpgradingInventoryItemEventArgs(Player player, ItemBase item, Scp914KnobSetting knobSetting, bool isAllowed = true) { @@ -44,28 +44,28 @@ public UpgradingInventoryItemEventArgs(Player player, ItemBase item, Scp914KnobS } /// - /// Gets the instance. + /// Gets the instance. /// [Obsolete("Use Scp914::Scp914Controller instead.")] public Scp914Controller Scp914 => API.Features.Scp914.Scp914Controller; /// - /// Gets or sets SCP-914 working knob setting. + /// Gets or sets SCP-914 working knob setting. /// public Scp914KnobSetting KnobSetting { get; set; } /// - /// Gets or sets a value indicating whether or not the upgrade is successful. + /// Gets or sets a value indicating whether or not the upgrade is successful. /// public bool IsAllowed { get; set; } /// - /// Gets a list of items to be upgraded inside SCP-914. + /// Gets a list of items to be upgraded inside SCP-914. /// public Item Item { get; } /// - /// Gets the who owns the item to be upgraded. + /// Gets the who owns the item to be upgraded. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs b/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs index 87916ed0de..22744d5885 100644 --- a/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/UpgradingPickupEventArgs.cs @@ -16,21 +16,21 @@ namespace Exiled.Events.EventArgs.Scp914 using UnityEngine; /// - /// Contains all information before SCP-914 upgrades an item. + /// Contains all information before SCP-914 upgrades an item. /// public class UpgradingPickupEventArgs : IPickupEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public UpgradingPickupEventArgs(ItemPickupBase item, Vector3 newPos, Scp914KnobSetting knobSetting) { @@ -40,28 +40,28 @@ public UpgradingPickupEventArgs(ItemPickupBase item, Vector3 newPos, Scp914KnobS } /// - /// Gets a list of items to be upgraded inside SCP-914. + /// Gets a list of items to be upgraded inside SCP-914. /// public Pickup Pickup { get; } /// - /// Gets the instance. + /// Gets the instance. /// [Obsolete("Use Scp914::Scp914Controller instead.")] public Scp914Controller Scp914 => API.Features.Scp914.Scp914Controller; /// - /// Gets or sets the position the item will be output to. + /// Gets or sets the position the item will be output to. /// public Vector3 OutputPosition { get; set; } /// - /// Gets or sets SCP-914 working knob setting. + /// Gets or sets SCP-914 working knob setting. /// public Scp914KnobSetting KnobSetting { get; set; } /// - /// Gets or sets a value indicating whether or not the upgrade is successful. + /// Gets or sets a value indicating whether or not the upgrade is successful. /// public bool IsAllowed { get; set; } = true; } diff --git a/Exiled.Events/EventArgs/Scp914/UpgradingPlayerEventArgs.cs b/Exiled.Events/EventArgs/Scp914/UpgradingPlayerEventArgs.cs index 94fd7b730c..41ef533478 100644 --- a/Exiled.Events/EventArgs/Scp914/UpgradingPlayerEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp914/UpgradingPlayerEventArgs.cs @@ -16,23 +16,23 @@ namespace Exiled.Events.EventArgs.Scp914 using UnityEngine; /// - /// Contains all information before SCP-914 upgrades a player. + /// Contains all information before SCP-914 upgrades a player. /// public class UpgradingPlayerEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The being upgraded. /// - /// + /// /// /// The being used. /// - /// + /// /// /// - /// + /// /// public UpgradingPlayerEventArgs(Player player, bool upgradeItems, bool heldOnly, Scp914KnobSetting setting, Vector3 moveVector) { @@ -44,32 +44,32 @@ public UpgradingPlayerEventArgs(Player player, bool upgradeItems, bool heldOnly, } /// - /// Gets or sets the location the player will be teleported to. + /// Gets or sets the location the player will be teleported to. /// public Vector3 OutputPosition { get; set; } /// - /// Gets or sets a value indicating whether or not items will be upgraded. + /// Gets or sets a value indicating whether or not items will be upgraded. /// public bool UpgradeItems { get; set; } /// - /// Gets or sets a value indicating whether or not only held items are upgraded. + /// Gets or sets a value indicating whether or not only held items are upgraded. /// public bool HeldOnly { get; set; } /// - /// Gets or sets the being used. + /// Gets or sets the being used. /// public Scp914KnobSetting KnobSetting { get; set; } /// - /// Gets or sets a value indicating whether or not the event can continue. + /// Gets or sets a value indicating whether or not the event can continue. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the player that is being upgraded. + /// Gets the player that is being upgraded. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Scp939/ChangingFocusEventArgs.cs b/Exiled.Events/EventArgs/Scp939/ChangingFocusEventArgs.cs index 0d7e4f3bb4..ec3c29433b 100644 --- a/Exiled.Events/EventArgs/Scp939/ChangingFocusEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/ChangingFocusEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Scp939 using Interfaces; /// - /// Contains all information before SCP-939 changes its target focus. + /// Contains all information before SCP-939 changes its target focus. /// public class ChangingFocusEventArgs : IScp939Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// The state of the focus. + /// The state of the focus. /// /// - /// + /// /// public ChangingFocusEventArgs(ReferenceHub player, bool state, bool isAllowed = true) { @@ -37,17 +37,17 @@ public ChangingFocusEventArgs(ReferenceHub player, bool state, bool isAllowed = } /// - /// Gets or sets a value indicating whether or not SCP-939 can focus. + /// Gets or sets a value indicating whether or not SCP-939 can focus. /// public bool IsAllowed { get; set; } /// - /// Gets a value indicating whether or not SCP-939 is currently focusing or un-focusing. + /// Gets a value indicating whether or not SCP-939 is currently focusing or un-focusing. /// public bool State { get; } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/LungingEventArgs.cs b/Exiled.Events/EventArgs/Scp939/LungingEventArgs.cs index a23ae25ea0..9540051400 100644 --- a/Exiled.Events/EventArgs/Scp939/LungingEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/LungingEventArgs.cs @@ -12,15 +12,15 @@ namespace Exiled.Events.EventArgs.Scp939 using Interfaces; /// - /// Contains all information before SCP-939 uses its lunge ability. + /// Contains all information before SCP-939 uses its lunge ability. /// public class LungingEventArgs : IScp939Event { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public LungingEventArgs(Player player) { @@ -29,7 +29,7 @@ public LungingEventArgs(Player player) } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/PlacingAmnesticCloudEventArgs.cs b/Exiled.Events/EventArgs/Scp939/PlacingAmnesticCloudEventArgs.cs index 34ef7041f5..e8b2c72f59 100644 --- a/Exiled.Events/EventArgs/Scp939/PlacingAmnesticCloudEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/PlacingAmnesticCloudEventArgs.cs @@ -12,27 +12,27 @@ namespace Exiled.Events.EventArgs.Scp939 using Interfaces; /// - /// Contains all information before SCP-939 uses its amnestic cloud ability. + /// Contains all information before SCP-939 uses its amnestic cloud ability. /// public class PlacingAmnesticCloudEventArgs : IScp939Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// Whether or not SCP-939 is attempting to place an amnestic cloud. + /// Whether or not SCP-939 is attempting to place an amnestic cloud. /// /// - /// Whether or not the cooldown is ready. + /// Whether or not the cooldown is ready. /// /// - /// SCP-939's amnestic cloud cooldown. + /// SCP-939's amnestic cloud cooldown. /// /// - /// + /// /// public PlacingAmnesticCloudEventArgs(Player player, bool state, bool isReady, float cooldown, bool isAllowed = true) { @@ -45,27 +45,27 @@ public PlacingAmnesticCloudEventArgs(Player player, bool state, bool isReady, fl } /// - /// Gets or sets a value indicating whether or not SCP-939 can place an amnestic cloud. + /// Gets or sets a value indicating whether or not SCP-939 can place an amnestic cloud. /// public bool IsAllowed { get; set; } /// - /// Gets a value indicating whether or not SCP-939 is ready to place its amnestic cloud. + /// Gets a value indicating whether or not SCP-939 is ready to place its amnestic cloud. /// public bool State { get; } /// - /// Gets or sets a value indicating whether or not SCP-939's amnestic cloud cooldown is ready. + /// Gets or sets a value indicating whether or not SCP-939's amnestic cloud cooldown is ready. /// public bool IsReady { get; set; } /// - /// Gets or sets a value indicating SCP-939's amnestic cloud cooldown. + /// Gets or sets a value indicating SCP-939's amnestic cloud cooldown. /// public float Cooldown { get; set; } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/PlayingSoundEventArgs.cs b/Exiled.Events/EventArgs/Scp939/PlayingSoundEventArgs.cs index b3f28a6cf2..7502be5fbf 100644 --- a/Exiled.Events/EventArgs/Scp939/PlayingSoundEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/PlayingSoundEventArgs.cs @@ -13,27 +13,27 @@ namespace Exiled.Events.EventArgs.Scp939 using PlayerRoles.PlayableScps.Scp939.Mimicry; /// - /// Contains all information before SCP-939 plays a sound effect. + /// Contains all information before SCP-939 plays a sound effect. /// public class PlayingSoundEventArgs : IScp939Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// The sound that is being played. + /// The sound that is being played. /// /// - /// Whether or not SCP-939's environmental mimicry cooldown is ready. + /// Whether or not SCP-939's environmental mimicry cooldown is ready. /// /// - /// The cooldown of the environmental mimicry. + /// The cooldown of the environmental mimicry. /// /// - /// + /// /// public PlayingSoundEventArgs(Player player, EnvMimicrySequence sound, bool isReady, float cooldown, bool isAllowed = true) { @@ -46,28 +46,28 @@ public PlayingSoundEventArgs(Player player, EnvMimicrySequence sound, bool isRea } /// - /// Gets or sets a value indicating whether or not SCP-939 can play the sound. + /// Gets or sets a value indicating whether or not SCP-939 can play the sound. /// /// This will default to if is . In this case, setting it to will override the cooldown. public bool IsAllowed { get; set; } /// - /// Gets the sound being played. + /// Gets the sound being played. /// public EnvMimicrySequence Sound { get; } /// - /// Gets a value indicating whether or not SCP-939's environmental mimicry cooldown is ready. + /// Gets a value indicating whether or not SCP-939's environmental mimicry cooldown is ready. /// public bool IsReady { get; } /// - /// Gets or sets a value indicating SCP-939's environmental mimicry cooldown. + /// Gets or sets a value indicating SCP-939's environmental mimicry cooldown. /// public float Cooldown { get; set; } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/PlayingVoiceEventArgs.cs b/Exiled.Events/EventArgs/Scp939/PlayingVoiceEventArgs.cs index cba8a9b257..5b8dfdd374 100644 --- a/Exiled.Events/EventArgs/Scp939/PlayingVoiceEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/PlayingVoiceEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Scp939 using Interfaces; /// - /// Contains all information before SCP-939 plays a stolen player's voice. + /// Contains all information before SCP-939 plays a stolen player's voice. /// public class PlayingVoiceEventArgs : IScp939Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// The player who's voice was stolen. + /// The player who's voice was stolen. /// public PlayingVoiceEventArgs(ReferenceHub player, ReferenceHub stolen) { @@ -33,17 +33,17 @@ public PlayingVoiceEventArgs(ReferenceHub player, ReferenceHub stolen) } /// - /// Gets or sets a value indicating whether or not SCP-939 can play the stolen voice. + /// Gets or sets a value indicating whether or not SCP-939 can play the stolen voice. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the players who's voice was stolen. + /// Gets the players who's voice was stolen. /// public Player Stolen { get; } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/SavingVoiceEventArgs.cs b/Exiled.Events/EventArgs/Scp939/SavingVoiceEventArgs.cs index 08f78eafa9..6f6381430e 100644 --- a/Exiled.Events/EventArgs/Scp939/SavingVoiceEventArgs.cs +++ b/Exiled.Events/EventArgs/Scp939/SavingVoiceEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Scp939 using Interfaces; /// - /// Contains all information before SCP-939 plays a stolen player's voice. + /// Contains all information before SCP-939 plays a stolen player's voice. /// public class SavingVoiceEventArgs : IScp939Event, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// The player who's voice was stolen. + /// The player who's voice was stolen. /// /// - /// + /// /// public SavingVoiceEventArgs(ReferenceHub player, ReferenceHub stolen, bool isAllowed = true) { @@ -37,17 +37,17 @@ public SavingVoiceEventArgs(ReferenceHub player, ReferenceHub stolen, bool isAll } /// - /// Gets or sets a value indicating whether or not SCP-939 can play the stolen voice. + /// Gets or sets a value indicating whether or not SCP-939 can play the stolen voice. /// public bool IsAllowed { get; set; } /// - /// Gets the players who's voice was stolen. + /// Gets the players who's voice was stolen. /// public Player Stolen { get; } /// - /// Gets the player who's controlling SCP-939. + /// Gets the player who's controlling SCP-939. /// public Player Player { get; } diff --git a/Exiled.Events/EventArgs/Scp939/ValidatingVisibilityEventArgs.cs b/Exiled.Events/EventArgs/Scp939/ValidatingVisibilityEventArgs.cs new file mode 100644 index 0000000000..3a2bd2a0ba --- /dev/null +++ b/Exiled.Events/EventArgs/Scp939/ValidatingVisibilityEventArgs.cs @@ -0,0 +1,57 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.EventArgs.Scp939 +{ + using API.Features; + using Exiled.API.Features.Roles; + using Interfaces; + + /// + /// Contains all information before SCP-939 sees the player. + /// + public class ValidatingVisibilityEventArgs : IScp939Event, IDeniableEvent + { + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// The target being shown to SCP-939. + /// + /// + /// Whether or not SCP-939 is allowed to view the player. + /// + public ValidatingVisibilityEventArgs(ReferenceHub player, ReferenceHub target, bool isAllowed) + { + Player = Player.Get(player); + Scp939 = Player.Role.As(); + Target = Player.Get(target); + IsAllowed = isAllowed; + } + + /// + /// Gets the player who's being shown to SCP-939. + /// + public Player Target { get; } + + /// + /// Gets the player who's controlling SCP-939. + /// + public Player Player { get; } + + /// + public Scp939Role Scp939 { get; } + + /// + /// Gets or sets a value indicating whether visibility can be validated. + /// + public bool IsAllowed { get; set; } + } +} \ No newline at end of file diff --git a/Exiled.Events/EventArgs/Server/ChoosingStartTeamQueueEventArgs.cs b/Exiled.Events/EventArgs/Server/ChoosingStartTeamQueueEventArgs.cs index a533c10efb..47d0180c8e 100644 --- a/Exiled.Events/EventArgs/Server/ChoosingStartTeamQueueEventArgs.cs +++ b/Exiled.Events/EventArgs/Server/ChoosingStartTeamQueueEventArgs.cs @@ -16,15 +16,15 @@ namespace Exiled.Events.EventArgs.Server using PlayerRoles; /// - /// Contains all information before a spectator changes the spectated player. + /// Contains all information before a spectator changes the spectated player. /// public class ChoosingStartTeamQueueEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// public ChoosingStartTeamQueueEventArgs(string teamRespawnQueue) { @@ -38,17 +38,17 @@ public ChoosingStartTeamQueueEventArgs(string teamRespawnQueue) } /// - /// Gets the TeamRespawnQueue. + /// Gets the TeamRespawnQueue. /// public List TeamRespawnQueue { get; } /// - /// Gets or sets a value indicating whether the event can continue. + /// Gets or sets a value indicating whether the event can continue. /// public bool IsAllowed { get; set; } = true; /// - /// Gets the TeamRespawnQueue in a string value. + /// Gets the TeamRespawnQueue in a string value. /// /// The actual modified TeamRespawnQueue. internal string GetTeamRespawnQueue() diff --git a/Exiled.Events/EventArgs/Server/EndingRoundEventArgs.cs b/Exiled.Events/EventArgs/Server/EndingRoundEventArgs.cs index a9e26d0cb8..d84ecaf7ac 100644 --- a/Exiled.Events/EventArgs/Server/EndingRoundEventArgs.cs +++ b/Exiled.Events/EventArgs/Server/EndingRoundEventArgs.cs @@ -13,24 +13,24 @@ namespace Exiled.Events.EventArgs.Server using Interfaces; /// - /// Contains all information before ending a round. + /// Contains all information before ending a round. /// public class EndingRoundEventArgs : IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public EndingRoundEventArgs(RoundSummary.LeadingTeam leadingTeam, RoundSummary.SumInfo_ClassList classList, bool isAllowed, bool isForceEnded) { @@ -41,27 +41,27 @@ public EndingRoundEventArgs(RoundSummary.LeadingTeam leadingTeam, RoundSummary.S } /// - /// Gets or sets the round summary class list. + /// Gets or sets the round summary class list. /// public RoundSummary.SumInfo_ClassList ClassList { get; set; } /// - /// Gets or sets the leading team. + /// Gets or sets the leading team. /// public LeadingTeam LeadingTeam { get; set; } /// - /// Gets or sets a value indicating whether the round is going to finish or not. + /// Gets or sets a value indicating whether the round is going to finish or not. /// public bool IsRoundEnded { get; set; } // TODO: Obsolete this in Exiled 10 /// - /// Gets or Sets a value indicating whether the round is ended by API call. + /// Gets or Sets a value indicating whether the round is ended by API call. /// public bool IsForceEnded { get; set; } /// - /// Gets or sets a value indicating whether the event can be executed or not. + /// Gets or sets a value indicating whether the event can be executed or not. /// public bool IsAllowed { diff --git a/Exiled.Events/EventArgs/Server/ReportingCheaterEventArgs.cs b/Exiled.Events/EventArgs/Server/ReportingCheaterEventArgs.cs index b805cfad8b..9bed3417e7 100644 --- a/Exiled.Events/EventArgs/Server/ReportingCheaterEventArgs.cs +++ b/Exiled.Events/EventArgs/Server/ReportingCheaterEventArgs.cs @@ -12,27 +12,27 @@ namespace Exiled.Events.EventArgs.Server using Interfaces; /// - /// Contains all information before reporting a cheater. + /// Contains all information before reporting a cheater. /// public class ReportingCheaterEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ReportingCheaterEventArgs(Player issuer, Player target, int serverPort, string reason, bool isAllowed = true) { @@ -44,27 +44,27 @@ public ReportingCheaterEventArgs(Player issuer, Player target, int serverPort, s } /// - /// Gets the targeted player. + /// Gets the targeted player. /// public Player Target { get; } /// - /// Gets the server id. + /// Gets the server id. /// public int ServerPort { get; } /// - /// Gets or sets the report reason. + /// Gets or sets the report reason. /// public string Reason { get; set; } /// - /// Gets or sets a value indicating whether or not the report will be sent. + /// Gets or sets a value indicating whether or not the report will be sent. /// public bool IsAllowed { get; set; } /// - /// Gets the issuing player. + /// Gets the issuing player. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Server/RespawningTeamEventArgs.cs b/Exiled.Events/EventArgs/Server/RespawningTeamEventArgs.cs index 6da3311c4d..0ea3641b53 100644 --- a/Exiled.Events/EventArgs/Server/RespawningTeamEventArgs.cs +++ b/Exiled.Events/EventArgs/Server/RespawningTeamEventArgs.cs @@ -17,8 +17,8 @@ namespace Exiled.Events.EventArgs.Server using Respawning; /// - /// Contains all information before spawning a wave of or - /// . + /// Contains all information before spawning a wave of or + /// . /// public class RespawningTeamEventArgs : IDeniableEvent { @@ -26,19 +26,19 @@ public class RespawningTeamEventArgs : IDeniableEvent private int maximumRespawnAmount; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public RespawningTeamEventArgs(List players, int maxRespawn, SpawnableTeamType nextKnownTeam, bool isAllowed = true) { @@ -52,12 +52,12 @@ public RespawningTeamEventArgs(List players, int maxRespawn, SpawnableTe } /// - /// Gets the list of players that are going to be respawned. + /// Gets the list of players that are going to be respawned. /// public List Players { get; } /// - /// Gets or sets the maximum amount of respawnable players. + /// Gets or sets the maximum amount of respawnable players. /// public int MaximumRespawnAmount { @@ -75,7 +75,7 @@ public int MaximumRespawnAmount } /// - /// Gets or sets a value indicating what the next respawnable team is. + /// Gets or sets a value indicating what the next respawnable team is. /// public SpawnableTeamType NextKnownTeam { @@ -97,13 +97,13 @@ public SpawnableTeamType NextKnownTeam } /// - /// Gets the current spawnable team. + /// Gets the current spawnable team. /// public SpawnableTeamHandlerBase SpawnableTeam => RespawnManager.SpawnableTeams.TryGetValue(NextKnownTeam, out SpawnableTeamHandlerBase @base) ? @base : null; /// - /// Gets or sets a value indicating whether or not the spawn can occur. + /// Gets or sets a value indicating whether or not the spawn can occur. /// public bool IsAllowed { get; set; } diff --git a/Exiled.Events/EventArgs/Server/RoundEndedEventArgs.cs b/Exiled.Events/EventArgs/Server/RoundEndedEventArgs.cs index cafd5251df..6536962f86 100644 --- a/Exiled.Events/EventArgs/Server/RoundEndedEventArgs.cs +++ b/Exiled.Events/EventArgs/Server/RoundEndedEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Server using Interfaces; /// - /// Contains all information after the end of a round. + /// Contains all information after the end of a round. /// public class RoundEndedEventArgs : IExiledEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public RoundEndedEventArgs(LeadingTeam leadingTeam, RoundSummary.SumInfo_ClassList classList, int timeToRestart) { @@ -36,17 +36,17 @@ public RoundEndedEventArgs(LeadingTeam leadingTeam, RoundSummary.SumInfo_ClassLi } /// - /// Gets the leading team. + /// Gets the leading team. /// public LeadingTeam LeadingTeam { get; } /// - /// Gets or sets the round summary class list. + /// Gets or sets the round summary class list. /// public RoundSummary.SumInfo_ClassList ClassList { get; set; } /// - /// Gets or sets the time to restart the next round. + /// Gets or sets the time to restart the next round. /// public int TimeToRestart { get; set; } } diff --git a/Exiled.Events/EventArgs/Warhead/ChangingLeverStatusEventArgs.cs b/Exiled.Events/EventArgs/Warhead/ChangingLeverStatusEventArgs.cs index e0b7dada79..1caac039f6 100644 --- a/Exiled.Events/EventArgs/Warhead/ChangingLeverStatusEventArgs.cs +++ b/Exiled.Events/EventArgs/Warhead/ChangingLeverStatusEventArgs.cs @@ -12,21 +12,21 @@ namespace Exiled.Events.EventArgs.Warhead using Interfaces; /// - /// Contains all information before a player changes the warhead lever status. + /// Contains all information before a player changes the warhead lever status. /// public class ChangingLeverStatusEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// /// - /// + /// /// public ChangingLeverStatusEventArgs(Player player, bool curState, bool isAllowed = true) { @@ -36,17 +36,17 @@ public ChangingLeverStatusEventArgs(Player player, bool curState, bool isAllowed } /// - /// Gets a value indicating whether the lever is enabled. + /// Gets a value indicating whether the lever is enabled. /// public bool CurrentState { get; } /// - /// Gets or sets a value indicating whether or not the lever status will change. + /// Gets or sets a value indicating whether or not the lever status will change. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's changing the warhead status. + /// Gets the player who's changing the warhead status. /// public Player Player { get; } } diff --git a/Exiled.Events/EventArgs/Warhead/DetonatingEventArgs.cs b/Exiled.Events/EventArgs/Warhead/DetonatingEventArgs.cs index 4dd825f940..b6b25bf286 100644 --- a/Exiled.Events/EventArgs/Warhead/DetonatingEventArgs.cs +++ b/Exiled.Events/EventArgs/Warhead/DetonatingEventArgs.cs @@ -10,7 +10,7 @@ namespace Exiled.Events.EventArgs.Warhead using Exiled.Events.EventArgs.Interfaces; /// - /// Contains all information before detonating the warhead. + /// Contains all information before detonating the warhead. /// public class DetonatingEventArgs : IDeniableEvent { diff --git a/Exiled.Events/EventArgs/Warhead/StartingEventArgs.cs b/Exiled.Events/EventArgs/Warhead/StartingEventArgs.cs index 030802121d..be6f6f2fdf 100644 --- a/Exiled.Events/EventArgs/Warhead/StartingEventArgs.cs +++ b/Exiled.Events/EventArgs/Warhead/StartingEventArgs.cs @@ -10,12 +10,12 @@ namespace Exiled.Events.EventArgs.Warhead using Exiled.API.Features; /// - /// Contains all information before starting the warhead. + /// Contains all information before starting the warhead. /// public class StartingEventArgs : StoppingEventArgs { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player who's going to start the warhead. /// Indicating whether or not the nuke was set off automatically. @@ -27,7 +27,7 @@ public StartingEventArgs(Player player, bool isAuto, bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not the nuke was set off automatically. + /// Gets or sets a value indicating whether or not the nuke was set off automatically. /// public bool IsAuto { get; set; } } diff --git a/Exiled.Events/EventArgs/Warhead/StoppingEventArgs.cs b/Exiled.Events/EventArgs/Warhead/StoppingEventArgs.cs index c6c23413a6..57d1dd1bba 100644 --- a/Exiled.Events/EventArgs/Warhead/StoppingEventArgs.cs +++ b/Exiled.Events/EventArgs/Warhead/StoppingEventArgs.cs @@ -12,18 +12,18 @@ namespace Exiled.Events.EventArgs.Warhead using Interfaces; /// - /// Contains all information before stopping the warhead. + /// Contains all information before stopping the warhead. /// public class StoppingEventArgs : IPlayerEvent, IDeniableEvent { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// /// /// - /// + /// /// public StoppingEventArgs(Player player, bool isAllowed = true) { @@ -32,12 +32,12 @@ public StoppingEventArgs(Player player, bool isAllowed = true) } /// - /// Gets or sets a value indicating whether or not the warhead can be stopped. + /// Gets or sets a value indicating whether or not the warhead can be stopped. /// public bool IsAllowed { get; set; } /// - /// Gets the player who's going to stop the warhead. + /// Gets the player who's going to stop the warhead. /// public Player Player { get; } } diff --git a/Exiled.Events/Features/Event.cs b/Exiled.Events/Features/Event.cs index 141def259f..c27c657030 100644 --- a/Exiled.Events/Features/Event.cs +++ b/Exiled.Events/Features/Event.cs @@ -13,12 +13,19 @@ namespace Exiled.Events.Features using Exiled.API.Features; using Exiled.Events.EventArgs.Interfaces; + using MEC; /// /// The custom delegate, with empty parameters. /// public delegate void CustomEventHandler(); + /// + /// THe custom delegate, with empty parameters. Holds async events with . + /// + /// of . + public delegate IEnumerator CustomAsyncEventHandler(); + /// /// An implementation of that encapsulates a no-argument event. /// @@ -38,6 +45,8 @@ public Event() private event CustomEventHandler InnerEvent; + private event CustomAsyncEventHandler InnerAsyncEvent; + /// /// Gets a of which contains all the instances. /// @@ -55,6 +64,18 @@ public Event() return @event; } + /// + /// Subscribes a to the inner event, and checks patches if dynamic patching is enabled. + /// + /// The to subscribe the to. + /// The to subscribe to the . + /// The with the handler added to it. + public static Event operator +(Event @event, CustomAsyncEventHandler asyncEventHandler) + { + @event.Subscribe(asyncEventHandler); + return @event; + } + /// /// Unsubscribes a target from the inner event, and checks if unpatching is possible, if dynamic patching is enabled. /// @@ -67,6 +88,18 @@ public Event() return @event; } + /// + /// Unsubscribes a target from the inner event, and checks if unpatching is possible, if dynamic patching is enabled. + /// + /// The the will be unsubscribed from. + /// The that will be unsubscribed from the . + /// The with the handler unsubscribed from it. + public static Event operator -(Event @event, CustomAsyncEventHandler asyncEventHandler) + { + @event.Unsubscribe(asyncEventHandler); + return @event; + } + /// /// Subscribes a target to the inner event if the conditional is true. /// @@ -84,6 +117,23 @@ public void Subscribe(CustomEventHandler handler) InnerEvent += handler; } + /// + /// Subscribes a target to the inner event if the conditional is true. + /// + /// The handler to add. + public void Subscribe(CustomAsyncEventHandler handler) + { + Log.Assert(Events.Instance is not null, $"{nameof(Events.Instance)} is null, please ensure you have exiled_events enabled!"); + + if (Events.Instance.Config.UseDynamicPatching && !patched) + { + Events.Instance.Patcher.Patch(this); + patched = true; + } + + InnerAsyncEvent += handler; + } + /// /// Unsubscribes a target from the inner event if the conditional is true. /// @@ -93,10 +143,26 @@ public void Unsubscribe(CustomEventHandler handler) InnerEvent -= handler; } + /// + /// Unsubscribes a target from the inner event if the conditional is true. + /// + /// The handler to add. + public void Unsubscribe(CustomAsyncEventHandler handler) + { + InnerAsyncEvent -= handler; + } + /// /// Executes all listeners safely. /// public void InvokeSafely() + { + InvokeNormal(); + InvokeAsync(); + } + + /// + internal void InvokeNormal() { if (InnerEvent is null) return; @@ -113,5 +179,24 @@ public void InvokeSafely() } } } + + /// + internal void InvokeAsync() + { + if (InnerAsyncEvent is null) + return; + + foreach (CustomAsyncEventHandler handler in InnerAsyncEvent.GetInvocationList().Cast()) + { + try + { + Timing.RunCoroutine(handler()); + } + catch (Exception ex) + { + Log.Error($"Method \"{handler.Method.Name}\" of the class \"{handler.Method.ReflectedType.FullName}\" caused an exception when handling the event \"{GetType().FullName}\"\n{ex}"); + } + } + } } } diff --git a/Exiled.Events/Features/Event{T}.cs b/Exiled.Events/Features/Event{T}.cs index f8ea5f51fd..8cbd180544 100644 --- a/Exiled.Events/Features/Event{T}.cs +++ b/Exiled.Events/Features/Event{T}.cs @@ -13,6 +13,7 @@ namespace Exiled.Events.Features using Exiled.API.Features; using Exiled.Events.EventArgs.Interfaces; + using MEC; /// /// The custom delegate. @@ -21,6 +22,14 @@ namespace Exiled.Events.Features /// The instance. public delegate void CustomEventHandler(TEventArgs ev); + /// + /// The custom delegate. + /// + /// The type. + /// The instance. + /// of . + public delegate IEnumerator CustomAsyncEventHandler(TEventArgs ev); + /// /// An implementation of the interface that encapsulates an event with arguments. /// @@ -41,6 +50,8 @@ public Event() private event CustomEventHandler InnerEvent; + private event CustomAsyncEventHandler InnerAsyncEvent; + /// /// Gets a of which contains all the instances. /// @@ -58,6 +69,18 @@ public Event() return @event; } + /// + /// Subscribes a to the inner event, and checks patches if dynamic patching is enabled. + /// + /// The to subscribe the to. + /// The to subscribe to the . + /// The with the handler added to it. + public static Event operator +(Event @event, CustomAsyncEventHandler asyncEventHandler) + { + @event.Subscribe(asyncEventHandler); + return @event; + } + /// /// Unsubscribes a target from the inner event and checks if unpatching is possible, if dynamic patching is enabled. /// @@ -70,6 +93,18 @@ public Event() return @event; } + /// + /// Unsubscribes a target from the inner event, and checks if unpatching is possible, if dynamic patching is enabled. + /// + /// The the will be unsubscribed from. + /// The that will be unsubscribed from the . + /// The with the handler unsubscribed from it. + public static Event operator -(Event @event, CustomAsyncEventHandler asyncEventHandler) + { + @event.Unsubscribe(asyncEventHandler); + return @event; + } + /// /// Subscribes a target to the inner event if the conditional is true. /// @@ -87,6 +122,23 @@ public void Subscribe(CustomEventHandler handler) InnerEvent += handler; } + /// + /// Subscribes a target to the inner event if the conditional is true. + /// + /// The handler to add. + public void Subscribe(CustomAsyncEventHandler handler) + { + Log.Assert(Events.Instance is not null, $"{nameof(Events.Instance)} is null, please ensure you have exiled_events enabled!"); + + if (Events.Instance.Config.UseDynamicPatching && !patched) + { + Events.Instance.Patcher.Patch(this); + patched = true; + } + + InnerAsyncEvent += handler; + } + /// /// Unsubscribes a target from the inner event if the conditional is true. /// @@ -96,12 +148,28 @@ public void Unsubscribe(CustomEventHandler handler) InnerEvent -= handler; } + /// + /// Unsubscribes a target from the inner event if the conditional is true. + /// + /// The handler to add. + public void Unsubscribe(CustomAsyncEventHandler handler) + { + InnerAsyncEvent -= handler; + } + /// /// Executes all listeners safely. /// /// The event argument. /// Event or its arg is . public void InvokeSafely(T arg) + { + InvokeNormal(arg); + InvokeAsync(arg); + } + + /// + internal void InvokeNormal(T arg) { if (InnerEvent is null) return; @@ -118,5 +186,24 @@ public void InvokeSafely(T arg) } } } + + /// + internal void InvokeAsync(T arg) + { + if (InnerAsyncEvent is null) + return; + + foreach (CustomAsyncEventHandler handler in InnerAsyncEvent.GetInvocationList().Cast>()) + { + try + { + Timing.RunCoroutine(handler(arg)); + } + catch (Exception ex) + { + Log.Error($"Method \"{handler.Method.Name}\" of the class \"{handler.Method.ReflectedType.FullName}\" caused an exception when handling the event \"{GetType().FullName}\"\n{ex}"); + } + } + } } } diff --git a/Exiled.Events/Handlers/Cassie.cs b/Exiled.Events/Handlers/Cassie.cs index aa2748e851..9d2ca857f1 100644 --- a/Exiled.Events/Handlers/Cassie.cs +++ b/Exiled.Events/Handlers/Cassie.cs @@ -11,7 +11,7 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Cassie related events. + /// Cassie related events. /// public static class Cassie { @@ -23,7 +23,7 @@ public static class Cassie public static Event SendingCassieMessage { get; set; } = new(); /// - /// Called before sending a cassie message. + /// Called before sending a cassie message. /// /// The instance. public static void OnSendingCassieMessage(SendingCassieMessageEventArgs ev) => SendingCassieMessage.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Internal/Round.cs b/Exiled.Events/Handlers/Internal/Round.cs index ac135727ac..4861c30b64 100644 --- a/Exiled.Events/Handlers/Internal/Round.cs +++ b/Exiled.Events/Handlers/Internal/Round.cs @@ -21,7 +21,7 @@ namespace Exiled.Events.Handlers.Internal using PlayerRoles.RoleAssign; /// - /// Handles some round clean-up events and some others related to players. + /// Handles some round clean-up events and some others related to players. /// internal static class Round { diff --git a/Exiled.Events/Handlers/Internal/SceneUnloaded.cs b/Exiled.Events/Handlers/Internal/SceneUnloaded.cs index 4626311b13..9bcb75cc85 100644 --- a/Exiled.Events/Handlers/Internal/SceneUnloaded.cs +++ b/Exiled.Events/Handlers/Internal/SceneUnloaded.cs @@ -15,21 +15,21 @@ namespace Exiled.Events.Handlers.Internal #pragma warning disable SA1313 // Parameter names should begin with lower-case letter /// - /// Handles scene unload event. + /// Handles scene unload event. /// internal static class SceneUnloaded { /// - /// Called once when the server changes the scene. + /// Called once when the server changes the scene. /// /// - /// This fixes the main issue with ghost mode, - /// when it spams with a NRE error. - /// Before that, we were clearing the cache - /// on WaitForPlayers event, but - /// sometimes (ordinally on silent rount restart) - /// the server accepts players' tokens before - /// WaitForPlayers event is called. + /// This fixes the main issue with ghost mode, + /// when it spams with a NRE error. + /// Before that, we were clearing the cache + /// on WaitForPlayers event, but + /// sometimes (ordinally on silent rount restart) + /// the server accepts players' tokens before + /// WaitForPlayers event is called. /// public static void OnSceneUnloaded(Scene _) { diff --git a/Exiled.Events/Handlers/Item.cs b/Exiled.Events/Handlers/Item.cs index 7ce1feee18..540c490223 100644 --- a/Exiled.Events/Handlers/Item.cs +++ b/Exiled.Events/Handlers/Item.cs @@ -14,22 +14,22 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Item related events. + /// Item related events. /// public static class Item { /// - /// Invoked before the ammo of an firearm are changed. + /// Invoked before the ammo of an firearm are changed. /// public static Event ChangingAmmo { get; set; } = new (); /// - /// Invoked before item attachments are changed. + /// Invoked before item attachments are changed. /// public static Event ChangingAttachments { get; set; } = new(); /// - /// Invoked before receiving a preference. + /// Invoked before receiving a preference. /// public static Event ReceivingPreference { get; set; } = new(); @@ -48,6 +48,11 @@ public static class Item /// public static Event ChargingJailbird { get; set; } = new(); + /// + /// Invoked before a radio pickup is draining battery. + /// + public static Event UsingRadioPickupBattery { get; set; } = new(); + /// /// Called before the ammo of an firearm is changed. /// @@ -55,13 +60,13 @@ public static class Item public static void OnChangingAmmo(ChangingAmmoEventArgs ev) => ChangingAmmo.InvokeSafely(ev); /// - /// Called before item attachments are changed. + /// Called before item attachments are changed. /// /// The instance. public static void OnChangingAttachments(ChangingAttachmentsEventArgs ev) => ChangingAttachments.InvokeSafely(ev); /// - /// Called before receiving a preference. + /// Called before receiving a preference. /// /// The instance. public static void OnReceivingPreference(ReceivingPreferenceEventArgs ev) => ReceivingPreference.InvokeSafely(ev); @@ -83,5 +88,11 @@ public static class Item /// /// The instance. public static void OnChargingJailbird(ChargingJailbirdEventArgs ev) => ChargingJailbird.InvokeSafely(ev); + + /// + /// Called before radio pickup is draining battery. + /// + /// The instance. + public static void OnUsingRadioPickupBattery(UsingRadioPickupBatteryEventArgs ev) => UsingRadioPickupBattery.InvokeSafely(ev); } } \ No newline at end of file diff --git a/Exiled.Events/Handlers/Scp049.cs b/Exiled.Events/Handlers/Scp049.cs index 9b26e590bd..62f4766dce 100644 --- a/Exiled.Events/Handlers/Scp049.cs +++ b/Exiled.Events/Handlers/Scp049.cs @@ -13,27 +13,27 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// SCP-049 related events. + /// SCP-049 related events. /// public static class Scp049 { /// - /// Invoked before SCP-049 finishes reviving a player. + /// Invoked before SCP-049 finishes reviving a player. /// public static Event FinishingRecall { get; set; } = new(); /// - /// Invoked before SCP-049 begins reviving a player. + /// Invoked before SCP-049 begins reviving a player. /// public static Event StartingRecall { get; set; } = new(); /// - /// Invoked before SCP-049 uses the good sense of the doctor ability. + /// Invoked before SCP-049 uses the good sense of the doctor ability. /// public static Event ActivatingSense { get; set; } = new(); /// - /// Invoked before SCP-049 uses the call ability. + /// Invoked before SCP-049 uses the call ability. /// public static Event SendingCall { get; set; } = new(); @@ -43,25 +43,25 @@ public static class Scp049 public static Event Attacking { get; set; } = new(); /// - /// Called before SCP-049 finishes reviving a player. + /// Called before SCP-049 finishes reviving a player. /// /// The instance. public static void OnFinishingRecall(FinishingRecallEventArgs ev) => FinishingRecall.InvokeSafely(ev); /// - /// Called before SCP-049 starts to revive a player. + /// Called before SCP-049 starts to revive a player. /// /// The instance. public static void OnStartingRecall(StartingRecallEventArgs ev) => StartingRecall.InvokeSafely(ev); /// - /// Called before SCP-049 starts the good sense of the doctor ability. + /// Called before SCP-049 starts the good sense of the doctor ability. /// /// The instance. public static void OnActivatingSense(ActivatingSenseEventArgs ev) => ActivatingSense.InvokeSafely(ev); /// - /// Called before SCP-049 starts the call ability. + /// Called before SCP-049 starts the call ability. /// /// The instance. public static void OnSendingCall(SendingCallEventArgs ev) => SendingCall.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp079.cs b/Exiled.Events/Handlers/Scp079.cs index 41cc1fd49c..85da2da7e5 100644 --- a/Exiled.Events/Handlers/Scp079.cs +++ b/Exiled.Events/Handlers/Scp079.cs @@ -13,138 +13,138 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// SCP-079 related events. + /// SCP-079 related events. /// public static class Scp079 { /// - /// Invoked before SCP-079 switches cameras. + /// Invoked before SCP-079 switches cameras. /// public static Event ChangingCamera { get; set; } = new(); /// - /// Invoked before gaining experience with SCP-079. + /// Invoked before gaining experience with SCP-079. /// public static Event GainingExperience { get; set; } = new(); /// - /// Invoked before gaining levels with SCP-079. + /// Invoked before gaining levels with SCP-079. /// public static Event GainingLevel { get; set; } = new(); /// - /// Invoked before triggering a tesla with SCP-079. + /// Invoked before triggering a tesla with SCP-079. /// public static Event InteractingTesla { get; set; } = new(); /// - /// Invoked before triggering a door with SCP-079. + /// Invoked before triggering a door with SCP-079. /// public static Event TriggeringDoor { get; set; } = new(); /// - /// Invoked before SCP-079 teleports using an elevator. + /// Invoked before SCP-079 teleports using an elevator. /// public static Event ElevatorTeleporting { get; set; } = new(); /// - /// Invoked before SCP-079 lockdowns a room. + /// Invoked before SCP-079 lockdowns a room. /// public static Event LockingDown { get; set; } = new(); /// - /// Invoked before SCP-079 changes a speaker status. + /// Invoked before SCP-079 changes a speaker status. /// public static Event ChangingSpeakerStatus { get; set; } = new(); /// - /// Invoked after SCP-079 recontainment. + /// Invoked after SCP-079 recontainment. /// public static Event Recontained { get; set; } = new(); /// - /// Invoked before SCP-079 sends a ping. + /// Invoked before SCP-079 sends a ping. /// public static Event Pinging { get; set; } = new(); /// - /// Invoked before SCP-079 turns off the lights in a room. + /// Invoked before SCP-079 turns off the lights in a room. /// public static Event RoomBlackout { get; set; } = new(); /// - /// Invoked before SCP-079 turns off the lights in a zone. + /// Invoked before SCP-079 turns off the lights in a zone. /// public static Event ZoneBlackout { get; set; } = new(); /// - /// Called before SCP-079 switches cameras. + /// Called before SCP-079 switches cameras. /// /// The instance. public static void OnChangingCamera(ChangingCameraEventArgs ev) => ChangingCamera.InvokeSafely(ev); /// - /// Called before gaining experience with SCP-079. + /// Called before gaining experience with SCP-079. /// /// The instance. public static void OnGainingExperience(GainingExperienceEventArgs ev) => GainingExperience.InvokeSafely(ev); /// - /// Called before gaining levels with SCP-079. + /// Called before gaining levels with SCP-079. /// /// The instance. public static void OnGainingLevel(GainingLevelEventArgs ev) => GainingLevel.InvokeSafely(ev); /// - /// Called before triggering a tesla with SCP-079. + /// Called before triggering a tesla with SCP-079. /// /// The instance. public static void OnInteractingTesla(InteractingTeslaEventArgs ev) => InteractingTesla.InvokeSafely(ev); /// - /// Called before interacting with a door with SCP-079. + /// Called before interacting with a door with SCP-079. /// /// The instance. public static void OnTriggeringDoor(TriggeringDoorEventArgs ev) => TriggeringDoor.InvokeSafely(ev); /// - /// Called before SCP-079 teleports using an elevator. + /// Called before SCP-079 teleports using an elevator. /// /// The instance. public static void OnElevatorTeleporting(ElevatorTeleportingEventArgs ev) => ElevatorTeleporting.InvokeSafely(ev); /// - /// Called before SCP-079 lockdowns a room. + /// Called before SCP-079 lockdowns a room. /// /// The instance. public static void OnLockingDown(LockingDownEventArgs ev) => LockingDown.InvokeSafely(ev); /// - /// Called while interacting with a speaker with SCP-079. + /// Called while interacting with a speaker with SCP-079. /// /// The instance. public static void OnChangingSpeakerStatus(ChangingSpeakerStatusEventArgs ev) => ChangingSpeakerStatus.InvokeSafely(ev); /// - /// Called after SCP-079 is recontained. + /// Called after SCP-079 is recontained. /// /// The instance. public static void OnRecontained(RecontainedEventArgs ev) => Recontained.InvokeSafely(ev); /// - /// Called before SCP-079 sends a ping. + /// Called before SCP-079 sends a ping. /// /// The instance. public static void OnPinging(PingingEventArgs ev) => Pinging.InvokeSafely(ev); /// - /// Called before SCP-079 turns off the lights in a room. + /// Called before SCP-079 turns off the lights in a room. /// /// The instance. public static void OnRoomBlackout(RoomBlackoutEventArgs ev) => RoomBlackout.InvokeSafely(ev); /// - /// Called before SCP-079 turns off the lights in a zone. + /// Called before SCP-079 turns off the lights in a zone. /// /// The instance. public static void OnZoneBlackout(ZoneBlackoutEventArgs ev) => ZoneBlackout.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp096.cs b/Exiled.Events/Handlers/Scp096.cs index 45cae82eb4..60a01b3679 100644 --- a/Exiled.Events/Handlers/Scp096.cs +++ b/Exiled.Events/Handlers/Scp096.cs @@ -13,72 +13,72 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// SCP-096 related events. + /// SCP-096 related events. /// public static class Scp096 { /// - /// Invoked before SCP-096 is enraged. + /// Invoked before SCP-096 is enraged. /// public static Event Enraging { get; set; } = new(); /// - /// Invoked before SCP-096 calms down. + /// Invoked before SCP-096 calms down. /// public static Event CalmingDown { get; set; } = new(); /// - /// Invoked before adding a target to SCP-096. + /// Invoked before adding a target to SCP-096. /// public static Event AddingTarget { get; set; } = new(); /// - /// Invoked before SCP-096 begins prying open a gate. + /// Invoked before SCP-096 begins prying open a gate. /// public static Event StartPryingGate { get; set; } = new(); /// - /// Invoked before SCP-096 begins charging. + /// Invoked before SCP-096 begins charging. /// public static Event Charging { get; set; } = new(); /// - /// Invoked before SCP-096 tries not to cry. + /// Invoked before SCP-096 tries not to cry. /// public static Event TryingNotToCry { get; set; } = new(); /// - /// Called before SCP-096 is enraged. + /// Called before SCP-096 is enraged. /// /// The instance. public static void OnEnraging(EnragingEventArgs ev) => Enraging.InvokeSafely(ev); /// - /// Called before SCP-096 calms down. + /// Called before SCP-096 calms down. /// /// The instance. public static void OnCalmingDown(CalmingDownEventArgs ev) => CalmingDown.InvokeSafely(ev); /// - /// Called before adding a target to SCP-096. + /// Called before adding a target to SCP-096. /// /// The instance. public static void OnAddingTarget(AddingTargetEventArgs ev) => AddingTarget.InvokeSafely(ev); /// - /// Called before SCP-096 begins prying open a gate. + /// Called before SCP-096 begins prying open a gate. /// /// The instance. public static void OnStartPryingGate(StartPryingGateEventArgs ev) => StartPryingGate.InvokeSafely(ev); /// - /// Called before SCP-096 begins charging. + /// Called before SCP-096 begins charging. /// /// The instance. public static void OnCharging(ChargingEventArgs ev) => Charging.InvokeSafely(ev); /// - /// Called before SCP-096 starts trying not to cry. + /// Called before SCP-096 starts trying not to cry. /// /// The instance. public static void OnTryingNotToCry(TryingNotToCryEventArgs ev) => TryingNotToCry.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp106.cs b/Exiled.Events/Handlers/Scp106.cs index 0ed5972db9..da2645466c 100644 --- a/Exiled.Events/Handlers/Scp106.cs +++ b/Exiled.Events/Handlers/Scp106.cs @@ -13,50 +13,50 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// SCP-106 related events. + /// SCP-106 related events. /// public static class Scp106 { /// - /// Invoked before SCP-106 attacks player. + /// Invoked before SCP-106 attacks player. /// public static Event Attacking { get; set; } = new(); /// - /// Invoked before SCP-106 teleports using the hunter atlas. + /// Invoked before SCP-106 teleports using the hunter atlas. /// public static Event Teleporting { get; set; } = new(); /// - /// Invoked before SCP-106 use the stalk ability. + /// Invoked before SCP-106 use the stalk ability. /// public static Event Stalking { get; set; } = new(); /// - /// Invoked before SCP-106 exit the stalk ability. + /// Invoked before SCP-106 exit the stalk ability. /// public static Event ExitStalking { get; set; } = new(); /// - /// Called before SCP-106 attacks player. + /// Called before SCP-106 attacks player. /// /// The instance. public static void OnAttacking(AttackingEventArgs ev) => Attacking.InvokeSafely(ev); /// - /// Called before SCP-106 teleports using the hunter atlas. + /// Called before SCP-106 teleports using the hunter atlas. /// /// The instance. public static void OnTeleporting(TeleportingEventArgs ev) => Teleporting.InvokeSafely(ev); /// - /// Called before SCP-106 use the stalk ability. + /// Called before SCP-106 use the stalk ability. /// /// The instance. public static void OnStalking(StalkingEventArgs ev) => Stalking.InvokeSafely(ev); /// - /// Called before SCP-106 exit the stalk ability. + /// Called before SCP-106 exit the stalk ability. /// /// The instance. public static void OnExitStalking(ExitStalkingEventArgs ev) => ExitStalking.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp173.cs b/Exiled.Events/Handlers/Scp173.cs index abb88d66e0..bf844714b9 100644 --- a/Exiled.Events/Handlers/Scp173.cs +++ b/Exiled.Events/Handlers/Scp173.cs @@ -13,50 +13,50 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// SCP-173 related events. + /// SCP-173 related events. /// public static class Scp173 { /// - /// Invoked before players near SCP-173 blink. + /// Invoked before players near SCP-173 blink. /// public static Event Blinking { get; set; } = new(); /// - /// Invoked before server handle SCP-173 blink network message. + /// Invoked before server handle SCP-173 blink network message. /// public static Event BlinkingRequest { get; set; } = new(); /// - /// Invoked before a tantrum is placed. + /// Invoked before a tantrum is placed. /// public static Event PlacingTantrum { get; set; } = new(); /// - /// Invoked before using breakneck speeds. + /// Invoked before using breakneck speeds. /// public static Event UsingBreakneckSpeeds { get; set; } = new(); /// - /// Called before players near SCP-173 blink. + /// Called before players near SCP-173 blink. /// /// The instance. public static void OnBlinking(BlinkingEventArgs ev) => Blinking.InvokeSafely(ev); /// - /// Called before server handle SCP-173 blink network message. + /// Called before server handle SCP-173 blink network message. /// /// The instance. public static void OnBlinkingRequest(BlinkingRequestEventArgs ev) => BlinkingRequest.InvokeSafely(ev); /// - /// Called before a tantrum is placed. + /// Called before a tantrum is placed. /// /// The instance. public static void OnPlacingTantrum(PlacingTantrumEventArgs ev) => PlacingTantrum.InvokeSafely(ev); /// - /// Called before a using breakneck speeds. + /// Called before a using breakneck speeds. /// /// The instance. public static void OnUsingBreakneckSpeeds(UsingBreakneckSpeedsEventArgs ev) => UsingBreakneckSpeeds.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp244.cs b/Exiled.Events/Handlers/Scp244.cs index 1771762986..f986ba032c 100644 --- a/Exiled.Events/Handlers/Scp244.cs +++ b/Exiled.Events/Handlers/Scp244.cs @@ -13,39 +13,39 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Scp244 related events. + /// Scp244 related events. /// public static class Scp244 { /// - /// Invoked before using an . + /// Invoked before using an . /// public static Event UsingScp244 { get; set; } = new(); /// - /// Invoked before an Scp244 take damage. + /// Invoked before an Scp244 take damage. /// public static Event DamagingScp244 { get; set; } = new(); /// - /// Invoked before an Scp244 open because the angle was too low. + /// Invoked before an Scp244 open because the angle was too low. /// public static Event OpeningScp244 { get; set; } = new(); /// - /// Called before using a usable item. + /// Called before using a usable item. /// /// The instance. public static void OnUsingScp244(UsingScp244EventArgs ev) => UsingScp244.InvokeSafely(ev); /// - /// Called before an Scp244 take damage. + /// Called before an Scp244 take damage. /// /// The instance. public static void OnDamagingScp244(DamagingScp244EventArgs ev) => DamagingScp244.InvokeSafely(ev); /// - /// Called before Scp244 open because the angle was too low. + /// Called before Scp244 open because the angle was too low. /// /// The instance. public static void OnOpeningScp244(OpeningScp244EventArgs ev) => OpeningScp244.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp3114.cs b/Exiled.Events/Handlers/Scp3114.cs index 1e85bf7ad5..087957c316 100644 --- a/Exiled.Events/Handlers/Scp3114.cs +++ b/Exiled.Events/Handlers/Scp3114.cs @@ -14,63 +14,74 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Scp3114 related events. + /// Scp3114 related events. /// public static class Scp3114 { /// - /// Invoked before Disguising. + /// Invoked before disguising. /// public static Event Disguising { get; set; } = new(); /// - /// Invoked before Disguising. + /// Invoked when disguised. /// public static Event Disguised { get; set; } = new(); /// - /// Invoked before Disguising. + /// Invoked before trying to use a body. /// public static Event TryUseBody { get; set; } = new(); /// - /// Invoked before Disguising. + /// Invoked when reveals. /// public static Event Revealed { get; set; } = new(); /// - /// Invoked before Disguising. + /// Invoked before reveals. /// public static Event Revealing { get; set; } = new(); /// - /// Called before diguising to a new Roles. + /// Invoked before sending any SCP-3114 voicelines. + /// + public static Event VoiceLines { get; set; } = new(); + + /// + /// Called before diguising. /// /// The instance. public static void OnDisguising(DisguisingEventArgs ev) => Disguising.InvokeSafely(ev); /// - /// Called before diguising to a new Roles. + /// Called after diguising. /// /// The instance. public static void OnDisguised(DisguisedEventArgs ev) => Disguised.InvokeSafely(ev); /// - /// Called before diguising to a new Roles. + /// Called before trying to use a body. /// /// The instance. public static void OnTryUseBody(TryUseBodyEventArgs ev) => TryUseBody.InvokeSafely(ev); /// - /// Called before diguising to a new Roles. + /// Called after reveals. /// /// The instance. public static void OnRevealed(RevealedEventArgs ev) => Revealed.InvokeSafely(ev); /// - /// Called before diguising to a new Roles. + /// Called before revealing. /// /// The instance. public static void OnRevealing(RevealingEventArgs ev) => Revealing.InvokeSafely(ev); + + /// + /// Called before sending any SCP-3114 voicelines. + /// + /// The instance. + public static void OnVoiceLines(VoiceLinesEventArgs ev) => VoiceLines.InvokeSafely(ev); } } \ No newline at end of file diff --git a/Exiled.Events/Handlers/Scp330.cs b/Exiled.Events/Handlers/Scp330.cs index 19f0534ae2..a5dcd44c98 100644 --- a/Exiled.Events/Handlers/Scp330.cs +++ b/Exiled.Events/Handlers/Scp330.cs @@ -13,50 +13,50 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Scp330 related events. + /// Scp330 related events. /// public static class Scp330 { /// - /// Invoked before a interacts with SCP-330. + /// Invoked before a interacts with SCP-330. /// public static Event InteractingScp330 { get; set; } = new(); /// - /// Invoked before a drop a SCP-330 candy. + /// Invoked before a drop a SCP-330 candy. /// public static Event DroppingScp330 { get; set; } = new(); /// - /// Invoked before a player eats a candy from SCP-330. + /// Invoked before a player eats a candy from SCP-330. /// public static Event EatingScp330 { get; set; } = new(); /// - /// Invoked after the player has eaten a candy from SCP-330. + /// Invoked after the player has eaten a candy from SCP-330. /// public static Event EatenScp330 { get; set; } = new(); /// - /// Called before a player eats a candy from SCP-330. + /// Called before a player eats a candy from SCP-330. /// /// The instance. public static void OnEatingScp330(EatingScp330EventArgs ev) => EatingScp330.InvokeSafely(ev); /// - /// Called after the player has eaten a candy from SCP-330. + /// Called after the player has eaten a candy from SCP-330. /// /// The instance. public static void OnEatenScp330(EatenScp330EventArgs ev) => EatenScp330.InvokeSafely(ev); /// - /// Called before a interacts with SCP-330. + /// Called before a interacts with SCP-330. /// /// The instance. public static void OnInteractingScp330(InteractingScp330EventArgs ev) => InteractingScp330.InvokeSafely(ev); /// - /// Called before a searches a Pickup. + /// Called before a searches a Pickup. /// /// The instance. public static void OnDroppingScp330(DroppingScp330EventArgs ev) => DroppingScp330.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp914.cs b/Exiled.Events/Handlers/Scp914.cs index 3417aa7789..77157ef904 100644 --- a/Exiled.Events/Handlers/Scp914.cs +++ b/Exiled.Events/Handlers/Scp914.cs @@ -13,61 +13,61 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Handles SCP-914 related events. + /// Handles SCP-914 related events. /// public static class Scp914 { /// - /// Invoked before SCP-914 upgrades a Pickup. + /// Invoked before SCP-914 upgrades a Pickup. /// public static Event UpgradingPickup { get; set; } = new(); /// - /// Invoked before SCP-914 upgrades an item in a player's inventory. + /// Invoked before SCP-914 upgrades an item in a player's inventory. /// public static Event UpgradingInventoryItem { get; set; } = new(); /// - /// Invoked before SCP-914 upgrades a player. + /// Invoked before SCP-914 upgrades a player. /// public static Event UpgradingPlayer { get; set; } = new(); /// - /// Invoked before activating the SCP-914 machine. + /// Invoked before activating the SCP-914 machine. /// public static Event Activating { get; set; } = new(); /// - /// Invoked before changing the SCP-914 machine knob setting. + /// Invoked before changing the SCP-914 machine knob setting. /// public static Event ChangingKnobSetting { get; set; } = new(); /// - /// Called before SCP-914 upgrades a item. + /// Called before SCP-914 upgrades a item. /// /// The instance. public static void OnUpgradingPickup(UpgradingPickupEventArgs ev) => UpgradingPickup.InvokeSafely(ev); /// - /// Called before SCP-914 upgrades an item in a player's inventory. + /// Called before SCP-914 upgrades an item in a player's inventory. /// /// The instance. public static void OnUpgradingInventoryItem(UpgradingInventoryItemEventArgs ev) => UpgradingInventoryItem.InvokeSafely(ev); /// - /// Called before SCP-914 upgrades a player. + /// Called before SCP-914 upgrades a player. /// /// The instance. public static void OnUpgradingPlayer(UpgradingPlayerEventArgs ev) => UpgradingPlayer.InvokeSafely(ev); /// - /// Called before activating the SCP-914 machine. + /// Called before activating the SCP-914 machine. /// /// The instance. public static void OnActivating(ActivatingEventArgs ev) => Activating.InvokeSafely(ev); /// - /// Called before changing the SCP-914 machine knob setting. + /// Called before changing the SCP-914 machine knob setting. /// /// The instance. public static void OnChangingKnobSetting(ChangingKnobSettingEventArgs ev) => ChangingKnobSetting.InvokeSafely(ev); diff --git a/Exiled.Events/Handlers/Scp939.cs b/Exiled.Events/Handlers/Scp939.cs index bb93cf51b3..e8c582d36a 100644 --- a/Exiled.Events/Handlers/Scp939.cs +++ b/Exiled.Events/Handlers/Scp939.cs @@ -13,37 +13,37 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Handles SCP-939 related events. + /// Handles SCP-939 related events. /// public static class Scp939 { /// - /// Invoked before SCP-939 changes its target focus. + /// Invoked before SCP-939 changes its target focus. /// public static Event ChangingFocus { get; set; } = new(); /// - /// Invoked before SCP-939 uses its lunge ability. + /// Invoked before SCP-939 uses its lunge ability. /// public static Event Lunging { get; set; } = new(); /// - /// Invoked before SCP-939 uses its amnestic cloud ability. + /// Invoked before SCP-939 uses its amnestic cloud ability. /// public static Event PlacingAmnesticCloud { get; set; } = new(); /// - /// Invoked before SCP-939 plays a stolen voice. + /// Invoked before SCP-939 plays a stolen voice. /// public static Event PlayingVoice { get; set; } = new(); /// - /// Invoked before SCP-939 will save Human voice. + /// Invoked before SCP-939 will save Human voice. /// public static Event SavingVoice { get; set; } = new(); /// - /// Invoked before SCP-939 plays a sound effect. + /// Invoked before SCP-939 plays a sound effect. /// public static Event PlayingSound { get; set; } = new(); @@ -54,37 +54,42 @@ public static class Scp939 public static Event Clawed { get; set; } = new(); /// - /// Called before SCP-939 changes its target focus. + /// Invoked before validating visibility. + /// + public static Event ValidatingVisibility { get; set; } = new(); + + /// + /// Called before SCP-939 changes its target focus. /// /// The instance. public static void OnChangingFocus(ChangingFocusEventArgs ev) => ChangingFocus.InvokeSafely(ev); /// - /// Called before SCP-939 uses its lunge ability. + /// Called before SCP-939 uses its lunge ability. /// /// The instance. public static void OnLunging(LungingEventArgs ev) => Lunging.InvokeSafely(ev); /// - /// Called before SCP-939 uses its amnestic cloud ability. + /// Called before SCP-939 uses its amnestic cloud ability. /// /// The instance. public static void OnPlacingAmnesticCloud(PlacingAmnesticCloudEventArgs ev) => PlacingAmnesticCloud.InvokeSafely(ev); /// - /// Called before SCP-939 plays a stolen voice. + /// Called before SCP-939 plays a stolen voice. /// /// The instance. public static void OnPlayingVoice(PlayingVoiceEventArgs ev) => PlayingVoice.InvokeSafely(ev); /// - /// Called before SCP-939 plays a stolen voice. + /// Called before SCP-939 plays a stolen voice. /// /// The instance. public static void OnSavingVoice(SavingVoiceEventArgs ev) => SavingVoice.InvokeSafely(ev); /// - /// Called before SCP-939 plays a sound. + /// Called before SCP-939 plays a sound. /// /// The instance. public static void OnPlayingSound(PlayingSoundEventArgs ev) => PlayingSound.InvokeSafely(ev); @@ -94,5 +99,11 @@ public static class Scp939 /// /// The instance. public static void OnClawed(ClawedEventArgs ev) => Clawed.InvokeSafely(ev); + + /// + /// Called before validating visibility. + /// + /// The instance. + public static void OnValidatingVisibility(ValidatingVisibilityEventArgs ev) => ValidatingVisibility.InvokeSafely(ev); } } \ No newline at end of file diff --git a/Exiled.Events/Handlers/Warhead.cs b/Exiled.Events/Handlers/Warhead.cs index 9b72b4a24d..8c24061974 100644 --- a/Exiled.Events/Handlers/Warhead.cs +++ b/Exiled.Events/Handlers/Warhead.cs @@ -13,60 +13,60 @@ namespace Exiled.Events.Handlers using Exiled.Events.Features; /// - /// Handles warhead related events. + /// Handles warhead related events. /// public class Warhead { /// - /// Invoked before stopping the warhead. + /// Invoked before stopping the warhead. /// public static Event Stopping { get; set; } = new(); /// - /// Invoked before starting the warhead. + /// Invoked before starting the warhead. /// public static Event Starting { get; set; } = new(); /// - /// Invoked before changing the warhead lever status. + /// Invoked before changing the warhead lever status. /// public static Event ChangingLeverStatus { get; set; } = new(); /// - /// Invoked after the warhead has been detonated. + /// Invoked after the warhead has been detonated. /// public static Event Detonated { get; set; } = new(); /// - /// Invoked before detonating the warhead. + /// Invoked before detonating the warhead. /// public static Event Detonating { get; set; } = new(); /// - /// Called before stopping the warhead. + /// Called before stopping the warhead. /// /// The instance. public static void OnStopping(StoppingEventArgs ev) => Stopping.InvokeSafely(ev); /// - /// Called before starting the warhead. + /// Called before starting the warhead. /// /// The instance. public static void OnStarting(StartingEventArgs ev) => Starting.InvokeSafely(ev); /// - /// Called before changing the warhead lever status. + /// Called before changing the warhead lever status. /// /// The instance. public static void OnChangingLeverStatus(ChangingLeverStatusEventArgs ev) => ChangingLeverStatus.InvokeSafely(ev); /// - /// Called after the warhead has been detonated. + /// Called after the warhead has been detonated. /// public static void OnDetonated() => Detonated.InvokeSafely(); /// - /// Called before detonating the warhead. + /// Called before detonating the warhead. /// /// The instance. public static void OnDetonating(DetonatingEventArgs ev) => Detonating.InvokeSafely(ev); diff --git a/Exiled.Events/Patches/Events/Cassie/SendingCassieMessage.cs b/Exiled.Events/Patches/Events/Cassie/SendingCassieMessage.cs index 127751c7c6..9c49d44972 100644 --- a/Exiled.Events/Patches/Events/Cassie/SendingCassieMessage.cs +++ b/Exiled.Events/Patches/Events/Cassie/SendingCassieMessage.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Cassie using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Cassie), nameof(Cassie.SendingCassieMessage))] [HarmonyPatch(typeof(RespawnEffectsController), nameof(RespawnEffectsController.PlayCassieAnnouncement))] diff --git a/Exiled.Events/Patches/Events/Item/ChangingAmmo.cs b/Exiled.Events/Patches/Events/Item/ChangingAmmo.cs index 4031bda578..e90d812c2e 100644 --- a/Exiled.Events/Patches/Events/Item/ChangingAmmo.cs +++ b/Exiled.Events/Patches/Events/Item/ChangingAmmo.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Item using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Item), nameof(Item.ChangingAmmo))] [HarmonyPatch(typeof(Firearm), nameof(Firearm.Status), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Item/ChangingAttachments.cs b/Exiled.Events/Patches/Events/Item/ChangingAttachments.cs index 8a2ab3fd27..3e49274a00 100644 --- a/Exiled.Events/Patches/Events/Item/ChangingAttachments.cs +++ b/Exiled.Events/Patches/Events/Item/ChangingAttachments.cs @@ -25,9 +25,9 @@ namespace Exiled.Events.Patches.Events.Item using static HarmonyLib.AccessTools; /// - /// Patches - /// . - /// Adds the event. + /// Patches + /// . + /// Adds the event. /// [EventPatch(typeof(Handlers.Item), nameof(Handlers.Item.ChangingAttachments))] [HarmonyPatch(typeof(AttachmentsServerHandler), nameof(AttachmentsServerHandler.ServerReceiveChangeRequest))] diff --git a/Exiled.Events/Patches/Events/Item/JailbirdPatch.cs b/Exiled.Events/Patches/Events/Item/JailbirdPatch.cs index fbbeb7a3e1..ec33236e0d 100644 --- a/Exiled.Events/Patches/Events/Item/JailbirdPatch.cs +++ b/Exiled.Events/Patches/Events/Item/JailbirdPatch.cs @@ -21,9 +21,9 @@ namespace Exiled.Events.Patches.Events.Item using static HarmonyLib.AccessTools; /// - /// Patches - /// . - /// Adds the event and . + /// Patches + /// . + /// Adds the event and . /// [EventPatch(typeof(Item), nameof(Item.Swinging))] [EventPatch(typeof(Item), nameof(Item.ChargingJailbird))] diff --git a/Exiled.Events/Patches/Events/Item/ReceivingPreference.cs b/Exiled.Events/Patches/Events/Item/ReceivingPreference.cs index 4efe28feb1..6d845fffa3 100644 --- a/Exiled.Events/Patches/Events/Item/ReceivingPreference.cs +++ b/Exiled.Events/Patches/Events/Item/ReceivingPreference.cs @@ -27,9 +27,9 @@ namespace Exiled.Events.Patches.Events.Item using Player = API.Features.Player; /// - /// Patches - /// . - /// Adds the event. + /// Patches + /// . + /// Adds the event. /// [EventPatch(typeof(Item), nameof(Item.ReceivingPreference))] [HarmonyPatch(typeof(AttachmentsServerHandler), nameof(AttachmentsServerHandler.ServerReceivePreference))] diff --git a/Exiled.Events/Patches/Events/Item/UsingRadioPickupBattery.cs b/Exiled.Events/Patches/Events/Item/UsingRadioPickupBattery.cs new file mode 100644 index 0000000000..d257ff9738 --- /dev/null +++ b/Exiled.Events/Patches/Events/Item/UsingRadioPickupBattery.cs @@ -0,0 +1,79 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.Patches.Events.Item +{ + using System.Collections.Generic; + using System.Reflection.Emit; + + using Exiled.API.Features.Pools; + using Exiled.Events.EventArgs.Item; + using HarmonyLib; + using InventorySystem.Items.Radio; + + using static HarmonyLib.AccessTools; + + /// + /// Patches + /// to add event. + /// + [HarmonyPatch(typeof(RadioPickup), nameof(RadioPickup.LateUpdate))] + internal class UsingRadioPickupBattery + { + private static IEnumerable Transpiler(IEnumerable instructions, ILGenerator generator) + { + List newInstructions = ListPool.Pool.Get(instructions); + + LocalBuilder ev = generator.DeclareLocal(typeof(UsingRadioPickupBatteryEventArgs)); + + Label continueLabel = generator.DefineLabel(); + + int index = newInstructions.FindIndex(x => x.opcode == OpCodes.Ldloc_1); + + newInstructions.InsertRange( + index, + new[] + { + // this + new(OpCodes.Ldarg_0), + + // num + new(OpCodes.Ldloc_1), + + // true + new(OpCodes.Ldc_I4_1), + + // UsingRadioPickupBatteryEventArgs ev = new(this, num, true); + new(OpCodes.Newobj, GetDeclaredConstructors(typeof(UsingRadioPickupBatteryEventArgs))[0]), + new(OpCodes.Dup), + new(OpCodes.Dup), + new(OpCodes.Stloc_S, ev.LocalIndex), + + // Handlers.Item.OnUsingRadioPickupBattery(ev); + new(OpCodes.Call, Method(typeof(Handlers.Item), nameof(Handlers.Item.OnUsingRadioPickupBattery))), + + // if (ev.IsAllowed) + // goto continueLabel + new(OpCodes.Callvirt, PropertyGetter(typeof(UsingRadioPickupBatteryEventArgs), nameof(UsingRadioPickupBatteryEventArgs.IsAllowed))), + new(OpCodes.Brtrue_S, continueLabel), + + // return + new(OpCodes.Ret), + + // num = ev.Drain; + new CodeInstruction(OpCodes.Ldloc_S, ev.LocalIndex).WithLabels(continueLabel), + new(OpCodes.Callvirt, PropertyGetter(typeof(UsingRadioPickupBatteryEventArgs), nameof(UsingRadioPickupBatteryEventArgs.Drain))), + new(OpCodes.Stloc_1), + }); + + for (int z = 0; z < newInstructions.Count; z++) + yield return newInstructions[z]; + + ListPool.Pool.Return(newInstructions); + } + } +} \ No newline at end of file diff --git a/Exiled.Events/Patches/Events/Map/AnnouncingDecontamination.cs b/Exiled.Events/Patches/Events/Map/AnnouncingDecontamination.cs index 7ee1b2d1fc..14a78a7676 100644 --- a/Exiled.Events/Patches/Events/Map/AnnouncingDecontamination.cs +++ b/Exiled.Events/Patches/Events/Map/AnnouncingDecontamination.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.AnnouncingDecontamination))] [HarmonyPatch(typeof(DecontaminationController), nameof(DecontaminationController.UpdateSpeaker))] diff --git a/Exiled.Events/Patches/Events/Map/AnnouncingNtfEntrance.cs b/Exiled.Events/Patches/Events/Map/AnnouncingNtfEntrance.cs index f0a5c1a917..484516c7f7 100644 --- a/Exiled.Events/Patches/Events/Map/AnnouncingNtfEntrance.cs +++ b/Exiled.Events/Patches/Events/Map/AnnouncingNtfEntrance.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.AnnouncingNtfEntrance))] [HarmonyPatch(typeof(NineTailedFoxNamingRule), nameof(NineTailedFoxNamingRule.PlayEntranceAnnouncement))] diff --git a/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 1963f2b27d..b442452a37 100644 --- a/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -23,9 +23,9 @@ namespace Exiled.Events.Patches.Events.Map using Player = API.Features.Player; /// - /// Patches - /// . - /// Adds the event. + /// Patches + /// . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.AnnouncingScpTermination))] [HarmonyPatch(typeof(NineTailedFoxAnnouncer), nameof(NineTailedFoxAnnouncer.AnnounceScpTermination))] diff --git a/Exiled.Events/Patches/Events/Map/BreakingScp2176.cs b/Exiled.Events/Patches/Events/Map/BreakingScp2176.cs index 38c63853d0..9b0c2cb5c5 100644 --- a/Exiled.Events/Patches/Events/Map/BreakingScp2176.cs +++ b/Exiled.Events/Patches/Events/Map/BreakingScp2176.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Map using Map = Handlers.Map; /// - /// Patches . - /// Supplements the event. + /// Patches . + /// Supplements the event. /// [EventPatch(typeof(Map), nameof(Map.ExplodingGrenade))] [HarmonyPatch(typeof(Scp2176Projectile), nameof(Scp2176Projectile.ServerShatter))] diff --git a/Exiled.Events/Patches/Events/Map/ChangingIntoGrenade.cs b/Exiled.Events/Patches/Events/Map/ChangingIntoGrenade.cs index 8f5d30e3d5..5b806d5b10 100644 --- a/Exiled.Events/Patches/Events/Map/ChangingIntoGrenade.cs +++ b/Exiled.Events/Patches/Events/Map/ChangingIntoGrenade.cs @@ -29,8 +29,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the and events. + /// Patches . + /// Adds the and events. /// [EventPatch(typeof(Map), nameof(Map.ChangingIntoGrenade))] [EventPatch(typeof(Map), nameof(Map.ChangedIntoGrenade))] diff --git a/Exiled.Events/Patches/Events/Map/Decontaminating.cs b/Exiled.Events/Patches/Events/Map/Decontaminating.cs index d53935d062..ccea1a251e 100644 --- a/Exiled.Events/Patches/Events/Map/Decontaminating.cs +++ b/Exiled.Events/Patches/Events/Map/Decontaminating.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.Decontaminating))] [HarmonyPatch(typeof(DecontaminationController), nameof(DecontaminationController.FinishDecontamination))] diff --git a/Exiled.Events/Patches/Events/Map/FillingLocker.cs b/Exiled.Events/Patches/Events/Map/FillingLocker.cs index b1b4c8bccd..8d3a53ace7 100644 --- a/Exiled.Events/Patches/Events/Map/FillingLocker.cs +++ b/Exiled.Events/Patches/Events/Map/FillingLocker.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Map), nameof(Handlers.Map.FillingLocker))] [HarmonyPatch(typeof(LockerChamber), nameof(LockerChamber.SpawnItem))] diff --git a/Exiled.Events/Patches/Events/Map/GeneratorActivating.cs b/Exiled.Events/Patches/Events/Map/GeneratorActivating.cs index 32f1c23ac4..e483353adb 100644 --- a/Exiled.Events/Patches/Events/Map/GeneratorActivating.cs +++ b/Exiled.Events/Patches/Events/Map/GeneratorActivating.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.GeneratorActivating))] [HarmonyPatch(typeof(Scp079Generator), nameof(Scp079Generator.Engaged), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Map/PlacingBulletHole.cs b/Exiled.Events/Patches/Events/Map/PlacingBulletHole.cs index 173267283e..9431ddb4df 100644 --- a/Exiled.Events/Patches/Events/Map/PlacingBulletHole.cs +++ b/Exiled.Events/Patches/Events/Map/PlacingBulletHole.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Map using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.PlacingBulletHole))] [HarmonyPatch(typeof(StandardHitregBase), nameof(StandardHitregBase.PlaceBulletholeDecal))] diff --git a/Exiled.Events/Patches/Events/Map/SpawningItem.cs b/Exiled.Events/Patches/Events/Map/SpawningItem.cs index 62882159c9..ff3cd57626 100644 --- a/Exiled.Events/Patches/Events/Map/SpawningItem.cs +++ b/Exiled.Events/Patches/Events/Map/SpawningItem.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Map using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Map), nameof(Map.SpawningItem))] [HarmonyPatch(typeof(ItemDistributor), nameof(ItemDistributor.CreatePickup))] diff --git a/Exiled.Events/Patches/Events/Player/ActivatingWarheadPanel.cs b/Exiled.Events/Patches/Events/Player/ActivatingWarheadPanel.cs index ffc7665ea3..4a3d790b19 100644 --- a/Exiled.Events/Patches/Events/Player/ActivatingWarheadPanel.cs +++ b/Exiled.Events/Patches/Events/Player/ActivatingWarheadPanel.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ActivatingWarheadPanel))] [HarmonyPatch(typeof(PlayerInteract), nameof(PlayerInteract.UserCode_CmdSwitchAWButton))] diff --git a/Exiled.Events/Patches/Events/Player/ActivatingWorkstation.cs b/Exiled.Events/Patches/Events/Player/ActivatingWorkstation.cs index 9eed28a67d..4ee58f8ecd 100644 --- a/Exiled.Events/Patches/Events/Player/ActivatingWorkstation.cs +++ b/Exiled.Events/Patches/Events/Player/ActivatingWorkstation.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ActivatingWorkstation))] [HarmonyPatch(typeof(WorkstationController), nameof(WorkstationController.ServerInteract))] diff --git a/Exiled.Events/Patches/Events/Player/Banned.cs b/Exiled.Events/Patches/Events/Player/Banned.cs index 8b166e5062..d06cdcf2f2 100644 --- a/Exiled.Events/Patches/Events/Player/Banned.cs +++ b/Exiled.Events/Patches/Events/Player/Banned.cs @@ -20,8 +20,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Banned))] [HarmonyPatch(typeof(BanHandler), nameof(BanHandler.IssueBan))] diff --git a/Exiled.Events/Patches/Events/Player/Banning.cs b/Exiled.Events/Patches/Events/Player/Banning.cs index 177eab623f..9873b079bb 100644 --- a/Exiled.Events/Patches/Events/Player/Banning.cs +++ b/Exiled.Events/Patches/Events/Player/Banning.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Banning))] [HarmonyPatch(typeof(BanPlayer), nameof(BanPlayer.BanUser), typeof(Footprint), typeof(ICommandSender), typeof(string), typeof(long))] diff --git a/Exiled.Events/Patches/Events/Player/ChangedItem.cs b/Exiled.Events/Patches/Events/Player/ChangedItem.cs index b31f4c54e1..1fe58b8765 100644 --- a/Exiled.Events/Patches/Events/Player/ChangedItem.cs +++ b/Exiled.Events/Patches/Events/Player/ChangedItem.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ChangedItem))] [HarmonyPatch(typeof(Inventory), nameof(Inventory.CurInstance), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Player/ChangingGroup.cs b/Exiled.Events/Patches/Events/Player/ChangingGroup.cs index 9d53ec16ef..cf179dfc5d 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingGroup.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingGroup.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ChangingGroup))] [HarmonyPatch(typeof(ServerRoles), nameof(ServerRoles.SetGroup))] diff --git a/Exiled.Events/Patches/Events/Player/ChangingItem.cs b/Exiled.Events/Patches/Events/Player/ChangingItem.cs index f24c1c4aec..323c7c1b17 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingItem.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingItem.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ChangingItem))] [HarmonyPatch(typeof(Inventory), nameof(Inventory.ServerSelectItem))] diff --git a/Exiled.Events/Patches/Events/Player/ChangingMoveState.cs b/Exiled.Events/Patches/Events/Player/ChangingMoveState.cs index 24f82f790e..61d05c0aa7 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingMoveState.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingMoveState.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches setter. - /// Adds the event. + /// Patches setter. + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.ChangingMoveState))] [HarmonyPatch(typeof(FirstPersonMovementModule), nameof(FirstPersonMovementModule.SyncMovementState), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Player/ChangingRadioPreset.cs b/Exiled.Events/Patches/Events/Player/ChangingRadioPreset.cs index c76e77ee36..1199215c81 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingRadioPreset.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingRadioPreset.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ChangingRadioPreset))] [HarmonyPatch(typeof(RadioItem), nameof(RadioItem.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Player/ChangingRoleAndSpawned.cs b/Exiled.Events/Patches/Events/Player/ChangingRoleAndSpawned.cs index 9d44bd278e..786842b5bc 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingRoleAndSpawned.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingRoleAndSpawned.cs @@ -31,8 +31,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = Handlers.Player; /// - /// Patches - /// Adds the event. + /// Patches + /// Adds the event. /// [HarmonyPatch(typeof(PlayerRoleManager), nameof(PlayerRoleManager.InitializeNewRole))] internal static class ChangingRoleAndSpawned diff --git a/Exiled.Events/Patches/Events/Player/ChangingSpectatedPlayerPatch.cs b/Exiled.Events/Patches/Events/Player/ChangingSpectatedPlayerPatch.cs index 9a7eeac96b..c7f14f9553 100644 --- a/Exiled.Events/Patches/Events/Player/ChangingSpectatedPlayerPatch.cs +++ b/Exiled.Events/Patches/Events/Player/ChangingSpectatedPlayerPatch.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches setter. - /// Adds the . + /// Patches setter. + /// Adds the . /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ChangingSpectatedPlayer))] [HarmonyPatch(typeof(SpectatorRole), nameof(SpectatorRole.SyncedSpectatedNetId), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Player/DamagingDoor.cs b/Exiled.Events/Patches/Events/Player/DamagingDoor.cs index 154a8bac88..9fb8aa9364 100644 --- a/Exiled.Events/Patches/Events/Player/DamagingDoor.cs +++ b/Exiled.Events/Patches/Events/Player/DamagingDoor.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.DamagingDoor))] [HarmonyPatch(typeof(BreakableDoor), nameof(BreakableDoor.ServerDamage))] diff --git a/Exiled.Events/Patches/Events/Player/DamagingShootingTarget.cs b/Exiled.Events/Patches/Events/Player/DamagingShootingTarget.cs index 5ee191c36e..9b73611eb9 100644 --- a/Exiled.Events/Patches/Events/Player/DamagingShootingTarget.cs +++ b/Exiled.Events/Patches/Events/Player/DamagingShootingTarget.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.DamagingShootingTarget))] [HarmonyPatch(typeof(ShootingTarget), nameof(ShootingTarget.Damage))] diff --git a/Exiled.Events/Patches/Events/Player/DamagingWindow.cs b/Exiled.Events/Patches/Events/Player/DamagingWindow.cs index da47ea73da..fe342e84c3 100644 --- a/Exiled.Events/Patches/Events/Player/DamagingWindow.cs +++ b/Exiled.Events/Patches/Events/Player/DamagingWindow.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.PlayerDamageWindow))] [HarmonyPatch(typeof(BreakableWindow), nameof(BreakableWindow.Damage))] diff --git a/Exiled.Events/Patches/Events/Player/DeactivatingWorkstation.cs b/Exiled.Events/Patches/Events/Player/DeactivatingWorkstation.cs index 4a1cc6da26..eee14bf646 100644 --- a/Exiled.Events/Patches/Events/Player/DeactivatingWorkstation.cs +++ b/Exiled.Events/Patches/Events/Player/DeactivatingWorkstation.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.DeactivatingWorkstation))] [HarmonyPatch(typeof(WorkstationController), nameof(WorkstationController.NetworkStatus), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Player/Destroying.cs b/Exiled.Events/Patches/Events/Player/Destroying.cs index 0c96d0d7c6..ad1d84480c 100644 --- a/Exiled.Events/Patches/Events/Player/Destroying.cs +++ b/Exiled.Events/Patches/Events/Player/Destroying.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [HarmonyPatch(typeof(ReferenceHub), nameof(ReferenceHub.OnDestroy))] internal static class Destroying diff --git a/Exiled.Events/Patches/Events/Player/DroppingAmmo.cs b/Exiled.Events/Patches/Events/Player/DroppingAmmo.cs index 940a386041..c67b70d030 100644 --- a/Exiled.Events/Patches/Events/Player/DroppingAmmo.cs +++ b/Exiled.Events/Patches/Events/Player/DroppingAmmo.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - ///
Adds the and events.
+ /// Patches . + ///
Adds the and events.
///
[EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.DroppingAmmo))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.DroppedAmmo))] diff --git a/Exiled.Events/Patches/Events/Player/DroppingItem.cs b/Exiled.Events/Patches/Events/Player/DroppingItem.cs index a522e1a38b..0e03115329 100644 --- a/Exiled.Events/Patches/Events/Player/DroppingItem.cs +++ b/Exiled.Events/Patches/Events/Player/DroppingItem.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = Handlers.Player; /// - /// Patches . - ///
Adds the , and events.
+ /// Patches . + ///
Adds the , and events.
///
[EventPatch(typeof(Player), nameof(Player.DroppingItem))] [EventPatch(typeof(Player), nameof(Player.DroppingNothing))] diff --git a/Exiled.Events/Patches/Events/Player/DyingAndDied.cs b/Exiled.Events/Patches/Events/Player/DyingAndDied.cs index 15791f9724..ea11377759 100644 --- a/Exiled.Events/Patches/Events/Player/DyingAndDied.cs +++ b/Exiled.Events/Patches/Events/Player/DyingAndDied.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the and event. + /// Patches . + /// Adds the and event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Dying))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Died))] diff --git a/Exiled.Events/Patches/Events/Player/EarningAchievement.cs b/Exiled.Events/Patches/Events/Player/EarningAchievement.cs index 1ab73c1ce9..a818a39863 100644 --- a/Exiled.Events/Patches/Events/Player/EarningAchievement.cs +++ b/Exiled.Events/Patches/Events/Player/EarningAchievement.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.EarningAchievement))] [HarmonyPatch(typeof(AchievementHandlerBase), nameof(AchievementHandlerBase.ServerAchieve))] diff --git a/Exiled.Events/Patches/Events/Player/EnteringPocketDimension.cs b/Exiled.Events/Patches/Events/Player/EnteringPocketDimension.cs index 2f35679cb8..1dabf6e26e 100644 --- a/Exiled.Events/Patches/Events/Player/EnteringPocketDimension.cs +++ b/Exiled.Events/Patches/Events/Player/EnteringPocketDimension.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.EnteringPocketDimension))] [HarmonyPatch(typeof(Scp106Attack), nameof(Scp106Attack.ServerShoot))] diff --git a/Exiled.Events/Patches/Events/Player/FailingEscapePocketDimension.cs b/Exiled.Events/Patches/Events/Player/FailingEscapePocketDimension.cs index f836e53d0b..f8b08b74a3 100644 --- a/Exiled.Events/Patches/Events/Player/FailingEscapePocketDimension.cs +++ b/Exiled.Events/Patches/Events/Player/FailingEscapePocketDimension.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.FailingEscapePocketDimension))] [HarmonyPatch(typeof(PocketDimensionTeleport), nameof(PocketDimensionTeleport.OnTriggerEnter))] diff --git a/Exiled.Events/Patches/Events/Player/FirearmRequestReceived.cs b/Exiled.Events/Patches/Events/Player/FirearmRequestReceived.cs index d763be3d41..6ebd931f4e 100644 --- a/Exiled.Events/Patches/Events/Player/FirearmRequestReceived.cs +++ b/Exiled.Events/Patches/Events/Player/FirearmRequestReceived.cs @@ -28,10 +28,10 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds , , - /// , and - /// events. + /// Patches . + /// Adds , , + /// , and + /// events. /// [EventPatch(typeof(Player), nameof(Player.ReloadingWeapon))] [EventPatch(typeof(Player), nameof(Player.UnloadingWeapon))] diff --git a/Exiled.Events/Patches/Events/Player/FlippingCoin.cs b/Exiled.Events/Patches/Events/Player/FlippingCoin.cs index d523022b52..96756f3545 100644 --- a/Exiled.Events/Patches/Events/Player/FlippingCoin.cs +++ b/Exiled.Events/Patches/Events/Player/FlippingCoin.cs @@ -22,9 +22,9 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches - /// . - /// Adds the event. + /// Patches + /// . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.FlippingCoin))] [HarmonyPatch(typeof(Coin), nameof(Coin.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Player/Hurting.cs b/Exiled.Events/Patches/Events/Player/Hurting.cs index 609b03dff1..73e8ea4a45 100644 --- a/Exiled.Events/Patches/Events/Player/Hurting.cs +++ b/Exiled.Events/Patches/Events/Player/Hurting.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = API.Features.Player; /// - /// Patches . - /// Adds the event and event. + /// Patches . + /// Adds the event and event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Hurting))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Hurt))] diff --git a/Exiled.Events/Patches/Events/Player/Interacted.cs b/Exiled.Events/Patches/Events/Player/Interacted.cs index 6a10abc85b..d6e0d637ef 100644 --- a/Exiled.Events/Patches/Events/Player/Interacted.cs +++ b/Exiled.Events/Patches/Events/Player/Interacted.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Interacted))] [HarmonyPatch(typeof(PlayerInteract), nameof(PlayerInteract.OnInteract))] diff --git a/Exiled.Events/Patches/Events/Player/InteractingDoor.cs b/Exiled.Events/Patches/Events/Player/InteractingDoor.cs index 8ab8d2c0fa..6f491b8118 100644 --- a/Exiled.Events/Patches/Events/Player/InteractingDoor.cs +++ b/Exiled.Events/Patches/Events/Player/InteractingDoor.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.InteractingDoor))] [HarmonyPatch(typeof(DoorVariant), nameof(DoorVariant.ServerInteract), typeof(ReferenceHub), typeof(byte))] diff --git a/Exiled.Events/Patches/Events/Player/InteractingElevator.cs b/Exiled.Events/Patches/Events/Player/InteractingElevator.cs index f15f4d527e..1889f29dca 100644 --- a/Exiled.Events/Patches/Events/Player/InteractingElevator.cs +++ b/Exiled.Events/Patches/Events/Player/InteractingElevator.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.InteractingElevator))] [HarmonyPatch(typeof(ElevatorManager), nameof(ElevatorManager.ServerReceiveMessage))] diff --git a/Exiled.Events/Patches/Events/Player/InteractingLocker.cs b/Exiled.Events/Patches/Events/Player/InteractingLocker.cs index 083e310b0b..b706f067f9 100644 --- a/Exiled.Events/Patches/Events/Player/InteractingLocker.cs +++ b/Exiled.Events/Patches/Events/Player/InteractingLocker.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.InteractingLocker))] [HarmonyPatch(typeof(Locker), nameof(Locker.ServerInteract))] diff --git a/Exiled.Events/Patches/Events/Player/InteractingShootingTarget.cs b/Exiled.Events/Patches/Events/Player/InteractingShootingTarget.cs index a98188295f..e2cc9661ab 100644 --- a/Exiled.Events/Patches/Events/Player/InteractingShootingTarget.cs +++ b/Exiled.Events/Patches/Events/Player/InteractingShootingTarget.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Player using BaseTarget = AdminToys.ShootingTarget; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.InteractingShootingTarget))] [HarmonyPatch(typeof(BaseTarget), nameof(BaseTarget.ServerInteract))] diff --git a/Exiled.Events/Patches/Events/Player/IntercomSpeaking.cs b/Exiled.Events/Patches/Events/Player/IntercomSpeaking.cs index 8c2248195c..5079a776c1 100644 --- a/Exiled.Events/Patches/Events/Player/IntercomSpeaking.cs +++ b/Exiled.Events/Patches/Events/Player/IntercomSpeaking.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.IntercomSpeaking))] [HarmonyPatch(typeof(Intercom), nameof(Intercom.Update))] diff --git a/Exiled.Events/Patches/Events/Player/IssuingMute.cs b/Exiled.Events/Patches/Events/Player/IssuingMute.cs index c90fe93b9e..7fd44db040 100644 --- a/Exiled.Events/Patches/Events/Player/IssuingMute.cs +++ b/Exiled.Events/Patches/Events/Player/IssuingMute.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.IssuingMute))] [HarmonyPatch(typeof(VoiceChatMutes), nameof(VoiceChatMutes.IssueLocalMute))] diff --git a/Exiled.Events/Patches/Events/Player/Joined.cs b/Exiled.Events/Patches/Events/Player/Joined.cs index 8b580bd503..639da9e03f 100644 --- a/Exiled.Events/Patches/Events/Player/Joined.cs +++ b/Exiled.Events/Patches/Events/Player/Joined.cs @@ -19,8 +19,8 @@ namespace Exiled.Events.Patches.Events.Player using HarmonyLib; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(ReferenceHub), nameof(ReferenceHub.Start))] internal static class Joined diff --git a/Exiled.Events/Patches/Events/Player/Jumping.cs b/Exiled.Events/Patches/Events/Player/Jumping.cs index aa6c266c86..460867460e 100644 --- a/Exiled.Events/Patches/Events/Player/Jumping.cs +++ b/Exiled.Events/Patches/Events/Player/Jumping.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches - /// Adds the event. + /// Patches + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.Jumping))] [HarmonyPatch(typeof(FpcMotor), nameof(FpcMotor.UpdateGrounded))] diff --git a/Exiled.Events/Patches/Events/Player/Kicked.cs b/Exiled.Events/Patches/Events/Player/Kicked.cs index ebb25c6f1e..b3934543ca 100644 --- a/Exiled.Events/Patches/Events/Player/Kicked.cs +++ b/Exiled.Events/Patches/Events/Player/Kicked.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Kicked))] [HarmonyPatch(typeof(ServerConsole), nameof(ServerConsole.Disconnect), typeof(GameObject), typeof(string))] diff --git a/Exiled.Events/Patches/Events/Player/Kicking.cs b/Exiled.Events/Patches/Events/Player/Kicking.cs index 68aa9a3d4e..0a9286933b 100644 --- a/Exiled.Events/Patches/Events/Player/Kicking.cs +++ b/Exiled.Events/Patches/Events/Player/Kicking.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Kicking))] [HarmonyPatch(typeof(BanPlayer), nameof(BanPlayer.KickUser), typeof(ReferenceHub), typeof(ICommandSender), typeof(string))] diff --git a/Exiled.Events/Patches/Events/Player/Landing.cs b/Exiled.Events/Patches/Events/Player/Landing.cs index 21b3b06622..4656f0531a 100644 --- a/Exiled.Events/Patches/Events/Player/Landing.cs +++ b/Exiled.Events/Patches/Events/Player/Landing.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches - /// Adds the event. + /// Patches + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.Landing))] [HarmonyPatch(typeof(AnimatedCharacterModel), nameof(AnimatedCharacterModel.OnGrounded))] diff --git a/Exiled.Events/Patches/Events/Player/Left.cs b/Exiled.Events/Patches/Events/Player/Left.cs index 70daafe154..2e808334db 100644 --- a/Exiled.Events/Patches/Events/Player/Left.cs +++ b/Exiled.Events/Patches/Events/Player/Left.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(CustomNetworkManager), nameof(CustomNetworkManager.OnServerDisconnect), typeof(NetworkConnectionToClient))] internal static class Left diff --git a/Exiled.Events/Patches/Events/Player/PickingUp330.cs b/Exiled.Events/Patches/Events/Player/PickingUp330.cs index c6be7d7bf5..ab6dd6bab2 100644 --- a/Exiled.Events/Patches/Events/Player/PickingUp330.cs +++ b/Exiled.Events/Patches/Events/Player/PickingUp330.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = API.Features.Player; /// - /// Patches the method to add the - /// event. + /// Patches the method to add the + /// event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.PickingUpItem))] [HarmonyPatch(typeof(Scp330Bag), nameof(Scp330Bag.ServerProcessPickup))] diff --git a/Exiled.Events/Patches/Events/Player/PickingUpAmmo.cs b/Exiled.Events/Patches/Events/Player/PickingUpAmmo.cs index af8784195c..c548bdd6d5 100644 --- a/Exiled.Events/Patches/Events/Player/PickingUpAmmo.cs +++ b/Exiled.Events/Patches/Events/Player/PickingUpAmmo.cs @@ -22,7 +22,7 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches for the event. + /// Patches for the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.PickingUpItem))] [HarmonyPatch(typeof(AmmoSearchCompletor), nameof(AmmoSearchCompletor.Complete))] diff --git a/Exiled.Events/Patches/Events/Player/PickingUpArmor.cs b/Exiled.Events/Patches/Events/Player/PickingUpArmor.cs index 85e395ec8a..baccd89d6c 100644 --- a/Exiled.Events/Patches/Events/Player/PickingUpArmor.cs +++ b/Exiled.Events/Patches/Events/Player/PickingUpArmor.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches the method to add the - /// event. + /// Patches the method to add the + /// event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.PickingUpItem))] [HarmonyPatch(typeof(ArmorSearchCompletor), nameof(ArmorSearchCompletor.Complete))] diff --git a/Exiled.Events/Patches/Events/Player/PickingUpItem.cs b/Exiled.Events/Patches/Events/Player/PickingUpItem.cs index 879cc3196c..78e3611591 100644 --- a/Exiled.Events/Patches/Events/Player/PickingUpItem.cs +++ b/Exiled.Events/Patches/Events/Player/PickingUpItem.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.PickingUpItem))] [HarmonyPatch(typeof(ItemSearchCompletor), nameof(ItemSearchCompletor.Complete))] diff --git a/Exiled.Events/Patches/Events/Player/PickingUpScp244.cs b/Exiled.Events/Patches/Events/Player/PickingUpScp244.cs index 7d5792d91e..13f634563c 100644 --- a/Exiled.Events/Patches/Events/Player/PickingUpScp244.cs +++ b/Exiled.Events/Patches/Events/Player/PickingUpScp244.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = API.Features.Player; /// - /// Patches to add missing event handler to the - /// . + /// Patches to add missing event handler to the + /// . /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.PickingUpItem))] [HarmonyPatch(typeof(Scp244SearchCompletor), nameof(Scp244SearchCompletor.Complete))] diff --git a/Exiled.Events/Patches/Events/Player/ProcessDisarmMessage.cs b/Exiled.Events/Patches/Events/Player/ProcessDisarmMessage.cs index 4c0414ec38..bd83c19e9e 100644 --- a/Exiled.Events/Patches/Events/Player/ProcessDisarmMessage.cs +++ b/Exiled.Events/Patches/Events/Player/ProcessDisarmMessage.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the and events. + /// Patches . + /// Adds the and events. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Handcuffing))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.RemovingHandcuffs))] diff --git a/Exiled.Events/Patches/Events/Player/ReservedSlotPatch.cs b/Exiled.Events/Patches/Events/Player/ReservedSlotPatch.cs index f5905d0e6a..4eeba0e171 100644 --- a/Exiled.Events/Patches/Events/Player/ReservedSlotPatch.cs +++ b/Exiled.Events/Patches/Events/Player/ReservedSlotPatch.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Player), nameof(Player.ReservedSlot))] [HarmonyPatch(typeof(ReservedSlot), nameof(ReservedSlot.HasReservedSlot))] diff --git a/Exiled.Events/Patches/Events/Player/RevokingMute.cs b/Exiled.Events/Patches/Events/Player/RevokingMute.cs index 11ff0183bf..1fcf9855e1 100644 --- a/Exiled.Events/Patches/Events/Player/RevokingMute.cs +++ b/Exiled.Events/Patches/Events/Player/RevokingMute.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.RevokingMute))] [HarmonyPatch(typeof(VoiceChatMutes), nameof(VoiceChatMutes.RevokeLocalMute))] diff --git a/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs b/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs index a20a1d7419..9973366af4 100644 --- a/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs +++ b/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.SearchingPickup))] [HarmonyPatch(typeof(SearchCoordinator), nameof(SearchCoordinator.ReceiveRequestUnsafe))] diff --git a/Exiled.Events/Patches/Events/Player/SendingAdminChatMessage.cs b/Exiled.Events/Patches/Events/Player/SendingAdminChatMessage.cs index 6aa7f5f778..0508de5c28 100644 --- a/Exiled.Events/Patches/Events/Player/SendingAdminChatMessage.cs +++ b/Exiled.Events/Patches/Events/Player/SendingAdminChatMessage.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.SendingAdminChatMessage))] [HarmonyPatch(typeof(CommandProcessor), nameof(CommandProcessor.ProcessAdminChat))] diff --git a/Exiled.Events/Patches/Events/Player/Shooting.cs b/Exiled.Events/Patches/Events/Player/Shooting.cs index ef2bfab3c8..cc54f72fa7 100644 --- a/Exiled.Events/Patches/Events/Player/Shooting.cs +++ b/Exiled.Events/Patches/Events/Player/Shooting.cs @@ -11,24 +11,21 @@ namespace Exiled.Events.Patches.Events.Player using System.Reflection.Emit; using API.Features; - using API.Features.Items; using API.Features.Pools; - using CustomPlayerEffects; - using Exiled.Events.Attributes; using Exiled.Events.EventArgs.Player; using HarmonyLib; - using InventorySystem.Items; using InventorySystem.Items.Firearms.BasicMessages; + using InventorySystem.Items.Firearms.Modules; using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the events. + /// Patches . + /// Adds the events. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Shooting))] [HarmonyPatch(typeof(FirearmBasicMessagesHandler), nameof(FirearmBasicMessagesHandler.ServerShotReceived))] @@ -42,11 +39,9 @@ private static IEnumerable Transpiler(IEnumerable instruction.Calls(Method(typeof(SpawnProtected), nameof(SpawnProtected.CheckPlayer)))) + offset; + int offset = -2; + int index = newInstructions.FindIndex(instruction => instruction.Calls(Method(typeof(IActionModule), nameof(IActionModule.ServerAuthorizeShot)))) + offset; newInstructions.InsertRange( index, @@ -55,29 +50,9 @@ private static IEnumerable Transpiler(IEnumerable Transpiler(IEnumerable - /// Patches . - /// Adds the events. + /// Patches . + /// Adds the events. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Shot))] [HarmonyPatch(typeof(SingleBulletHitreg), nameof(SingleBulletHitreg.ServerProcessRaycastHit))] @@ -143,8 +143,8 @@ private static IEnumerable Transpiler(IEnumerable - /// Patches . - /// Adds the events. + /// Patches . + /// Adds the events. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Shot))] [HarmonyPatch(typeof(BuckshotHitreg), nameof(BuckshotHitreg.ShootPellet))] @@ -230,8 +230,8 @@ private static IEnumerable Transpiler(IEnumerable - /// Patches . - /// Adds the events. + /// Patches . + /// Adds the events. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Shot))] [HarmonyPatch(typeof(DisruptorHitreg), nameof(DisruptorHitreg.ServerPerformShot))] diff --git a/Exiled.Events/Patches/Events/Player/SpawningRagdoll.cs b/Exiled.Events/Patches/Events/Player/SpawningRagdoll.cs index e716dfb451..39f5179cef 100644 --- a/Exiled.Events/Patches/Events/Player/SpawningRagdoll.cs +++ b/Exiled.Events/Patches/Events/Player/SpawningRagdoll.cs @@ -27,8 +27,8 @@ namespace Exiled.Events.Patches.Events.Player using Player = Handlers.Player; /// - /// Patches . - ///
Adds the and events.
+ /// Patches . + ///
Adds the and events.
///
[EventPatch(typeof(Player), nameof(Player.SpawningRagdoll))] [EventPatch(typeof(Player), nameof(Player.SpawnedRagdoll))] diff --git a/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs b/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs index 90afa8d723..2d882562fc 100644 --- a/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs +++ b/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.ThrowingRequest))] [HarmonyPatch(typeof(ThrowableNetworkHandler), nameof(ThrowableNetworkHandler.ServerProcessRequest))] diff --git a/Exiled.Events/Patches/Events/Player/TogglingFlashlight.cs b/Exiled.Events/Patches/Events/Player/TogglingFlashlight.cs index 9fd1328522..becb70fc98 100644 --- a/Exiled.Events/Patches/Events/Player/TogglingFlashlight.cs +++ b/Exiled.Events/Patches/Events/Player/TogglingFlashlight.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.TogglingFlashlight))] [HarmonyPatch(typeof(FlashlightNetworkHandler), nameof(FlashlightNetworkHandler.ServerProcessMessage))] diff --git a/Exiled.Events/Patches/Events/Player/TogglingNoClip.cs b/Exiled.Events/Patches/Events/Player/TogglingNoClip.cs index b541a3dd71..6af54c2c0b 100644 --- a/Exiled.Events/Patches/Events/Player/TogglingNoClip.cs +++ b/Exiled.Events/Patches/Events/Player/TogglingNoClip.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// patches to add the - /// event. + /// patches to add the + /// event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.TogglingNoClip))] [HarmonyPatch(typeof(FpcNoclipToggleMessage), nameof(FpcNoclipToggleMessage.ProcessMessage))] diff --git a/Exiled.Events/Patches/Events/Player/Transmitting.cs b/Exiled.Events/Patches/Events/Player/Transmitting.cs index 10dcc2a9a3..9f254c4105 100644 --- a/Exiled.Events/Patches/Events/Player/Transmitting.cs +++ b/Exiled.Events/Patches/Events/Player/Transmitting.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Transmitting))] [HarmonyPatch(typeof(PersonalRadioPlayback), nameof(PersonalRadioPlayback.Update))] diff --git a/Exiled.Events/Patches/Events/Player/TriggeringTesla.cs b/Exiled.Events/Patches/Events/Player/TriggeringTesla.cs index a5b9ea2e4e..50f9b285a3 100644 --- a/Exiled.Events/Patches/Events/Player/TriggeringTesla.cs +++ b/Exiled.Events/Patches/Events/Player/TriggeringTesla.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using BaseTeslaGate = TeslaGate; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(TeslaGateController), nameof(TeslaGateController.FixedUpdate))] internal static class TriggeringTesla diff --git a/Exiled.Events/Patches/Events/Player/UsingAndCancellingItemUse.cs b/Exiled.Events/Patches/Events/Player/UsingAndCancellingItemUse.cs index af583cde3b..9004441dc8 100644 --- a/Exiled.Events/Patches/Events/Player/UsingAndCancellingItemUse.cs +++ b/Exiled.Events/Patches/Events/Player/UsingAndCancellingItemUse.cs @@ -25,10 +25,10 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event, - /// event and - /// event. + /// Patches . + /// Adds the event, + /// event and + /// event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.CancellingItemUse))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.UsingItem))] diff --git a/Exiled.Events/Patches/Events/Player/UsingItemCompleted.cs b/Exiled.Events/Patches/Events/Player/UsingItemCompleted.cs index e366b55dd5..c884e213c3 100644 --- a/Exiled.Events/Patches/Events/Player/UsingItemCompleted.cs +++ b/Exiled.Events/Patches/Events/Player/UsingItemCompleted.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Player #pragma warning disable SA1600 // Elements should be documented /// - /// Patches - /// Adds the event. + /// Patches + /// Adds the event. /// [HarmonyPatch(typeof(UsableItemsController), nameof(UsableItemsController.Update))] internal static class UsingItemCompleted diff --git a/Exiled.Events/Patches/Events/Player/UsingMicroHIDEnergy.cs b/Exiled.Events/Patches/Events/Player/UsingMicroHIDEnergy.cs index 0ae2849afd..c7ca375c0b 100644 --- a/Exiled.Events/Patches/Events/Player/UsingMicroHIDEnergy.cs +++ b/Exiled.Events/Patches/Events/Player/UsingMicroHIDEnergy.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.UsingMicroHIDEnergy))] [HarmonyPatch(typeof(MicroHIDItem), nameof(MicroHIDItem.ExecuteServerside))] diff --git a/Exiled.Events/Patches/Events/Player/UsingRadioBattery.cs b/Exiled.Events/Patches/Events/Player/UsingRadioBattery.cs index c81e2ed362..b4a52b2ebe 100644 --- a/Exiled.Events/Patches/Events/Player/UsingRadioBattery.cs +++ b/Exiled.Events/Patches/Events/Player/UsingRadioBattery.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.UsingRadioBattery))] [HarmonyPatch(typeof(RadioItem), nameof(RadioItem.Update))] diff --git a/Exiled.Events/Patches/Events/Player/Verified.cs b/Exiled.Events/Patches/Events/Player/Verified.cs index e1e5acbc35..585457a438 100644 --- a/Exiled.Events/Patches/Events/Player/Verified.cs +++ b/Exiled.Events/Patches/Events/Player/Verified.cs @@ -19,8 +19,8 @@ namespace Exiled.Events.Patches.Events.Player #pragma warning disable SA1313 // Parameter names should begin with lower-case letter /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(PlayerAuthenticationManager), nameof(PlayerAuthenticationManager.FinalizeAuthentication))] internal static class Verified diff --git a/Exiled.Events/Patches/Events/Scp049/ActivatingSense.cs b/Exiled.Events/Patches/Events/Scp049/ActivatingSense.cs index 63f2a1baf1..26742a5248 100644 --- a/Exiled.Events/Patches/Events/Scp049/ActivatingSense.cs +++ b/Exiled.Events/Patches/Events/Scp049/ActivatingSense.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Scp049 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(Scp049SenseAbility), nameof(Scp049SenseAbility.ServerProcessCmd))] public class ActivatingSense diff --git a/Exiled.Events/Patches/Events/Scp049/FinishingRecall.cs b/Exiled.Events/Patches/Events/Scp049/FinishingRecall.cs index 82e684ed7c..2eab40acc5 100644 --- a/Exiled.Events/Patches/Events/Scp049/FinishingRecall.cs +++ b/Exiled.Events/Patches/Events/Scp049/FinishingRecall.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp049 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp049), nameof(Handlers.Scp049.FinishingRecall))] [HarmonyPatch(typeof(Scp049ResurrectAbility), nameof(Scp049ResurrectAbility.ServerComplete))] diff --git a/Exiled.Events/Patches/Events/Scp049/SendingCall.cs b/Exiled.Events/Patches/Events/Scp049/SendingCall.cs index 62e9a454ed..058cc4c2b4 100644 --- a/Exiled.Events/Patches/Events/Scp049/SendingCall.cs +++ b/Exiled.Events/Patches/Events/Scp049/SendingCall.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp049 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [HarmonyPatch(typeof(Scp049CallAbility), nameof(Scp049CallAbility.ServerProcessCmd))] public class SendingCall diff --git a/Exiled.Events/Patches/Events/Scp0492/Consumed.cs b/Exiled.Events/Patches/Events/Scp0492/Consumed.cs index dcf7882fb9..6739dce607 100644 --- a/Exiled.Events/Patches/Events/Scp0492/Consumed.cs +++ b/Exiled.Events/Patches/Events/Scp0492/Consumed.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp0492 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add event. + /// Patches + /// to add event. /// [EventPatch(typeof(Handlers.Scp0492), nameof(Handlers.Scp0492.ConsumedCorpse))] [HarmonyPatch(typeof(ZombieConsumeAbility), nameof(ZombieConsumeAbility.ServerComplete))] diff --git a/Exiled.Events/Patches/Events/Scp0492/Consuming.cs b/Exiled.Events/Patches/Events/Scp0492/Consuming.cs index 67880f590a..2ce3292069 100644 --- a/Exiled.Events/Patches/Events/Scp0492/Consuming.cs +++ b/Exiled.Events/Patches/Events/Scp0492/Consuming.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp0492 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add event. + /// Patches + /// to add event. /// [EventPatch(typeof(Handlers.Scp0492), nameof(Handlers.Scp0492.ConsumingCorpse))] [HarmonyPatch(typeof(ZombieConsumeAbility), nameof(ZombieConsumeAbility.ServerValidateBegin))] diff --git a/Exiled.Events/Patches/Events/Scp079/ChangingCamera.cs b/Exiled.Events/Patches/Events/Scp079/ChangingCamera.cs index a1be3d046f..2af87b7388 100644 --- a/Exiled.Events/Patches/Events/Scp079/ChangingCamera.cs +++ b/Exiled.Events/Patches/Events/Scp079/ChangingCamera.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp079), nameof(Scp079.ChangingCamera))] [HarmonyPatch(typeof(Scp079CurrentCameraSync), nameof(Scp079CurrentCameraSync.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/ChangingSpeakerStatusAndVoiceChatting.cs b/Exiled.Events/Patches/Events/Scp079/ChangingSpeakerStatusAndVoiceChatting.cs index e7fb458934..15223b800c 100644 --- a/Exiled.Events/Patches/Events/Scp079/ChangingSpeakerStatusAndVoiceChatting.cs +++ b/Exiled.Events/Patches/Events/Scp079/ChangingSpeakerStatusAndVoiceChatting.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches Scp079VoiceModule.ServerIsSending />. - /// Adds the and the events. + /// Patches Scp079VoiceModule.ServerIsSending />. + /// Adds the and the events. /// [EventPatch(typeof(Scp079), nameof(Scp079.ChangingSpeakerStatus))] [EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.VoiceChatting))] diff --git a/Exiled.Events/Patches/Events/Scp079/ElevatorTeleporting.cs b/Exiled.Events/Patches/Events/Scp079/ElevatorTeleporting.cs index 0e3fe6c3b5..d461dbed9a 100644 --- a/Exiled.Events/Patches/Events/Scp079/ElevatorTeleporting.cs +++ b/Exiled.Events/Patches/Events/Scp079/ElevatorTeleporting.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Scp079), nameof(Scp079.ElevatorTeleporting))] [HarmonyPatch(typeof(Scp079ElevatorStateChanger), nameof(Scp079ElevatorStateChanger.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/GainingExperience.cs b/Exiled.Events/Patches/Events/Scp079/GainingExperience.cs index 69ea081d4c..fd212ee6fe 100644 --- a/Exiled.Events/Patches/Events/Scp079/GainingExperience.cs +++ b/Exiled.Events/Patches/Events/Scp079/GainingExperience.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp079), nameof(Scp079.GainingExperience))] [HarmonyPatch(typeof(Scp079TierManager), nameof(Scp079TierManager.ServerGrantExperience))] diff --git a/Exiled.Events/Patches/Events/Scp079/GainingLevel.cs b/Exiled.Events/Patches/Events/Scp079/GainingLevel.cs index c9e43bb267..7721bc0035 100644 --- a/Exiled.Events/Patches/Events/Scp079/GainingLevel.cs +++ b/Exiled.Events/Patches/Events/Scp079/GainingLevel.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp079), nameof(Scp079.GainingLevel))] [HarmonyPatch(typeof(Scp079TierManager), nameof(Scp079TierManager.AccessTierIndex), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Scp079/InteractingTesla.cs b/Exiled.Events/Patches/Events/Scp079/InteractingTesla.cs index 7e8d50c7d6..bc44248311 100644 --- a/Exiled.Events/Patches/Events/Scp079/InteractingTesla.cs +++ b/Exiled.Events/Patches/Events/Scp079/InteractingTesla.cs @@ -27,8 +27,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Scp079), nameof(Scp079.InteractingTesla))] [HarmonyPatch(typeof(Scp079TeslaAbility), nameof(Scp079TeslaAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/LockingDown.cs b/Exiled.Events/Patches/Events/Scp079/LockingDown.cs index 8ce3a75ae0..7626c07c02 100644 --- a/Exiled.Events/Patches/Events/Scp079/LockingDown.cs +++ b/Exiled.Events/Patches/Events/Scp079/LockingDown.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Scp079), nameof(Scp079.LockingDown))] [HarmonyPatch(typeof(Scp079LockdownRoomAbility), nameof(Scp079LockdownRoomAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/Pinging.cs b/Exiled.Events/Patches/Events/Scp079/Pinging.cs index 0482093d23..07d885ddea 100644 --- a/Exiled.Events/Patches/Events/Scp079/Pinging.cs +++ b/Exiled.Events/Patches/Events/Scp079/Pinging.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Handlers.Scp079), nameof(Handlers.Scp079.Pinging))] [HarmonyPatch(typeof(Scp079PingAbility), nameof(Scp079PingAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/RoomBlackout.cs b/Exiled.Events/Patches/Events/Scp079/RoomBlackout.cs index b16a11057b..edfd359ea3 100644 --- a/Exiled.Events/Patches/Events/Scp079/RoomBlackout.cs +++ b/Exiled.Events/Patches/Events/Scp079/RoomBlackout.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Handlers.Scp079), nameof(Handlers.Scp079.RoomBlackout))] [HarmonyPatch(typeof(Scp079BlackoutRoomAbility), nameof(Scp079BlackoutRoomAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/TriggeringDoor.cs b/Exiled.Events/Patches/Events/Scp079/TriggeringDoor.cs index 0203fb9903..aa9beb8249 100644 --- a/Exiled.Events/Patches/Events/Scp079/TriggeringDoor.cs +++ b/Exiled.Events/Patches/Events/Scp079/TriggeringDoor.cs @@ -26,8 +26,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Scp079), nameof(Scp079.TriggeringDoor))] [HarmonyPatch(typeof(Scp079DoorStateChanger), nameof(Scp079DoorStateChanger.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp079/ZoneBlackout.cs b/Exiled.Events/Patches/Events/Scp079/ZoneBlackout.cs index 8c41a76cf7..f663612db2 100644 --- a/Exiled.Events/Patches/Events/Scp079/ZoneBlackout.cs +++ b/Exiled.Events/Patches/Events/Scp079/ZoneBlackout.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp079 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event for SCP-079. + /// Patches . + /// Adds the event for SCP-079. /// [EventPatch(typeof(Handlers.Scp079), nameof(Handlers.Scp079.ZoneBlackout))] [HarmonyPatch(typeof(Scp079BlackoutZoneAbility), nameof(Scp079BlackoutZoneAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp096/AddingTarget.cs b/Exiled.Events/Patches/Events/Scp096/AddingTarget.cs index 361cce571f..408de36295 100644 --- a/Exiled.Events/Patches/Events/Scp096/AddingTarget.cs +++ b/Exiled.Events/Patches/Events/Scp096/AddingTarget.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.AddingTarget))] [HarmonyPatch(typeof(Scp096TargetsTracker), nameof(Scp096TargetsTracker.AddTarget))] diff --git a/Exiled.Events/Patches/Events/Scp096/CalmingDown.cs b/Exiled.Events/Patches/Events/Scp096/CalmingDown.cs index 06b048722a..484190a49e 100644 --- a/Exiled.Events/Patches/Events/Scp096/CalmingDown.cs +++ b/Exiled.Events/Patches/Events/Scp096/CalmingDown.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.CalmingDown))] [HarmonyPatch(typeof(Scp096RageManager), nameof(Scp096RageManager.ServerEndEnrage))] diff --git a/Exiled.Events/Patches/Events/Scp096/Charging.cs b/Exiled.Events/Patches/Events/Scp096/Charging.cs index 2b9a928f25..85e799977c 100644 --- a/Exiled.Events/Patches/Events/Scp096/Charging.cs +++ b/Exiled.Events/Patches/Events/Scp096/Charging.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.Charging))] [HarmonyPatch(typeof(Scp096ChargeAbility), nameof(Scp096ChargeAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp096/Enraging.cs b/Exiled.Events/Patches/Events/Scp096/Enraging.cs index 01a000dfab..5e0154629d 100644 --- a/Exiled.Events/Patches/Events/Scp096/Enraging.cs +++ b/Exiled.Events/Patches/Events/Scp096/Enraging.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.Enraging))] [HarmonyPatch(typeof(Scp096RageManager), nameof(Scp096RageManager.ServerEnrage))] diff --git a/Exiled.Events/Patches/Events/Scp096/StartPryingGate.cs b/Exiled.Events/Patches/Events/Scp096/StartPryingGate.cs index fff01d98cd..420ef8c44f 100644 --- a/Exiled.Events/Patches/Events/Scp096/StartPryingGate.cs +++ b/Exiled.Events/Patches/Events/Scp096/StartPryingGate.cs @@ -27,8 +27,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches the method. - /// Adds the event. + /// Patches the method. + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.StartPryingGate))] [HarmonyPatch(typeof(Scp096PrygateAbility), nameof(Scp096PrygateAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp096/TryingNotToCry.cs b/Exiled.Events/Patches/Events/Scp096/TryingNotToCry.cs index df3c46dbc8..63c40350fe 100644 --- a/Exiled.Events/Patches/Events/Scp096/TryingNotToCry.cs +++ b/Exiled.Events/Patches/Events/Scp096/TryingNotToCry.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp096 using static HarmonyLib.AccessTools; /// - /// Patches the method. - /// Adds the event. + /// Patches the method. + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp096), nameof(Handlers.Scp096.TryingNotToCry))] [HarmonyPatch(typeof(Scp096TryNotToCryAbility), nameof(Scp096TryNotToCryAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp106/Teleporting.cs b/Exiled.Events/Patches/Events/Scp106/Teleporting.cs index 47a5b80aac..dafd80ca0f 100644 --- a/Exiled.Events/Patches/Events/Scp106/Teleporting.cs +++ b/Exiled.Events/Patches/Events/Scp106/Teleporting.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp106 using Player = API.Features.Player; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp106), nameof(Scp106.Teleporting))] [HarmonyPatch(typeof(Scp106HuntersAtlasAbility), nameof(Scp106HuntersAtlasAbility.GetSafePosition))] diff --git a/Exiled.Events/Patches/Events/Scp173/Blinking.cs b/Exiled.Events/Patches/Events/Scp173/Blinking.cs index 7fbd374e9e..bb2f1ab61a 100644 --- a/Exiled.Events/Patches/Events/Scp173/Blinking.cs +++ b/Exiled.Events/Patches/Events/Scp173/Blinking.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Scp173 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp173), nameof(Handlers.Scp173.Blinking))] [HarmonyPatch(typeof(Scp173BlinkTimer), nameof(Scp173BlinkTimer.ServerBlink))] diff --git a/Exiled.Events/Patches/Events/Scp173/BlinkingRequest.cs b/Exiled.Events/Patches/Events/Scp173/BlinkingRequest.cs index db62442fe1..942da124eb 100644 --- a/Exiled.Events/Patches/Events/Scp173/BlinkingRequest.cs +++ b/Exiled.Events/Patches/Events/Scp173/BlinkingRequest.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp173 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp173), nameof(Handlers.Scp173.BlinkingRequest))] [HarmonyPatch(typeof(Scp173TeleportAbility), nameof(Scp173TeleportAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp173/UsingBreakneckSpeeds.cs b/Exiled.Events/Patches/Events/Scp173/UsingBreakneckSpeeds.cs index af99dfc023..bbc6f51d92 100644 --- a/Exiled.Events/Patches/Events/Scp173/UsingBreakneckSpeeds.cs +++ b/Exiled.Events/Patches/Events/Scp173/UsingBreakneckSpeeds.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp173 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Scp173), nameof(Handlers.Scp173.UsingBreakneckSpeeds))] [HarmonyPatch(typeof(Scp173BreakneckSpeedsAbility), nameof(Scp173BreakneckSpeedsAbility.IsActive), MethodType.Setter)] diff --git a/Exiled.Events/Patches/Events/Scp244/DamagingScp244.cs b/Exiled.Events/Patches/Events/Scp244/DamagingScp244.cs index 3cc14e71e4..7bb4a51603 100644 --- a/Exiled.Events/Patches/Events/Scp244/DamagingScp244.cs +++ b/Exiled.Events/Patches/Events/Scp244/DamagingScp244.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp244 using static HarmonyLib.AccessTools; /// - /// Patches to add missing logic to the - /// . + /// Patches to add missing logic to the + /// . /// [EventPatch(typeof(Scp244), nameof(Scp244.DamagingScp244))] [HarmonyPatch(typeof(Scp244DeployablePickup), nameof(Scp244DeployablePickup.Damage))] diff --git a/Exiled.Events/Patches/Events/Scp244/UpdateScp244.cs b/Exiled.Events/Patches/Events/Scp244/UpdateScp244.cs index bc3d4002a8..2443644675 100644 --- a/Exiled.Events/Patches/Events/Scp244/UpdateScp244.cs +++ b/Exiled.Events/Patches/Events/Scp244/UpdateScp244.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp244 using static HarmonyLib.AccessTools; /// - /// Patches to add missing event handler to the - /// . + /// Patches to add missing event handler to the + /// . /// [EventPatch(typeof(Scp244), nameof(Scp244.OpeningScp244))] [HarmonyPatch(typeof(Scp244DeployablePickup), nameof(Scp244DeployablePickup.UpdateRange))] diff --git a/Exiled.Events/Patches/Events/Scp244/UsingScp244.cs b/Exiled.Events/Patches/Events/Scp244/UsingScp244.cs index 55e1139173..586d1d4302 100644 --- a/Exiled.Events/Patches/Events/Scp244/UsingScp244.cs +++ b/Exiled.Events/Patches/Events/Scp244/UsingScp244.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp244 using Player = API.Features.Player; /// - /// Patches to add missing event handler to the - /// . + /// Patches to add missing event handler to the + /// . /// [EventPatch(typeof(Scp244), nameof(Scp244.UsingScp244))] [HarmonyPatch(typeof(Scp244Item), nameof(Scp244Item.ServerOnUsingCompleted))] diff --git a/Exiled.Events/Patches/Events/Scp3114/Disguising.cs b/Exiled.Events/Patches/Events/Scp3114/Disguising.cs index 5c7b9a61bc..0dd0be1c87 100644 --- a/Exiled.Events/Patches/Events/Scp3114/Disguising.cs +++ b/Exiled.Events/Patches/Events/Scp3114/Disguising.cs @@ -20,8 +20,8 @@ namespace Exiled.Events.Patches.Events.Scp3114 using PlayerRoles.Ragdolls; /// - /// Patches . - /// Adds the and events. + /// Patches . + /// Adds the and events. /// [EventPatch(typeof(Scp3114), nameof(Scp3114.Disguising))] [EventPatch(typeof(Scp3114), nameof(Scp3114.Disguised))] diff --git a/Exiled.Events/Patches/Events/Scp3114/Revealing.cs b/Exiled.Events/Patches/Events/Scp3114/Revealing.cs index 0d6c479f00..cb520a2e54 100644 --- a/Exiled.Events/Patches/Events/Scp3114/Revealing.cs +++ b/Exiled.Events/Patches/Events/Scp3114/Revealing.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Scp3114 using static PlayerRoles.PlayableScps.Scp3114.Scp3114Identity; /// - /// Patches setter. - /// Adds the and event. + /// Patches setter. + /// Adds the and event. /// [EventPatch(typeof(Scp3114), nameof(Scp3114.Revealed))] [EventPatch(typeof(Scp3114), nameof(Scp3114.Revealing))] @@ -56,8 +56,8 @@ private static bool Prefix(Scp3114Identity __instance) } /// - /// Patches . - /// Adds the and event. + /// Patches . + /// Adds the and event. /// [EventPatch(typeof(Scp3114), nameof(Scp3114.Revealed))] [EventPatch(typeof(Scp3114), nameof(Scp3114.Revealing))] diff --git a/Exiled.Events/Patches/Events/Scp3114/TryUseBody.cs b/Exiled.Events/Patches/Events/Scp3114/TryUseBody.cs index 7149ab345a..24b8a23a84 100644 --- a/Exiled.Events/Patches/Events/Scp3114/TryUseBody.cs +++ b/Exiled.Events/Patches/Events/Scp3114/TryUseBody.cs @@ -15,8 +15,8 @@ namespace Exiled.Events.Patches.Events.Scp3114 using PlayerRoles.PlayableScps.Scp3114; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp3114), nameof(Scp3114.TryUseBody))] [HarmonyPatch(typeof(Scp3114Disguise), nameof(Scp3114Disguise.OnProgressSet))] diff --git a/Exiled.Events/Patches/Events/Scp3114/VoiceLines.cs b/Exiled.Events/Patches/Events/Scp3114/VoiceLines.cs new file mode 100644 index 0000000000..59983bb993 --- /dev/null +++ b/Exiled.Events/Patches/Events/Scp3114/VoiceLines.cs @@ -0,0 +1,83 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.Patches.Events.Scp3114 +{ + using System.Collections.Generic; + using System.Reflection.Emit; + + using Exiled.API.Features.Pools; + using Exiled.Events.Attributes; + using Exiled.Events.EventArgs.Scp3114; + using Exiled.Events.Handlers; + + using HarmonyLib; + + using PlayerRoles.PlayableScps.Scp3114; + + using static HarmonyLib.AccessTools; + + /// + /// Patches . + /// Adds the event. + /// + [EventPatch(typeof(Scp3114), nameof(Scp3114.VoiceLines))] + [HarmonyPatch(typeof(Scp3114VoiceLines), nameof(Scp3114VoiceLines.ServerPlayConditionally))] + internal class VoiceLines + { + private static IEnumerable Transpiler(IEnumerable instructions, ILGenerator generator) + { + List newInstructions = ListPool.Pool.Get(instructions); + + Label returnLabel = generator.DefineLabel(); + + LocalBuilder ev = generator.DeclareLocal(typeof(VoiceLinesEventArgs)); + + int offset = 1; + int index = newInstructions.FindIndex(instruction => instruction.opcode == OpCodes.Blt_S) + offset; + + newInstructions.InsertRange(index, new CodeInstruction[] + { + // this.Owner + new(OpCodes.Ldarg_0), + new(OpCodes.Callvirt, PropertyGetter(typeof(Scp3114VoiceLines), nameof(Scp3114VoiceLines.Owner))), + + // voiceLinesDefinition + new(OpCodes.Ldloc_0), + + // true + new(OpCodes.Ldc_I4_1), + + // VoiceLinesEventArgs ev = new VoiceLinesEventArgs(ReferenceHub, VoiceLinesDefinition, bool); + new(OpCodes.Newobj, GetDeclaredConstructors(typeof(VoiceLinesEventArgs))[0]), + new(OpCodes.Dup), + new(OpCodes.Dup), + new(OpCodes.Stloc_S, ev.LocalIndex), + + // Handlers.Scp3114.OnVoiceLines(ev); + new(OpCodes.Call, Method(typeof(Handlers.Scp3114), nameof(Handlers.Scp3114.OnVoiceLines))), + + // if(!ev.IsAllowed) + // return; + new(OpCodes.Callvirt, PropertyGetter(typeof(VoiceLinesEventArgs), nameof(VoiceLinesEventArgs.IsAllowed))), + new(OpCodes.Brfalse_S, returnLabel), + + // voiceLinesDefinition = ev.VoiceLine; + new(OpCodes.Ldloc_S, ev.LocalIndex), + new(OpCodes.Callvirt, PropertyGetter(typeof(VoiceLinesEventArgs), nameof(VoiceLinesEventArgs.VoiceLine))), + new(OpCodes.Stloc_S, 0), + }); + + newInstructions[newInstructions.Count - 1].labels.Add(returnLabel); + + for (int z = 0; z < newInstructions.Count; z++) + yield return newInstructions[z]; + + ListPool.Pool.Return(newInstructions); + } + } +} \ No newline at end of file diff --git a/Exiled.Events/Patches/Events/Scp330/DroppingCandy.cs b/Exiled.Events/Patches/Events/Scp330/DroppingCandy.cs index 6f1f61e6ca..a4bd131a9b 100644 --- a/Exiled.Events/Patches/Events/Scp330/DroppingCandy.cs +++ b/Exiled.Events/Patches/Events/Scp330/DroppingCandy.cs @@ -28,8 +28,8 @@ namespace Exiled.Events.Patches.Events.Scp330 using Player = API.Features.Player; /// - /// Patches the method to add the - /// event. + /// Patches the method to add the + /// event. /// [EventPatch(typeof(Scp330), nameof(Scp330.DroppingScp330))] [HarmonyPatch(typeof(Scp330NetworkHandler), nameof(Scp330NetworkHandler.ServerSelectMessageReceived))] diff --git a/Exiled.Events/Patches/Events/Scp330/EatingScp330.cs b/Exiled.Events/Patches/Events/Scp330/EatingScp330.cs index d8dd465865..1ad59414d4 100644 --- a/Exiled.Events/Patches/Events/Scp330/EatingScp330.cs +++ b/Exiled.Events/Patches/Events/Scp330/EatingScp330.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Scp330 using Player = API.Features.Player; /// - /// Patches . - /// Adds the and event. + /// Patches . + /// Adds the and event. /// [EventPatch(typeof(Scp330), nameof(Scp330.EatingScp330))] [EventPatch(typeof(Scp330), nameof(Scp330.EatenScp330))] diff --git a/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs b/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs index 63dc4b93f2..0c43bbadd7 100644 --- a/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs +++ b/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs @@ -29,8 +29,8 @@ namespace Exiled.Events.Patches.Events.Scp330 using Player = API.Features.Player; /// - /// Patches the method to add the - /// event. + /// Patches the method to add the + /// event. /// [EventPatch(typeof(Scp330), nameof(Scp330.InteractingScp330))] [HarmonyPatch(typeof(Scp330Interobject), nameof(Scp330Interobject.ServerInteract))] diff --git a/Exiled.Events/Patches/Events/Scp914/InteractingEvents.cs b/Exiled.Events/Patches/Events/Scp914/InteractingEvents.cs index 917eac7a9a..da157c1e86 100644 --- a/Exiled.Events/Patches/Events/Scp914/InteractingEvents.cs +++ b/Exiled.Events/Patches/Events/Scp914/InteractingEvents.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp914 using Scp914 = Handlers.Scp914; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp914), nameof(Scp914.Activating))] [HarmonyPatch(typeof(Scp914Controller), nameof(Scp914Controller.ServerInteract))] diff --git a/Exiled.Events/Patches/Events/Scp914/UpgradingItem.cs b/Exiled.Events/Patches/Events/Scp914/UpgradingItem.cs index 7469efb927..300952c334 100644 --- a/Exiled.Events/Patches/Events/Scp914/UpgradingItem.cs +++ b/Exiled.Events/Patches/Events/Scp914/UpgradingItem.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp914 using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Scp914), nameof(Scp914.UpgradingPickup))] [HarmonyPatch(typeof(Scp914Upgrader), nameof(Scp914Upgrader.ProcessPickup))] diff --git a/Exiled.Events/Patches/Events/Scp914/UpgradingPlayer.cs b/Exiled.Events/Patches/Events/Scp914/UpgradingPlayer.cs index fffd2e5e99..a58a4d2a43 100644 --- a/Exiled.Events/Patches/Events/Scp914/UpgradingPlayer.cs +++ b/Exiled.Events/Patches/Events/Scp914/UpgradingPlayer.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp914 using Scp914 = Handlers.Scp914; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp914), nameof(Scp914.UpgradingPlayer))] [HarmonyPatch(typeof(Scp914Upgrader), nameof(Scp914Upgrader.ProcessPlayer))] diff --git a/Exiled.Events/Patches/Events/Scp939/Focus.cs b/Exiled.Events/Patches/Events/Scp939/Focus.cs index 30107ccf99..a4992f2a83 100644 --- a/Exiled.Events/Patches/Events/Scp939/Focus.cs +++ b/Exiled.Events/Patches/Events/Scp939/Focus.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.ChangingFocus))] [HarmonyPatch(typeof(Scp939FocusKeySync), nameof(Scp939FocusKeySync.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp939/Lunge.cs b/Exiled.Events/Patches/Events/Scp939/Lunge.cs index e19b63ef19..c9f1019af7 100644 --- a/Exiled.Events/Patches/Events/Scp939/Lunge.cs +++ b/Exiled.Events/Patches/Events/Scp939/Lunge.cs @@ -21,8 +21,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.Lunging))] [HarmonyPatch(typeof(Scp939LungeAbility), nameof(Scp939LungeAbility.TriggerLunge))] diff --git a/Exiled.Events/Patches/Events/Scp939/PlacingAmnesticCloud.cs b/Exiled.Events/Patches/Events/Scp939/PlacingAmnesticCloud.cs index 9a6c70e934..e4b8dadaa1 100644 --- a/Exiled.Events/Patches/Events/Scp939/PlacingAmnesticCloud.cs +++ b/Exiled.Events/Patches/Events/Scp939/PlacingAmnesticCloud.cs @@ -23,8 +23,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.PlacingAmnesticCloud))] [HarmonyPatch(typeof(Scp939AmnesticCloudAbility), nameof(Scp939AmnesticCloudAbility.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp939/PlayingSound.cs b/Exiled.Events/Patches/Events/Scp939/PlayingSound.cs index 30bb2da64d..2df21c0cf3 100644 --- a/Exiled.Events/Patches/Events/Scp939/PlayingSound.cs +++ b/Exiled.Events/Patches/Events/Scp939/PlayingSound.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.PlayingSound))] [HarmonyPatch(typeof(EnvironmentalMimicry), nameof(EnvironmentalMimicry.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp939/PlayingVoice.cs b/Exiled.Events/Patches/Events/Scp939/PlayingVoice.cs index 6ee6ef33a3..84372d0dbb 100644 --- a/Exiled.Events/Patches/Events/Scp939/PlayingVoice.cs +++ b/Exiled.Events/Patches/Events/Scp939/PlayingVoice.cs @@ -24,8 +24,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.PlayingVoice))] [HarmonyPatch(typeof(MimicryRecorder), nameof(MimicryRecorder.ServerProcessCmd))] diff --git a/Exiled.Events/Patches/Events/Scp939/SavingVoice.cs b/Exiled.Events/Patches/Events/Scp939/SavingVoice.cs index 976b2348ca..d0bafe5d0e 100644 --- a/Exiled.Events/Patches/Events/Scp939/SavingVoice.cs +++ b/Exiled.Events/Patches/Events/Scp939/SavingVoice.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Scp939 using static HarmonyLib.AccessTools; /// - /// Patches - /// to add the event. + /// Patches + /// to add the event. /// [EventPatch(typeof(Scp939), nameof(Scp939.SavingVoice))] [HarmonyPatch(typeof(MimicryRecorder), nameof(MimicryRecorder.OnAnyPlayerKilled))] diff --git a/Exiled.Events/Patches/Events/Scp939/ValidatingVisibility.cs b/Exiled.Events/Patches/Events/Scp939/ValidatingVisibility.cs new file mode 100644 index 0000000000..bef8d5408b --- /dev/null +++ b/Exiled.Events/Patches/Events/Scp939/ValidatingVisibility.cs @@ -0,0 +1,32 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Events.Patches.Events.Scp939 +{ + #pragma warning disable SA1313 + + using Exiled.Events.Attributes; + using Exiled.Events.EventArgs.Scp939; + using HarmonyLib; + using PlayerRoles.PlayableScps.Scp939; + + /// + /// Patches + /// to add the event. + /// + [EventPatch(typeof(Handlers.Scp939), nameof(Handlers.Scp939.ValidatingVisibility))] + [HarmonyPatch(typeof(Scp939VisibilityController), nameof(Scp939VisibilityController.ValidateVisibility))] + internal class ValidatingVisibility + { + private static void Postfix(Scp939VisibilityController __instance, ReferenceHub hub, ref bool __result) + { + ValidatingVisibilityEventArgs ev = new(__instance.Owner, hub, __result); + Handlers.Scp939.OnValidatingVisibility(ev); + __result = ev.IsAllowed; + } + } +} \ No newline at end of file diff --git a/Exiled.Events/Patches/Events/Server/ChoosingStartTeamQueue.cs b/Exiled.Events/Patches/Events/Server/ChoosingStartTeamQueue.cs index 6d5c41891d..0bbc59c2c7 100644 --- a/Exiled.Events/Patches/Events/Server/ChoosingStartTeamQueue.cs +++ b/Exiled.Events/Patches/Events/Server/ChoosingStartTeamQueue.cs @@ -19,8 +19,8 @@ namespace Exiled.Events.Patches.Events.Server using static HarmonyLib.AccessTools; /// - /// Patches setter. - /// Adds the . + /// Patches setter. + /// Adds the . /// [EventPatch(typeof(Handlers.Server), nameof(Handlers.Server.ChoosingStartTeamQueue))] [HarmonyPatch(typeof(RoleAssigner), nameof(RoleAssigner.OnRoundStarted))] diff --git a/Exiled.Events/Patches/Events/Server/Reporting.cs b/Exiled.Events/Patches/Events/Server/Reporting.cs index 6f58d608a5..bba54c92ed 100644 --- a/Exiled.Events/Patches/Events/Server/Reporting.cs +++ b/Exiled.Events/Patches/Events/Server/Reporting.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Server using Player = API.Features.Player; /// - /// Patches CheaterReport.UserCode_CmdReport__UInt32__String__Byte\u005B\u005D__Boolean(uint, string, byte[], bool) />. - /// Adds the and events. + /// Patches CheaterReport.UserCode_CmdReport__UInt32__String__Byte\u005B\u005D__Boolean(uint, string, byte[], bool) />. + /// Adds the and events. /// [EventPatch(typeof(Server), nameof(Server.ReportingCheater))] [EventPatch(typeof(Server), nameof(Server.LocalReporting))] diff --git a/Exiled.Events/Patches/Events/Server/RespawningTeam.cs b/Exiled.Events/Patches/Events/Server/RespawningTeam.cs index e5fec1e42b..a81b42a1eb 100644 --- a/Exiled.Events/Patches/Events/Server/RespawningTeam.cs +++ b/Exiled.Events/Patches/Events/Server/RespawningTeam.cs @@ -25,8 +25,8 @@ namespace Exiled.Events.Patches.Events.Server using Player = API.Features.Player; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Server), nameof(Server.RespawningTeam))] [HarmonyPatch(typeof(RespawnManager), nameof(RespawnManager.Spawn))] diff --git a/Exiled.Events/Patches/Events/Server/RestartingRound.cs b/Exiled.Events/Patches/Events/Server/RestartingRound.cs index 725a740c83..99c3a5e06c 100644 --- a/Exiled.Events/Patches/Events/Server/RestartingRound.cs +++ b/Exiled.Events/Patches/Events/Server/RestartingRound.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Server using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Handlers.Server), nameof(Handlers.Server.RestartingRound))] [HarmonyPatch(typeof(RoundRestart), nameof(RoundRestart.InitiateRoundRestart))] diff --git a/Exiled.Events/Patches/Events/Server/RoundEnd.cs b/Exiled.Events/Patches/Events/Server/RoundEnd.cs index c73166760b..f8c94385a1 100644 --- a/Exiled.Events/Patches/Events/Server/RoundEnd.cs +++ b/Exiled.Events/Patches/Events/Server/RoundEnd.cs @@ -20,8 +20,8 @@ namespace Exiled.Events.Patches.Events.Server using static HarmonyLib.AccessTools; /// - /// Patches . - /// Adds the and event. + /// Patches . + /// Adds the and event. /// /* TODO: Removed this when NW will have changed ChaosTargetCount == 0 with ChaosTargetCount <= 0 [EventPatch(typeof(Handlers.Server), nameof(Handlers.Server.EndingRound))] diff --git a/Exiled.Events/Patches/Events/Warhead/ChangingLeverStatus.cs b/Exiled.Events/Patches/Events/Warhead/ChangingLeverStatus.cs index b37ae509b0..b03e488692 100644 --- a/Exiled.Events/Patches/Events/Warhead/ChangingLeverStatus.cs +++ b/Exiled.Events/Patches/Events/Warhead/ChangingLeverStatus.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Warhead using Warhead = Handlers.Warhead; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Warhead), nameof(Warhead.ChangingLeverStatus))] [HarmonyPatch(typeof(PlayerInteract), nameof(PlayerInteract.UserCode_CmdUsePanel__AlphaPanelOperations))] diff --git a/Exiled.Events/Patches/Events/Warhead/Detonation.cs b/Exiled.Events/Patches/Events/Warhead/Detonation.cs index b5cdf09035..016d530872 100644 --- a/Exiled.Events/Patches/Events/Warhead/Detonation.cs +++ b/Exiled.Events/Patches/Events/Warhead/Detonation.cs @@ -19,8 +19,8 @@ namespace Exiled.Events.Patches.Events.Warhead using static HarmonyLib.AccessTools; /// - /// Patches - /// to add and events. + /// Patches + /// to add and events. /// [EventPatch(typeof(Warhead), nameof(Warhead.Detonated))] [EventPatch(typeof(Warhead), nameof(Warhead.Detonating))] diff --git a/Exiled.Events/Patches/Events/Warhead/Starting.cs b/Exiled.Events/Patches/Events/Warhead/Starting.cs index dc52802057..42563ae54a 100644 --- a/Exiled.Events/Patches/Events/Warhead/Starting.cs +++ b/Exiled.Events/Patches/Events/Warhead/Starting.cs @@ -20,8 +20,8 @@ namespace Exiled.Events.Patches.Events.Warhead using static HarmonyLib.AccessTools; /// - /// Patch the . - /// Adds the event. + /// Patch the . + /// Adds the event. /// [EventPatch(typeof(Handlers.Warhead), nameof(Handlers.Warhead.Starting))] [HarmonyPatch(typeof(AlphaWarheadController), nameof(AlphaWarheadController.StartDetonation))] diff --git a/Exiled.Events/Patches/Events/Warhead/Stopping.cs b/Exiled.Events/Patches/Events/Warhead/Stopping.cs index 9999ee162a..a9efe02cb0 100644 --- a/Exiled.Events/Patches/Events/Warhead/Stopping.cs +++ b/Exiled.Events/Patches/Events/Warhead/Stopping.cs @@ -22,8 +22,8 @@ namespace Exiled.Events.Patches.Events.Warhead using Warhead = Handlers.Warhead; /// - /// Patches . - /// Adds the event. + /// Patches . + /// Adds the event. /// [EventPatch(typeof(Warhead), nameof(Warhead.Stopping))] [HarmonyPatch(typeof(AlphaWarheadController), nameof(AlphaWarheadController.CancelDetonation), typeof(ReferenceHub))] diff --git a/Exiled.Events/Patches/Fixes/HurtingFix.cs b/Exiled.Events/Patches/Fixes/HurtingFix.cs index 7d6ee3893e..56f5f2cf09 100644 --- a/Exiled.Events/Patches/Fixes/HurtingFix.cs +++ b/Exiled.Events/Patches/Fixes/HurtingFix.cs @@ -20,7 +20,7 @@ namespace Exiled.Events.Patches.Events.Player using static HarmonyLib.AccessTools; /// - /// Patches . + /// Patches . /// [HarmonyPatch(typeof(CustomNetworkManager), nameof(CustomNetworkManager.OnServerDisconnect), typeof(NetworkConnectionToClient))] internal static class HurtingFix diff --git a/Exiled.Events/Patches/Generic/DoorList.cs b/Exiled.Events/Patches/Generic/DoorList.cs index f7d9cbf63f..890f1ce83b 100644 --- a/Exiled.Events/Patches/Generic/DoorList.cs +++ b/Exiled.Events/Patches/Generic/DoorList.cs @@ -9,7 +9,6 @@ namespace Exiled.Events.Patches.Generic { #pragma warning disable SA1313 #pragma warning disable SA1402 - using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; @@ -22,44 +21,20 @@ namespace Exiled.Events.Patches.Generic using HarmonyLib; using Interactables.Interobjects.DoorUtils; - using MapGeneration; - - using UnityEngine; using static HarmonyLib.AccessTools; /// /// Patches . /// - // TODO: transpiler [HarmonyPatch(typeof(DoorVariant), nameof(DoorVariant.RegisterRooms))] internal class DoorList { - private static bool Prefix(DoorVariant __instance) + private static void Postfix(DoorVariant __instance) { - /*EXILED*/ - if (__instance.Rooms != null) - return false; - /*EXILED*/ - - Vector3 position = __instance.transform.position; - int length = 0; - - for (int index = 0; index < 4; ++index) - { - Vector3Int coords = RoomIdUtils.PositionToCoords(position + DoorVariant.WorldDirections[index]); - - if (RoomIdentifier.RoomsByCoordinates.TryGetValue(coords, out RoomIdentifier key) && DoorVariant.DoorsByRoom.GetOrAdd(key, () => new HashSet()).Add(__instance)) - { - DoorVariant.RoomsNonAlloc[length] = key; - ++length; - } - } - - __instance.Rooms = new RoomIdentifier[length]; - Array.Copy(DoorVariant.RoomsNonAlloc, __instance.Rooms, length); + if (Door.DoorVariantToDoor.ContainsKey(__instance)) + return; - /*EXILED*/ List rooms = __instance.Rooms.Select(identifier => Room.RoomIdentifierToRoom[identifier]).ToList(); Door door = Door.Create(__instance, rooms); @@ -78,9 +53,7 @@ private static bool Prefix(DoorVariant __instance) } } - /*EXILED*/ - - return false; + return; } } @@ -90,25 +63,9 @@ private static bool Prefix(DoorVariant __instance) [HarmonyPatch(typeof(DoorVariant), nameof(DoorVariant.OnDestroy))] internal class DoorListRemove { - private static IEnumerable Transpiler(IEnumerable codeInstructions) + private static void Prefix(DoorVariant __instance) { - List newInstructions = ListPool.Pool.Get(codeInstructions); - - // Door.DoorVariantToDoor.Remove(this) - newInstructions.InsertRange( - 0, - new CodeInstruction[] - { - new(OpCodes.Ldsfld, Field(typeof(Door), nameof(Door.DoorVariantToDoor))), - new(OpCodes.Ldarg_0), - new(OpCodes.Callvirt, Method(typeof(Dictionary), nameof(Dictionary.Remove), new[] { typeof(DoorVariant) })), - new(OpCodes.Pop), - }); - - for (int z = 0; z < newInstructions.Count; z++) - yield return newInstructions[z]; - - ListPool.Pool.Return(newInstructions); + Door.DoorVariantToDoor.Remove(__instance); } } } \ No newline at end of file diff --git a/Exiled.Installer/Program.cs b/Exiled.Installer/Program.cs index 8446bedc28..1010e2098d 100644 --- a/Exiled.Installer/Program.cs +++ b/Exiled.Installer/Program.cs @@ -30,12 +30,12 @@ internal enum PathResolution Undefined, /// - /// Absolute path that is routed to AppData. + /// Absolute path that is routed to AppData. /// Absolute, /// - /// Exiled path that is routed to exiled root path. + /// Exiled path that is routed to exiled root path. /// Exiled, }