Class ActivatingWorkstationEventArgs
Contains all information before a player activates a workstation.
Inheritance
System.Object
ActivatingWorkstationEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class ActivatingWorkstationEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceActivatingWorkstationEventArgs(Player, WorkstationController, Boolean)
Initializes a new instance of the ActivatingWorkstationEventArgs class.
Declaration
public ActivatingWorkstationEventArgs(Player player, WorkstationController controller, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.Firearms.Attachments.WorkstationController | controller | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the workstation can be activated.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NewStatus
Gets or sets the workstation status.
Declaration
public WorkstationController.WorkstationStatus NewStatus { get; set; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Firearms.Attachments.WorkstationController.WorkstationStatus |
Player
Gets the player who's trying to activate the workstation.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
WorkstationController
Gets the workstation.
Declaration
public WorkstationController WorkstationController { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Firearms.Attachments.WorkstationController |