Class JailbirdChangingWearStateEventArgs
Contains all information before a InventorySystem.Items.Jailbird.JailbirdItem changes its state.
public class JailbirdChangingWearStateEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
JailbirdChangingWearStateEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
JailbirdChangingWearStateEventArgs(ItemBase, JailbirdWearState, JailbirdWearState)
Initializes a new instance of the JailbirdChangingWearStateEventArgs class.
public JailbirdChangingWearStateEventArgs(ItemBase jailbird, JailbirdWearState newWearState, JailbirdWearState oldWearState)
Parameters
jailbirdItemBaseThe Jailbird item whose state is changing.
newWearStateJailbirdWearStateThe InventorySystem.Items.Jailbird.JailbirdWearState the Jailbird is attempting to switch to.
oldWearStateJailbirdWearStateThe current InventorySystem.Items.Jailbird.JailbirdWearState the Jailbird is at.
Properties
IsAllowed
Gets or sets a value indicating whether the Jailbird is allowed to change its InventorySystem.Items.Jailbird.JailbirdWearState.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item associated with the Jailbird.
public Item Item { get; }
Property Value
Jailbird
Gets the Jailbird that atempted to change its state.
public Jailbird Jailbird { get; }
Property Value
NewWearState
Gets or sets the new InventorySystem.Items.Jailbird.JailbirdWearState of the Jailbird.
public JailbirdWearState NewWearState { get; set; }
Property Value
- JailbirdWearState
OldWearState
Gets the old InventorySystem.Items.Jailbird.JailbirdWearState of the Jailbird.
public JailbirdWearState OldWearState { get; }
Property Value
- JailbirdWearState
Player
public Player Player { get; }