C# Class Content.Shared.Doors.BeforeDoorClosedEvent

Raised when the door is determining whether it is able to close. If the event is canceled, the door will not close. Additionally this event also has a bool that determines whether or not the door should perform a safety/collision check before closing. This check has to be proactively disabled by things like hacked airlocks.
This event is raised both when the door is initially closed, and when it is just about to become "partially" closed (opaque & collidable). If canceled while partially closing, it will start opening again. Useful in case an entity entered the door just as it was about to become "solid".
Inheritance: CancellableEntityEventArgs
ファイルを表示 Open project: space-wizards/space-station-14

Public Properties

Property Type Description
PerformCollisionCheck bool

Public Methods

Method Description
BeforeDoorClosedEvent ( bool performCollisionCheck ) : Content.Shared.Doors.Components

Method Details

BeforeDoorClosedEvent() public method

public BeforeDoorClosedEvent ( bool performCollisionCheck ) : Content.Shared.Doors.Components
performCollisionCheck bool
return Content.Shared.Doors.Components

Property Details

PerformCollisionCheck public_oe property

public bool PerformCollisionCheck
return bool