Class MyThrust
Inheritance
System.Object
Sandbox.Game.Entities.Cube.MySyncedBlock
Sandbox.Game.Entities.Cube.MyTerminalBlock
Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyThrust
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
[MyTerminalInterface]
public class MyThrust : MyFunctionalBlock, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyUpgradableBlock, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyTieredUpdateBlock, IMyUpdateTimer, IMyTextSurfaceProvider, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner, IMyTextPanelComponentOwner, IMyThrust, IMyThrust, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity, IMyConveyorEndpointBlock
Constructors
MyThrust()
Declaration
Fields
ThrustLengthRand
Declaration
public float ThrustLengthRand
Field Value
| Type |
Description |
| System.Single |
|
Properties
BlockDefinition
Declaration
public MyThrustDefinition BlockDefinition { get; }
Property Value
ConveyorEndpoint
Declaration
public IMyConveyorEndpoint ConveyorEndpoint { get; }
Property Value
| Type |
Description |
| Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpoint |
|
CurrentStrength
Declaration
public float CurrentStrength { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
FlameDamageLengthScale
Declaration
public float FlameDamageLengthScale { get; }
Property Value
| Type |
Description |
| System.Single |
|
FlameGlareIndex
Declaration
public int FlameGlareIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
FlameLengthMaterial
Declaration
public MyStringId FlameLengthMaterial { get; }
Property Value
FlamePointMaterial
Declaration
public MyStringId FlamePointMaterial { get; }
Property Value
Flames
Declaration
public ListReader<MyThrustFlameAnimator.FlameInfo> Flames { get; }
Property Value
| Type |
Description |
| ListReader<Sandbox.RenderDirect.ActorComponents.MyThrustFlameAnimator.FlameInfo> |
|
Flares
Declaration
public MyFlareDefinition Flares { get; }
Property Value
FuelConverterDefinition
Declaration
public MyFuelConverterInfo FuelConverterDefinition { get; }
Property Value
FuelDefinition
Declaration
public MyGasProperties FuelDefinition { get; }
Property Value
GridThrustDirection
Declaration
public Vector3I GridThrustDirection { get; }
Property Value
IsOverridden
Whether this thrust is overriden.
Declaration
public bool IsOverridden { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsPowered
Declaration
public bool IsPowered { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsTieredUpdateSupported
Declaration
public override bool IsTieredUpdateSupported { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.IsTieredUpdateSupported
MaxPowerConsumption
Declaration
public float MaxPowerConsumption { get; }
Property Value
| Type |
Description |
| System.Single |
|
MinPowerConsumption
Declaration
public float MinPowerConsumption { get; }
Property Value
| Type |
Description |
| System.Single |
|
Propeller
Declaration
public MyEntity Propeller { get; }
Property Value
Render
Declaration
public MyRenderComponentThrust Render { get; set; }
Property Value
ThrustForce
Thrust force direction is opposite to thrust forward vector orientation
Declaration
public Vector3 ThrustForce { get; }
Property Value
ThrustForceLength
Declaration
public float ThrustForceLength { get; }
Property Value
| Type |
Description |
| System.Single |
|
ThrustForwardVector
Declaration
public Vector3I ThrustForwardVector { get; }
Property Value
ThrustOverride
Overridden thrust in Newtons
Declaration
public float ThrustOverride { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
ThrustOverrideOverForceLen
Returns ThrustOverride / ThrustForceLength. No division is actually needed after fraction simplification.
Declaration
public float ThrustOverrideOverForceLen { get; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AllowSelfPulling()
Declaration
public 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()
ClearThrustComponent()
Declaration
public void ClearThrustComponent()
Closing()
Declaration
protected override void Closing()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.Closing()
Components_ComponentAdded(Type, IMyEntityComponentBase)
Declaration
protected override void Components_ComponentAdded(Type t, IMyEntityComponentBase c)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| VRage.Game.Components.Interfaces.IMyEntityComponentBase |
c |
|
Overrides
Components_ComponentRemoved(Type, IMyEntityComponentBase)
Declaration
protected override void Components_ComponentRemoved(Type t, IMyEntityComponentBase c)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| VRage.Game.Components.Interfaces.IMyEntityComponentBase |
c |
|
Overrides
CreateTerminalControls()
Declaration
protected override void CreateTerminalControls()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.CreateTerminalControls()
CubeBlock_OnWorkingChanged(MyCubeBlock)
Declaration
public void CubeBlock_OnWorkingChanged(MyCubeBlock block)
Parameters
DoUpdateTimerTick()
Declaration
public override void DoUpdateTimerTick()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.DoUpdateTimerTick()
GetDamageCapsuleLine(MyThrustFlameAnimator.FlameInfo, ref MatrixD)
Declaration
public LineD GetDamageCapsuleLine(MyThrustFlameAnimator.FlameInfo info, ref MatrixD matrixWorld)
Parameters
| Type |
Name |
Description |
| Sandbox.RenderDirect.ActorComponents.MyThrustFlameAnimator.FlameInfo |
info |
|
| MatrixD |
matrixWorld |
|
Returns
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)
GetDelegate(Action<IMyThrust, Single>)
Declaration
public static Action<MyThrust, float> GetDelegate(Action<IMyThrust, float> value)
Parameters
| Type |
Name |
Description |
| System.Action<IMyThrust, System.Single> |
value |
|
Returns
| Type |
Description |
| System.Action<MyThrust, 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 PullInformation GetPullInformation()
Returns
| Type |
Description |
| Sandbox.Game.GameSystems.Conveyors.PullInformation |
|
Declaration
public PullInformation GetPushInformation()
Returns
| Type |
Description |
| Sandbox.Game.GameSystems.Conveyors.PullInformation |
|
GetTerminalName(StringBuilder)
Declaration
public override void GetTerminalName(StringBuilder result)
Parameters
| Type |
Name |
Description |
| System.Text.StringBuilder |
result |
|
Overrides
Sandbox.Game.Entities.Cube.MyTerminalBlock.GetTerminalName(System.Text.StringBuilder)
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
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.Init(VRage.Game.MyObjectBuilder_CubeBlock, Sandbox.Game.Entities.MyCubeGrid)
InitComponents()
Declaration
public override void InitComponents()
Overrides
InitializeConveyorEndpoint()
Declaration
public void InitializeConveyorEndpoint()
InstantiateSubpart(MyModelDummy, ref MyEntitySubpart.Data)
Declaration
protected override MyEntitySubpart InstantiateSubpart(MyModelDummy subpartDummy, ref MyEntitySubpart.Data data)
Parameters
Returns
Overrides
OnCubeGridChanged(MyCubeGrid)
Declaration
public override void OnCubeGridChanged(MyCubeGrid oldGrid)
Parameters
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()
OnRegisteredToGridSystems()
Declaration
public override void OnRegisteredToGridSystems()
Overrides
OnUnregisteredFromGridSystems()
Declaration
public override void OnUnregisteredFromGridSystems()
Overrides
RandomizeFlameProperties(Single, Single, ref Single, ref Single)
Declaration
public static void RandomizeFlameProperties(float strength, float flameScale, ref float thrustRadiusRand, ref float thrustLengthRand)
Parameters
| Type |
Name |
Description |
| System.Single |
strength |
|
| System.Single |
flameScale |
|
| System.Single |
thrustRadiusRand |
|
| System.Single |
thrustLengthRand |
|
Sink_IsPoweredChanged()
Declaration
public void Sink_IsPoweredChanged()
TiersChanged()
Declaration
protected override void TiersChanged()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.TiersChanged()
UpdateAfterSimulation()
Declaration
public override void UpdateAfterSimulation()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation()
UpdateAfterSimulation10()
Declaration
public override void UpdateAfterSimulation10()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation10()
UpdateAfterSimulation100()
Declaration
public override void UpdateAfterSimulation100()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation100()
UpdateBeforeSimulation100()
Declaration
public override void UpdateBeforeSimulation100()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateBeforeSimulation100()
UpdateDetailedInfo(StringBuilder)
Declaration
protected override void UpdateDetailedInfo(StringBuilder detailedInfo)
Parameters
| Type |
Name |
Description |
| System.Text.StringBuilder |
detailedInfo |
|
Overrides
Sandbox.Game.Entities.Cube.MyTerminalBlock.UpdateDetailedInfo(System.Text.StringBuilder)
Events
ThrustChanged
Declaration
public event Action<IMyThrust, float, float> ThrustChanged
Event Type
| Type |
Description |
| System.Action<IMyThrust, System.Single, System.Single> |
|
ThrustOverrideChanged
Declaration
public event Action<MyThrust, float> ThrustOverrideChanged
Event Type
| Type |
Description |
| System.Action<MyThrust, System.Single> |
|
Explicit Interface Implementations
IMyThrust.PowerConsumptionMultiplier
Declaration
float IMyThrust.PowerConsumptionMultiplier { get; set; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.ThrustMultiplier
Declaration
float IMyThrust.ThrustMultiplier { get; set; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.ThrustOverrideChanged
Declaration
event Action<IMyThrust, float> IMyThrust.ThrustOverrideChanged
Returns
| Type |
Description |
| System.Action<IMyThrust, System.Single> |
|
IMyThrust.CurrentThrust
Declaration
float IMyThrust.CurrentThrust { get; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.CurrentThrustPercentage
Declaration
float IMyThrust.CurrentThrustPercentage { get; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.GridThrustDirection
Declaration
Vector3I IMyThrust.GridThrustDirection { get; }
Returns
IMyThrust.MaxEffectiveThrust
Declaration
float IMyThrust.MaxEffectiveThrust { get; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.MaxThrust
Declaration
float IMyThrust.MaxThrust { get; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.ThrustOverride
Declaration
float IMyThrust.ThrustOverride { get; set; }
Returns
| Type |
Description |
| System.Single |
|
IMyThrust.ThrustOverridePercentage
Declaration
float IMyThrust.ThrustOverridePercentage { get; set; }
Returns
| Type |
Description |
| System.Single |
|
Implements
Extension Methods