Class MyCharacterJetpackComponent
Inheritance
System.Object
MyCharacterJetpackComponent
Assembly: Sandbox.Game.dll
Syntax
[MyComponentType]
public class MyCharacterJetpackComponent : MyUpdatingEntityComponent, IMyEntityComponentBase, IMyComponentBase, IMyEventProxy, IMyEventOwner, IMyUpdatingEntityComponent, IMyCharacterComponent
Constructors
MyCharacterJetpackComponent()
Declaration
public MyCharacterJetpackComponent()
Fields
FuelCriticalThresholdPlayer
Declaration
public const float FuelCriticalThresholdPlayer = 0.05F
Field Value
| Type |
Description |
| System.Single |
|
FuelLowThresholdPlayer
Declaration
public const float FuelLowThresholdPlayer = 0.1F
Field Value
| Type |
Description |
| System.Single |
|
Declaration
public const float MinimumInputRequirement = 1E-06F
Field Value
| Type |
Description |
| System.Single |
|
OnPoweredChanged
Declaration
public Action<bool> OnPoweredChanged
Field Value
| Type |
Description |
| System.Action<System.Boolean> |
|
ROTATION_FACTOR
Declaration
public const float ROTATION_FACTOR = 0.02F
Field Value
| Type |
Description |
| System.Single |
|
Properties
CanDrawThrusts
Declaration
public bool CanDrawThrusts { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Character
Declaration
public MyCharacter Character { get; }
Property Value
| Type |
Description |
| Sandbox.Game.Entities.Character.MyCharacter |
|
ComponentTypeDebugString
Declaration
public override string ComponentTypeDebugString { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
ConsumptionFactorPerG
Declaration
public float ConsumptionFactorPerG { get; }
Property Value
| Type |
Description |
| System.Single |
|
CurrentAutoEnableDelay
Declaration
public float CurrentAutoEnableDelay { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
DampenersEnabled
Declaration
public bool DampenersEnabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
DampenersTurnedOn
Declaration
public bool DampenersTurnedOn { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
EffectivenessAtMaxInfluence
Declaration
public float EffectivenessAtMaxInfluence { get; }
Property Value
| Type |
Description |
| System.Single |
|
EffectivenessAtMinInfluence
Declaration
public float EffectivenessAtMinInfluence { get; }
Property Value
| Type |
Description |
| System.Single |
|
FinalThrust
Declaration
public Vector3 FinalThrust { get; }
Property Value
ForceMagnitude
Declaration
public float ForceMagnitude { get; }
Property Value
| Type |
Description |
| System.Single |
|
FuelConverterDefinition
Declaration
public MyFuelConverterInfo FuelConverterDefinition { get; }
Property Value
FuelDefinition
Declaration
public MyGasProperties FuelDefinition { get; }
Property Value
IsFlying
Declaration
public bool IsFlying { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsPowered
Declaration
public bool IsPowered { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
MaxPlanetaryInfluence
Declaration
public float MaxPlanetaryInfluence { get; }
Property Value
| Type |
Description |
| System.Single |
|
MaxPowerConsumption
Declaration
public float MaxPowerConsumption { get; }
Property Value
| Type |
Description |
| System.Single |
|
MinPlanetaryInfluence
Declaration
public float MinPlanetaryInfluence { get; }
Property Value
| Type |
Description |
| System.Single |
|
MinPowerConsumption
Declaration
public float MinPowerConsumption { get; }
Property Value
| Type |
Description |
| System.Single |
|
NeedsAtmosphereForInfluence
Declaration
public bool NeedsAtmosphereForInfluence { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Running
Declaration
public bool Running { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
TurnedOn
Declaration
public bool TurnedOn { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
ClearMovement()
Declaration
public void ClearMovement()
EnableDampeners(Boolean)
Declaration
public void EnableDampeners(bool enable)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enable |
|
GetObjectBuilder(MyObjectBuilder_Character)
Declaration
public virtual void GetObjectBuilder(MyObjectBuilder_Character characterBuilder)
Parameters
Init(MyObjectBuilder_Character)
Declaration
public virtual void Init(MyObjectBuilder_Character characterBuilder)
Parameters
MoveAndRotate(ref Vector3, ref Vector2, Single, Boolean)
Declaration
public void MoveAndRotate(ref Vector3 moveIndicator, ref Vector2 rotationIndicator, float roll, bool canRotate)
Parameters
| Type |
Name |
Description |
| Vector3 |
moveIndicator |
|
| Vector2 |
rotationIndicator |
|
| System.Single |
roll |
|
| System.Boolean |
canRotate |
|
OnBeforeRemovedFromContainer()
Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
OnCharacterDead()
Declaration
public void OnCharacterDead()
SwitchDamping()
Declaration
public void SwitchDamping()
SwitchThrusts()
Declaration
public void SwitchThrusts()
TurnOnJetpack(Boolean, Boolean, Boolean)
Declaration
public void TurnOnJetpack(bool newState, bool fromInit = false, bool fromLoad = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
newState |
|
| System.Boolean |
fromInit |
|
| System.Boolean |
fromLoad |
|
UpdateFall()
Declaration
UpdatePhysicalMovement()
Declaration
public bool UpdatePhysicalMovement()
Returns
| Type |
Description |
| System.Boolean |
|
UpdateSimulate()
Declaration
public override void UpdateSimulate()
Overrides
Implements
Extension Methods