Class TurningOffLightsEventArgs
Contains all information before turning off lights.
Inheritance
System.Object
TurningOffLightsEventArgs
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.Map
Assembly: Exiled.Events.dll
Syntax
public class TurningOffLightsEventArgs : IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceTurningOffLightsEventArgs(RoomLightController, Single, Boolean)
Initializes a new instance of the TurningOffLightsEventArgs class.
Declaration
public TurningOffLightsEventArgs(RoomLightController flickerableLightControllerHandler, float duration, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
RoomLightController | flickerableLightControllerHandler | |
System.Single | duration | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceDuration
Gets or sets the blackout duration.
Declaration
public float Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAllowed
Gets or sets a value indicating whether the lights can be turned off.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
RoomLightController
Gets the RoomLightController.
Declaration
public RoomLightController RoomLightController { get; }
Property Value
Type | Description |
---|---|
RoomLightController |