Class MyAdvancedDoor
Inheritance
System.Object
Sandbox.Game.Entities.Cube.MySyncedBlock
Sandbox.Game.Entities.Cube.MyTerminalBlock
Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyAdvancedDoor
Implements
Inherited Members
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
[MyTerminalInterface]
public class MyAdvancedDoor : MyDoorBase, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyUpgradableBlock, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyTieredUpdateBlock, IMyUpdateTimer, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner, IMyTextPanelComponentOwner, IMyAdvancedDoor, IMyDoor, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyAdvancedDoor, IMyDoor, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Constructors
MyAdvancedDoor()
Declaration
public MyAdvancedDoor()
Properties
DisassembleRatio
Declaration
public override float DisassembleRatio { get; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
FullyClosed
Declaration
public bool FullyClosed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
FullyOpen
Declaration
public bool FullyOpen { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
OpeningSpeed
Declaration
public float OpeningSpeed { get; }
Property Value
Type | Description |
---|---|
System.Single |
OpenRatio
Declaration
public float OpenRatio { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
CheckIsWorking()
Declaration
protected override bool CheckIsWorking()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.CheckIsWorking()
Closing()
Declaration
protected override void Closing()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.Closing()
ContactCallbackInternal()
Declaration
public override void ContactCallbackInternal()
Overrides
EnableContactCallbacks()
Declaration
public override bool EnableContactCallbacks()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetObjectBuilderCubeBlock(Boolean)
Declaration
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | copy |
Returns
Type | Description |
---|---|
MyObjectBuilder_CubeBlock |
Overrides
Init(MyObjectBuilder_CubeBlock, MyCubeGrid)
Declaration
public override void Init(MyObjectBuilder_CubeBlock builder, MyCubeGrid cubeGrid)
Parameters
Type | Name | Description |
---|---|---|
MyObjectBuilder_CubeBlock | builder | |
MyCubeGrid | cubeGrid |
Overrides
IsClosing()
Declaration
public override bool IsClosing()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
OnBuildSuccess(Int64, Boolean)
Declaration
public override void OnBuildSuccess(long builtBy, bool instantBuild)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | builtBy | |
System.Boolean | instantBuild |
Overrides
OnCubeGridChanged(MyCubeGrid)
Declaration
public override void OnCubeGridChanged(MyCubeGrid oldGrid)
Parameters
Type | Name | Description |
---|---|---|
MyCubeGrid | oldGrid |
Overrides
OnEnabledChanged()
Declaration
protected override void OnEnabledChanged()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnEnabledChanged()
OnModelChange()
Declaration
public override void OnModelChange()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnModelChange()
OnOpenChanged(SyncBase)
Declaration
protected override void OnOpenChanged(SyncBase obj)
Parameters
Type | Name | Description |
---|---|---|
VRage.Sync.SyncBase | obj |
Overrides
UpdateAfterSimulation()
Declaration
public override void UpdateAfterSimulation()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation()
UpdateOnceBeforeFrame()
Declaration
public override void UpdateOnceBeforeFrame()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateOnceBeforeFrame()
UpdatePowerInput()
Declaration
protected float UpdatePowerInput()
Returns
Type | Description |
---|---|
System.Single |
UpdateSoundEmitters()
Declaration
public override void UpdateSoundEmitters()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateSoundEmitters()
UpdateVisual()
Declaration
public override void UpdateVisual()
Overrides
Events
DoorStateChanged
Declaration
public event Action<bool> DoorStateChanged
Event Type
Type | Description |
---|---|
System.Action<System.Boolean> |
OnDoorClosed
Declaration
public event Action<IMyDoor> OnDoorClosed
Event Type
Type | Description |
---|---|
System.Action<IMyDoor> |
OnDoorOpened
Declaration
public event Action<IMyDoor> OnDoorOpened
Event Type
Type | Description |
---|---|
System.Action<IMyDoor> |
OnDoorStateChanged
Declaration
public event Action<IMyDoor, bool> OnDoorStateChanged
Event Type
Type | Description |
---|---|
System.Action<IMyDoor, System.Boolean> |
Explicit Interface Implementations
IMyDoor.IsFullyClosed
Declaration
bool IMyDoor.IsFullyClosed { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IMyDoor.CloseDoor()
Declaration
void IMyDoor.CloseDoor()
IMyDoor.OpenDoor()
Declaration
void IMyDoor.OpenDoor()
IMyDoor.Status
Declaration
DoorStatus IMyDoor.Status { get; }
Returns
Type | Description |
---|---|
DoorStatus |
IMyDoor.ToggleDoor()
Declaration
void IMyDoor.ToggleDoor()