Show / Hide Table of Contents

Class MyCharacterJetpackComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyCharacterComponent
MyCharacterJetpackComponent
Inherited Members
MyCharacterComponent.UpdateAfterSimulation10()
MyCharacterComponent.UpdateBeforeSimulation()
MyCharacterComponent.UpdateBeforeSimulationParallel()
MyCharacterComponent.UpdateAfterSimulation()
MyCharacterComponent.UpdateAfterSimulationParallel()
MyCharacterComponent.UpdateBeforeSimulation100()
MyCharacterComponent.NeedsUpdateAfterSimulation
MyCharacterComponent.NeedsUpdateAfterSimulationParallel
MyCharacterComponent.NeedsUpdateSimulation
MyCharacterComponent.NeedsUpdateAfterSimulation10
MyCharacterComponent.NeedsUpdateBeforeSimulation100
MyCharacterComponent.NeedsUpdateBeforeSimulation
MyCharacterComponent.NeedsUpdateBeforeSimulationParallel
MyCharacterComponent.Character
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Entities.Character.Components
Assembly: Sandbox.Game.dll
Syntax
public class MyCharacterJetpackComponent : MyCharacterComponent, IMyEntityComponentBase, IMyComponentBase

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

MinimumInputRequirement

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

ComponentTypeDebugString

Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type Description
System.String
Overrides
MyCharacterComponent.ComponentTypeDebugString

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
Type Description
Vector3

ForceMagnitude

Declaration
public float ForceMagnitude { get; }
Property Value
Type Description
System.Single

FuelConverterDefinition

Declaration
public MyFuelConverterInfo FuelConverterDefinition { get; }
Property Value
Type Description
MyFuelConverterInfo

FuelDefinition

Declaration
public MyGasProperties FuelDefinition { get; }
Property Value
Type Description
MyGasProperties

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
Type Name Description
MyObjectBuilder_Character characterBuilder

Init(MyObjectBuilder_Character)

Declaration
public virtual void Init(MyObjectBuilder_Character characterBuilder)
Parameters
Type Name Description
MyObjectBuilder_Character characterBuilder

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

OnAddedToContainer()

Declaration
public override void OnAddedToContainer()
Overrides
MyCharacterComponent.OnAddedToContainer()

OnBeforeRemovedFromContainer()

Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
MyCharacterComponent.OnBeforeRemovedFromContainer()

OnCharacterDead()

Declaration
public override void OnCharacterDead()
Overrides
MyCharacterComponent.OnCharacterDead()

Simulate()

Declaration
public override void Simulate()
Overrides
MyCharacterComponent.Simulate()

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
public void UpdateFall()

UpdatePhysicalMovement()

Declaration
public bool UpdatePhysicalMovement()
Returns
Type Description
System.Boolean

Extension Methods

MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
  • Constructors
    • MyCharacterJetpackComponent()
  • Fields
    • FuelCriticalThresholdPlayer
    • FuelLowThresholdPlayer
    • MinimumInputRequirement
    • OnPoweredChanged
    • ROTATION_FACTOR
  • Properties
    • CanDrawThrusts
    • ComponentTypeDebugString
    • ConsumptionFactorPerG
    • CurrentAutoEnableDelay
    • DampenersEnabled
    • DampenersTurnedOn
    • EffectivenessAtMaxInfluence
    • EffectivenessAtMinInfluence
    • FinalThrust
    • ForceMagnitude
    • FuelConverterDefinition
    • FuelDefinition
    • IsFlying
    • IsPowered
    • MaxPlanetaryInfluence
    • MaxPowerConsumption
    • MinPlanetaryInfluence
    • MinPowerConsumption
    • NeedsAtmosphereForInfluence
    • Running
    • TurnedOn
  • Methods
    • ClearMovement()
    • EnableDampeners(Boolean)
    • GetObjectBuilder(MyObjectBuilder_Character)
    • Init(MyObjectBuilder_Character)
    • MoveAndRotate(ref Vector3, ref Vector2, Single, Boolean)
    • OnAddedToContainer()
    • OnBeforeRemovedFromContainer()
    • OnCharacterDead()
    • Simulate()
    • SwitchDamping()
    • SwitchThrusts()
    • TurnOnJetpack(Boolean, Boolean, Boolean)
    • UpdateFall()
    • UpdatePhysicalMovement()
  • Extension Methods
Back to top
Generated by DocFX
☀
☾