Show / Hide Table of Contents

Class MyCharacterOxygenComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyCharacterComponent
MyCharacterOxygenComponent
Inherited Members
MyCharacterComponent.UpdateAfterSimulation10()
MyCharacterComponent.UpdateBeforeSimulation()
MyCharacterComponent.UpdateBeforeSimulationParallel()
MyCharacterComponent.Simulate()
MyCharacterComponent.UpdateAfterSimulation()
MyCharacterComponent.UpdateAfterSimulationParallel()
MyCharacterComponent.OnCharacterDead()
MyCharacterComponent.OnAddedToContainer()
MyCharacterComponent.OnBeforeRemovedFromContainer()
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 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
Type Description
MyDefinitionId

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

Properties

CharacterGasSink

Declaration
public MyResourceSinkComponent CharacterGasSink { get; set; }
Property Value
Type Description
MyResourceSinkComponent

CharacterGasSource

Declaration
public MyResourceSourceComponent CharacterGasSource { get; set; }
Property Value
Type Description
MyResourceSourceComponent

ComponentTypeDebugString

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

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
Type Name Description
System.Collections.Generic.List<MyResourceSinkInfo> sinkData

AppendSourceData(List<MyResourceSourceInfo>)

Declaration
public void AppendSourceData(List<MyResourceSourceInfo> sourceData)
Parameters
Type Name Description
System.Collections.Generic.List<MyResourceSourceInfo> sourceData

ContainsGasStorage(MyDefinitionId)

Declaration
public bool ContainsGasStorage(MyDefinitionId gasId)
Parameters
Type Name Description
MyDefinitionId gasId
Returns
Type Description
System.Boolean

GetGasFillLevel(MyDefinitionId)

Declaration
public float GetGasFillLevel(MyDefinitionId gasId)
Parameters
Type Name Description
MyDefinitionId gasId
Returns
Type Description
System.Single

GetObjectBuilder(MyObjectBuilder_Character)

Declaration
public virtual void GetObjectBuilder(MyObjectBuilder_Character objectBuilder)
Parameters
Type Name Description
MyObjectBuilder_Character objectBuilder

Init(MyObjectBuilder_Character)

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

SwitchHelmet()

Declaration
public void SwitchHelmet()

UpdateBeforeSimulation100()

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

UpdateStoredGasLevel(ref MyDefinitionId, Single)

Declaration
public void UpdateStoredGasLevel(ref MyDefinitionId gasId, float fillLevel)
Parameters
Type Name Description
MyDefinitionId gasId
System.Single fillLevel

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
Back to top
Generated by DocFX
☀
☾