Class MyReactor
Inheritance
System.Object
Sandbox.Game.Entities.Cube.MySyncedBlock
Sandbox.Game.Entities.Cube.MyTerminalBlock
Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyReactor
Implements
Inherited Members
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
[MyTerminalInterface]
public class MyReactor : MyFueledPowerProducer, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyUpgradableBlock, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyTieredUpdateBlock, IMyUpdateTimer, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner, IMyTextPanelComponentOwner, IMyConveyorEndpointBlock, IMyReactor, IMyReactor, IMyPowerProducer, IMyPowerProducer, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity, IMyInventoryOwner
Constructors
MyReactor()
Declaration
public MyReactor()
Properties
BlockDefinition
Declaration
public MyReactorDefinition BlockDefinition { get; }
Property Value
Type | Description |
---|---|
MyReactorDefinition |
IsTieredUpdateSupported
Declaration
public override bool IsTieredUpdateSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.IsTieredUpdateSupported
MaxOutput
Declaration
public override float MaxOutput { get; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
UseConveyorSystem
Declaration
public bool UseConveyorSystem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CheckEmissiveState(Boolean)
Declaration
public override void CheckEmissiveState(bool force = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | force |
Overrides
CreateTerminalControls()
Declaration
protected override void CreateTerminalControls()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.CreateTerminalControls()
DoUpdateTimerTick()
Declaration
public override void DoUpdateTimerTick()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.DoUpdateTimerTick()
GetDefaultTimeForUpdateTimer(Int32)
Declaration
protected override uint GetDefaultTimeForUpdateTimer(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.UInt32 |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.GetDefaultTimeForUpdateTimer(System.Int32)
GetObjectBuilderCubeBlock(Boolean)
Declaration
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | copy |
Returns
Type | Description |
---|---|
MyObjectBuilder_CubeBlock |
Overrides
GetPullInformation()
Declaration
public override PullInformation GetPullInformation()
Returns
Type | Description |
---|---|
Sandbox.Game.GameSystems.Conveyors.PullInformation |
Overrides
GetTimerEnabledState()
Declaration
public override bool GetTimerEnabledState()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.GetTimerEnabledState()
Init(MyObjectBuilder_CubeBlock, MyCubeGrid)
Declaration
public override void Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
Parameters
Type | Name | Description |
---|---|---|
MyObjectBuilder_CubeBlock | objectBuilder | |
MyCubeGrid | cubeGrid |
Overrides
OnCurrentOrMaxOutputChanged(MyDefinitionId, Single, MyResourceSourceComponent)
Declaration
protected override void OnCurrentOrMaxOutputChanged(MyDefinitionId resourceTypeId, float oldOutput, MyResourceSourceComponent source)
Parameters
Type | Name | Description |
---|---|---|
MyDefinitionId | resourceTypeId | |
System.Single | oldOutput | |
MyResourceSourceComponent | source |
Overrides
MyFueledPowerProducer.OnCurrentOrMaxOutputChanged(MyDefinitionId, Single, MyResourceSourceComponent)
OnEnabledChanged()
Declaration
protected override void OnEnabledChanged()
Overrides
OnInventoryComponentAdded(MyInventoryBase)
Declaration
protected override void OnInventoryComponentAdded(MyInventoryBase inventory)
Parameters
Type | Name | Description |
---|---|---|
MyInventoryBase | inventory |
Overrides
OnInventoryComponentRemoved(MyInventoryBase)
Declaration
protected override void OnInventoryComponentRemoved(MyInventoryBase inventory)
Parameters
Type | Name | Description |
---|---|---|
MyInventoryBase | inventory |
Overrides
TiersChanged()
Declaration
protected override void TiersChanged()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.TiersChanged()
UpdateAfterSimulation100()
Declaration
public override void UpdateAfterSimulation100()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation100()
Explicit Interface Implementations
IMyReactor.PowerOutputMultiplier
Declaration
float IMyReactor.PowerOutputMultiplier { get; set; }
Returns
Type | Description |
---|---|
System.Single |
IMyReactor.UseConveyorSystem
Declaration
bool IMyReactor.UseConveyorSystem { get; set; }
Returns
Type | Description |
---|---|
System.Boolean |
IMyInventoryOwner.get_HasInventory()
Declaration
bool IMyInventoryOwner.get_HasInventory()
Returns
Type | Description |
---|---|
System.Boolean |
IMyInventoryOwner.get_InventoryCount()
Declaration
int IMyInventoryOwner.get_InventoryCount()
Returns
Type | Description |
---|---|
System.Int32 |
IMyInventoryOwner.GetInventory(Int32)
Declaration
IMyInventory IMyInventoryOwner.GetInventory(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
IMyInventory |