Class DoorController
Wrapper for ScheduleOne DoorController component. Provides a clean API without exposing game types directly.
public sealed class DoorController
- Inheritance
-
DoorController
- Inherited Members
- Extension Methods
Constructors
DoorController(GameObject)
Creates a new wrapper from a GameObject containing the DoorController component.
public DoorController(GameObject gameObject)
Parameters
gameObjectGameObjectGameObject containing the DoorController component.
Properties
AutoOpenForPlayer
Gets or sets whether players can automatically open the door.
public bool AutoOpenForPlayer { get; set; }
Property Value
IsOpen
Gets whether the door is currently open.
public bool IsOpen { get; }
Property Value
OpenableByNPCs
Gets or sets whether NPCs can open the door.
public bool OpenableByNPCs { get; set; }
Property Value
PlayerAccess
Gets or sets door access level.
public DoorAccess PlayerAccess { get; set; }
Property Value
Methods
SetIsOpen(bool, DoorSide)
Sets whether the door is open.
public void SetIsOpen(bool open, DoorSide side)
Parameters
Events
OnDoorClosed
Event fired when the door is closed.
public event Action OnDoorClosed
Event Type
OnDoorOpened
Event fired when the door is opened from a specific side.
public event Action<DoorSide> OnDoorOpened
Event Type
OnDoorOpenedAny
Event fired when the door is opened (any side).
public event Action OnDoorOpenedAny