Class MyCharacterOxygenComponent
Inheritance
System.Object
MyCharacterOxygenComponent
Assembly: Sandbox.Game.dll
Syntax
public class MyCharacterOxygenComponent : MyCharacterComponent, IMyEntityComponentBase, IMyComponentBase
Constructors
MyCharacterOxygenComponent()
Declaration
public MyCharacterOxygenComponent()
Fields
GAS_REFILL_RATION
Declaration
public static readonly float GAS_REFILL_RATION
Field Value
Type |
Description |
System.Single |
|
HydrogenId
Declaration
public static readonly MyDefinitionId HydrogenId
Field Value
LOW_OXYGEN_RATIO
Declaration
public static readonly float LOW_OXYGEN_RATIO
Field Value
Type |
Description |
System.Single |
|
OxygenId
Declaration
public static readonly MyDefinitionId OxygenId
Field Value
Properties
CharacterGasSink
Declaration
public MyResourceSinkComponent CharacterGasSink { get; set; }
Property Value
CharacterGasSource
Declaration
public MyResourceSourceComponent CharacterGasSource { get; set; }
Property Value
ComponentTypeDebugString
Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
EnvironmentOxygenLevel
Get Environment Oxygen Level - backwards compatibility
Declaration
public float EnvironmentOxygenLevel { get; }
Property Value
Type |
Description |
System.Single |
|
HelmetEnabled
Declaration
public bool HelmetEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
NeedsOxygenFromSuit
Declaration
public bool NeedsOxygenFromSuit { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
OxygenCapacity
Declaration
public float OxygenCapacity { get; }
Property Value
Type |
Description |
System.Single |
|
OxygenLevelAtCharacterLocation
Get Oxygen Level at Character Location - backwards compatibility
Declaration
public float OxygenLevelAtCharacterLocation { get; }
Property Value
Type |
Description |
System.Single |
|
SuitOxygenAmount
Declaration
public float SuitOxygenAmount { get; set; }
Property Value
Type |
Description |
System.Single |
|
SuitOxygenAmountMissing
Declaration
public float SuitOxygenAmountMissing { get; }
Property Value
Type |
Description |
System.Single |
|
SuitOxygenLevel
Declaration
public float SuitOxygenLevel { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
AppendSinkData(List<MyResourceSinkInfo>)
Declaration
public void AppendSinkData(List<MyResourceSinkInfo> sinkData)
Parameters
AppendSourceData(List<MyResourceSourceInfo>)
Declaration
public void AppendSourceData(List<MyResourceSourceInfo> sourceData)
Parameters
ContainsGasStorage(MyDefinitionId)
Declaration
public bool ContainsGasStorage(MyDefinitionId gasId)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetGasFillLevel(MyDefinitionId)
Declaration
public float GetGasFillLevel(MyDefinitionId gasId)
Parameters
Returns
Type |
Description |
System.Single |
|
GetObjectBuilder(MyObjectBuilder_Character)
Declaration
public virtual void GetObjectBuilder(MyObjectBuilder_Character objectBuilder)
Parameters
Init(MyObjectBuilder_Character)
Declaration
public virtual void Init(MyObjectBuilder_Character characterOb)
Parameters
SwitchHelmet()
Declaration
public void SwitchHelmet()
UpdateBeforeSimulation100()
Declaration
public override void UpdateBeforeSimulation100()
Overrides
UpdateStoredGasLevel(ref MyDefinitionId, Single)
Declaration
public void UpdateStoredGasLevel(ref MyDefinitionId gasId, float fillLevel)
Parameters
Extension Methods