C# Класс 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".
Наследование: CancellableEntityEventArgs
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
PerformCollisionCheck bool

Открытые методы

Метод Описание
BeforeDoorClosedEvent ( bool performCollisionCheck ) : Content.Shared.Doors.Components

Описание методов

BeforeDoorClosedEvent() публичный Метод

public BeforeDoorClosedEvent ( bool performCollisionCheck ) : Content.Shared.Doors.Components
performCollisionCheck bool
Результат Content.Shared.Doors.Components

Описание свойств

PerformCollisionCheck публичное свойство

public bool PerformCollisionCheck
Результат bool