Space Engineers
|
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< MyEntityComponentBase > | OnAfterAddedToContainer |
Action< MyEntityComponentBase > | BeforeRemovedFromContainer |
Definition at line 26 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 753 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 768 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 625 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 644 of file MyCharacterOxygenComponent.cs.
|
inlinevirtual |
Definition at line 212 of file MyCharacterOxygenComponent.cs.
|
inlinevirtual |
Definition at line 127 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 617 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 520 of file MyCharacterOxygenComponent.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Entities.Character.MyCharacterComponent.
Definition at line 233 of file MyCharacterOxygenComponent.cs.
|
inline |
Definition at line 653 of file MyCharacterOxygenComponent.cs.
float Sandbox.Game.Entities.Character.Components.MyCharacterOxygenComponent.EnvironmentOxygenLevel |
Definition at line 50 of file MyCharacterOxygenComponent.cs.
|
static |
Definition at line 45 of file MyCharacterOxygenComponent.cs.
|
static |
Definition at line 68 of file MyCharacterOxygenComponent.cs.
|
static |
Definition at line 44 of file MyCharacterOxygenComponent.cs.
|
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.
|
getset |
Definition at line 64 of file MyCharacterOxygenComponent.cs.
|
getset |
Definition at line 65 of file MyCharacterOxygenComponent.cs.
|
get |
Definition at line 125 of file MyCharacterOxygenComponent.cs.
|
get |
Definition at line 121 of file MyCharacterOxygenComponent.cs.
|
get |
Definition at line 119 of file MyCharacterOxygenComponent.cs.
|
getset |
Definition at line 122 of file MyCharacterOxygenComponent.cs.
|
get |
Definition at line 84 of file MyCharacterOxygenComponent.cs.
|
getset |
Definition at line 92 of file MyCharacterOxygenComponent.cs.
|
get |
Definition at line 100 of file MyCharacterOxygenComponent.cs.
|
getset |
Definition at line 103 of file MyCharacterOxygenComponent.cs.