Table of Contents

Class DeactivatingWorkstationEventArgs

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

Contains all information before deactivating a workstation.

public class DeactivatingWorkstationEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
DeactivatingWorkstationEventArgs
Implements
Inherited Members
Extension Methods

Constructors

DeactivatingWorkstationEventArgs(WorkstationController, bool)

Initializes a new instance of the DeactivatingWorkstationEventArgs class.

public DeactivatingWorkstationEventArgs(WorkstationController controller, bool isAllowed = true)

Parameters

controller WorkstationController
isAllowed bool

Properties

IsAllowed

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

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 last user of the workstation.

public Player Player { get; }

Property Value

Player

WorkstationController

Gets the workstation.

public WorkstationController WorkstationController { get; }

Property Value

WorkstationController