Space Engineers
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent Class Reference
Inheritance diagram for Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent:
Sandbox.Game.Entities.Character.MyCharacterComponent VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

virtual void Init (MyObjectBuilder_Character characterOb)
 
virtual void GetObjectBuilder (MyObjectBuilder_Character objectBuilder)
 
override void UpdateBeforeSimulation100 ()
 
void SwitchHelmet ()
 
void ShowRefillFromBottleNotification (MyDefinitionId gasType)
 
bool ContainsGasStorage (MyDefinitionId gasId)
 
float GetGasFillLevel (MyDefinitionId gasId)
 
void UpdateStoredGasLevel (ref MyDefinitionId gasId, float fillLevel)
 
void AppendSinkData (List< MyResourceSinkInfo > sinkData)
 
void AppendSourceData (List< MyResourceSourceInfo > sourceData)
 
- Public Member Functions inherited from Sandbox.Game.Entities.Character.MyCharacterComponent
virtual void UpdateAfterSimulation10 ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdateAfterSimulation ()
 
virtual void OnCharacterDead ()
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
virtual void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 
virtual MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
virtual void Deserialize (MyObjectBuilder_ComponentBase builder)
 
virtual void Init (MyComponentDefinitionBase definition)
 
virtual bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 

Public Attributes

float EnvironmentOxygenLevel
 
float OxygenLevelAtCharacterLocation
 
MyCubeGrid OxygenSourceGrid = null
 

Static Public Attributes

static readonly float LOW_OXYGEN_RATIO = 0.2f
 
static readonly float GAS_REFILL_RATION = 0.3f
 
static readonly MyDefinitionId OxygenId = new MyDefinitionId(typeof(MyObjectBuilder_GasProperties), "Oxygen")
 
static readonly MyDefinitionId HydrogenId = new MyDefinitionId(typeof(MyObjectBuilder_GasProperties), "Hydrogen")
 

Properties

MyResourceSinkComponent CharacterGasSink [get, set]
 
MyResourceSourceComponent CharacterGasSource [get, set]
 
float OxygenCapacity [get]
 
float SuitOxygenAmount [get, set]
 
float SuitOxygenAmountMissing [get]
 
float SuitOxygenLevel [get, set]
 
bool IsOxygenLevelLow [get]
 
bool HelmetEnabled [get]
 
bool NeedsOxygenFromSuit [get, set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from Sandbox.Game.Entities.Character.MyCharacterComponent
bool NeedsUpdateAfterSimulation [get, set]
 This set's flag for update. Set it after add to container! More...
 
bool NeedsUpdateAfterSimulation10 [get, set]
 This set's flag for update. Set it after add to container! More...
 
bool NeedsUpdateBeforeSimulation100 [get, set]
 This set's flag for update. Set it after add to container! More...
 
bool NeedsUpdateBeforeSimulation [get, set]
 This set's flag for update. Set it after add to container! More...
 
MyCharacter Character [get]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 26 of file MyCharacterOxygenComponent.cs.

Member Function Documentation

void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.AppendSinkData ( List< MyResourceSinkInfo sinkData)
inline

Definition at line 753 of file MyCharacterOxygenComponent.cs.

void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.AppendSourceData ( List< MyResourceSourceInfo sourceData)
inline

Definition at line 768 of file MyCharacterOxygenComponent.cs.

bool Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.ContainsGasStorage ( MyDefinitionId  gasId)
inline

Definition at line 625 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.GetGasFillLevel ( MyDefinitionId  gasId)
inline

Definition at line 644 of file MyCharacterOxygenComponent.cs.

virtual void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.GetObjectBuilder ( MyObjectBuilder_Character  objectBuilder)
inlinevirtual

Definition at line 212 of file MyCharacterOxygenComponent.cs.

virtual void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.Init ( MyObjectBuilder_Character  characterOb)
inlinevirtual

Definition at line 127 of file MyCharacterOxygenComponent.cs.

void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.ShowRefillFromBottleNotification ( MyDefinitionId  gasType)
inline

Definition at line 617 of file MyCharacterOxygenComponent.cs.

void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.SwitchHelmet ( )
inline

Definition at line 520 of file MyCharacterOxygenComponent.cs.

override void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.UpdateBeforeSimulation100 ( )
inlinevirtual
void Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.UpdateStoredGasLevel ( ref MyDefinitionId  gasId,
float  fillLevel 
)
inline

Definition at line 653 of file MyCharacterOxygenComponent.cs.

Member Data Documentation

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.EnvironmentOxygenLevel

Definition at line 50 of file MyCharacterOxygenComponent.cs.

readonly float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.GAS_REFILL_RATION = 0.3f
static

Definition at line 45 of file MyCharacterOxygenComponent.cs.

readonly MyDefinitionId Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.HydrogenId = new MyDefinitionId(typeof(MyObjectBuilder_GasProperties), "Hydrogen")
static

Definition at line 68 of file MyCharacterOxygenComponent.cs.

readonly float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.LOW_OXYGEN_RATIO = 0.2f
static

Definition at line 44 of file MyCharacterOxygenComponent.cs.

readonly MyDefinitionId Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.OxygenId = new MyDefinitionId(typeof(MyObjectBuilder_GasProperties), "Oxygen")
static

Definition at line 67 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.OxygenLevelAtCharacterLocation

Definition at line 51 of file MyCharacterOxygenComponent.cs.

MyCubeGrid Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.OxygenSourceGrid = null

Definition at line 52 of file MyCharacterOxygenComponent.cs.

Property Documentation

MyResourceSinkComponent Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.CharacterGasSink
getset

Definition at line 64 of file MyCharacterOxygenComponent.cs.

MyResourceSourceComponent Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.CharacterGasSource
getset

Definition at line 65 of file MyCharacterOxygenComponent.cs.

override string Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.ComponentTypeDebugString
get

Definition at line 125 of file MyCharacterOxygenComponent.cs.

bool Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.HelmetEnabled
get

Definition at line 121 of file MyCharacterOxygenComponent.cs.

bool Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.IsOxygenLevelLow
get

Definition at line 119 of file MyCharacterOxygenComponent.cs.

bool Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.NeedsOxygenFromSuit
getset

Definition at line 122 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.OxygenCapacity
get

Definition at line 84 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.SuitOxygenAmount
getset

Definition at line 92 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.SuitOxygenAmountMissing
get

Definition at line 100 of file MyCharacterOxygenComponent.cs.

float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.SuitOxygenLevel
getset

Definition at line 103 of file MyCharacterOxygenComponent.cs.


The documentation for this class was generated from the following file: