Table of Contents

Class ActivatingWorkstationEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

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

player Player
controller WorkstationController
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the workstation can be activated.

public bool IsAllowed { get; set; }

Property Value

bool

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

Player

WorkstationController

Gets the workstation.

public WorkstationController WorkstationController { get; }

Property Value

WorkstationController