Class RoomBlackoutEventArgs
Contains all information before SCP-079 turns off the lights in a room.
public class RoomBlackoutEventArgs : IScp079Event, IPlayerEvent, IRoomEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
RoomBlackoutEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
RoomBlackoutEventArgs(ReferenceHub, RoomIdentifier, float, float, float, bool)
Initializes a new instance of the RoomBlackoutEventArgs class.
public RoomBlackoutEventArgs(ReferenceHub player, RoomIdentifier roomIdentifier, float auxiliaryPowerCost, float blackoutduration, float cooldown, bool isAllowed)
Parameters
player
ReferenceHubroomIdentifier
RoomIdentifierauxiliaryPowerCost
floatblackoutduration
floatcooldown
floatisAllowed
bool
Properties
AuxiliaryPowerCost
Gets or sets the amount of auxiliary power required to black out the room.
public float AuxiliaryPowerCost { get; set; }
Property Value
BlackoutDuration
Gets or sets the duration of the blackout.
public float BlackoutDuration { get; set; }
Property Value
Cooldown
Gets or sets the blackout cooldown duration.
public double Cooldown { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether SCP-079 can black out the room.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's controlling SCP-079.
public Player Player { get; }
Property Value
Room
Gets the room that will be locked down.
public Room Room { get; }
Property Value
Scp079
Gets the Scp079Role triggering the event.
public Scp079Role Scp079 { get; }