Interface IMyDoor
Describes door block (mods interface)
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyDoor : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyDoor, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
IsFullyClosed
Returns whether door is fully closed. (Animations are stopped)
Declaration
bool IsFullyClosed { get; }
Property Value
Type | Description |
---|---|
System. |
Events
DoorStateChanged
Called when door changes state
Declaration
event Action<bool> DoorStateChanged
Event Type
Type | Description |
---|---|
System. |
OnDoorClosed
Called when door changes opened state to closed
Declaration
event Action<IMyDoor> OnDoorClosed
Event Type
Type | Description |
---|---|
System. |
OnDoorOpened
Called when door changes opened state to open
Declaration
event Action<IMyDoor> OnDoorOpened
Event Type
Type | Description |
---|---|
System. |
OnDoorStateChanged
Called when door changes opened state
Declaration
event Action<IMyDoor, bool> OnDoorStateChanged
Event Type
Type | Description |
---|---|
System. |