Class GrantingGiftEventArgs
Contains all information before player receives a gift from SCP-2536.
public class GrantingGiftEventArgs : IDeniableEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
GrantingGiftEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
GrantingGiftEventArgs(Player, Scp2536GiftBase, bool)
Initializes a new instance of the GrantingGiftEventArgs class.
public GrantingGiftEventArgs(Player player, Scp2536GiftBase gift, bool isAllowed = true)
Parameters
Properties
Gift
Gets or sets a gift that will be granted to a Player.
public Scp2536GiftBase Gift { get; set; }
Property Value
- Scp2536GiftBase
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }