Class MyFueledPowerProducer
Inheritance
System.Object
Sandbox.Game.Entities.Cube.MySyncedBlock
Sandbox.Game.Entities.Cube.MyTerminalBlock
Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyFueledPowerProducer
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
public abstract class MyFueledPowerProducer : MyFunctionalBlock, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyUpgradableBlock, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyTieredUpdateBlock, IMyUpdateTimer, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner, IMyTextPanelComponentOwner, IMyConveyorEndpointBlock, IMyPowerProducer, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyPowerProducer, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Constructors
MyFueledPowerProducer()
Declaration
protected MyFueledPowerProducer()
Fields
FUEL_CONSUMPTION_MULTIPLIER
Declaration
public static float FUEL_CONSUMPTION_MULTIPLIER
Field Value
Type |
Description |
System.Single |
|
m_previousCapacity
Declaration
protected float m_previousCapacity
Field Value
Type |
Description |
System.Single |
|
Properties
BlockDefinition
Declaration
public MyFueledPowerProducerDefinition BlockDefinition { get; }
Property Value
Capacity
Declaration
public float Capacity { get; set; }
Property Value
Type |
Description |
System.Single |
|
ConveyorEndpoint
Declaration
public IMyConveyorEndpoint ConveyorEndpoint { get; }
Property Value
Type |
Description |
Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpoint |
|
CurrentOutput
Declaration
public float CurrentOutput { get; }
Property Value
Type |
Description |
System.Single |
|
CurrentOutputRatio
Declaration
public float CurrentOutputRatio { get; }
Property Value
Type |
Description |
System.Single |
|
IsSupplied
Declaration
public bool IsSupplied { get; }
Property Value
Type |
Description |
System.Boolean |
|
MaxOutput
Declaration
public virtual float MaxOutput { get; }
Property Value
Type |
Description |
System.Single |
|
SourceComp
Declaration
public MyResourceSourceComponent SourceComp { get; set; }
Property Value
Methods
AllowSelfPulling()
Declaration
public virtual bool AllowSelfPulling()
Returns
Type |
Description |
System.Boolean |
|
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()
ComponentStack_IsFunctionalChanged()
Declaration
protected virtual void ComponentStack_IsFunctionalChanged()
ComputeMaxProduction()
Declaration
protected virtual float ComputeMaxProduction()
Returns
Type |
Description |
System.Single |
|
GetMaxCapacity()
Declaration
public virtual float GetMaxCapacity()
Returns
Type |
Description |
System.Single |
|
GetObjectBuilderCubeBlock(Boolean)
Declaration
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false)
Parameters
Type |
Name |
Description |
System.Boolean |
copy |
|
Returns
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.GetObjectBuilderCubeBlock(System.Boolean)
Declaration
public virtual PullInformation GetPullInformation()
Returns
Type |
Description |
Sandbox.Game.GameSystems.Conveyors.PullInformation |
|
Declaration
public virtual PullInformation GetPushInformation()
Returns
Type |
Description |
Sandbox.Game.GameSystems.Conveyors.PullInformation |
|
Init(MyObjectBuilder_CubeBlock, MyCubeGrid)
Declaration
public override void Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
Parameters
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.Init(VRage.Game.MyObjectBuilder_CubeBlock, Sandbox.Game.Entities.MyCubeGrid)
InitializeConveyorEndpoint()
Declaration
public void InitializeConveyorEndpoint()
OnAddedToScene(Object)
Declaration
public override void OnAddedToScene(object source)
Parameters
Type |
Name |
Description |
System.Object |
source |
|
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnAddedToScene(System.Object)
OnCapacityChanged(SyncBase)
Declaration
protected virtual void OnCapacityChanged(SyncBase obj)
Parameters
Type |
Name |
Description |
VRage.Sync.SyncBase |
obj |
|
OnCurrentOrMaxOutputChanged(MyDefinitionId, Single, MyResourceSourceComponent)
Declaration
protected virtual void OnCurrentOrMaxOutputChanged(MyDefinitionId changedResourceId, float oldOutput, MyResourceSourceComponent source)
Parameters
OnEnabledChanged()
Declaration
protected override void OnEnabledChanged()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnEnabledChanged()
OnProductionChanged()
Declaration
protected virtual void OnProductionChanged()
OnStartWorking()
Declaration
protected override void OnStartWorking()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnStartWorking()
OnStopWorking()
Declaration
protected override void OnStopWorking()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnStopWorking()
UpdateDetailedInfo(StringBuilder)
Declaration
protected override void UpdateDetailedInfo(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|
Overrides
Sandbox.Game.Entities.Cube.MyTerminalBlock.UpdateDetailedInfo(System.Text.StringBuilder)
UpdateDisplay()
Declaration
protected void UpdateDisplay()
Events
CurrentOutputRatioChanged
Declaration
public event Action<IMyPowerProducer, float, float> CurrentOutputRatioChanged
Event Type
Implements
Extension Methods