Class ActivatingWorkstationEventArgs
Contains all information before a player activates a workstation.
public class ActivatingWorkstationEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
ActivatingWorkstationEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ActivatingWorkstationEventArgs(Player, WorkstationController, bool)
Initializes a new instance of the ActivatingWorkstationEventArgs class.
public ActivatingWorkstationEventArgs(Player player, WorkstationController controller, bool isAllowed = true)
Parameters
Properties
IsAllowed
Gets or sets a value indicating whether the workstation can be activated.
public bool IsAllowed { get; set; }
Property Value
NewStatus
Gets or sets the workstation status.
public WorkstationController.WorkstationStatus NewStatus { get; set; }
Property Value
- WorkstationController.WorkstationStatus
Player
Gets the player who's trying to activate the workstation.
public Player Player { get; }
Property Value
WorkstationController
Gets the workstation.
public WorkstationController WorkstationController { get; }
Property Value
- WorkstationController