Show / Hide Table of Contents

Class MyCharacterOxygenComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyEventProxyEntityComponent
MyUpdatingEntityComponent
MyCharacterOxygenComponent
Inherited Members
MyUpdatingEntityComponent.UpdateOnceBeforeFrame()
MyUpdatingEntityComponent.UpdateBeforeSimulation()
MyUpdatingEntityComponent.UpdateBeforeSimulationParallel()
MyUpdatingEntityComponent.UpdateSimulate()
MyUpdatingEntityComponent.UpdateAfterSimulation()
MyUpdatingEntityComponent.UpdateAfterSimulation10()
MyUpdatingEntityComponent.UpdateAfterSimulation100()
MyUpdatingEntityComponent.UpdateAfterSimulationParallel()
MyUpdatingEntityComponent.ParentEntity
MyUpdatingEntityComponent.NeedsUpdate
MyUpdatingEntityComponent.NeedsUpdateBeforeSimulation
MyUpdatingEntityComponent.NeedsUpdateBeforeSimulation100
MyUpdatingEntityComponent.NeedsUpdateSimulation
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation10
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation100
MyUpdatingEntityComponent.UpdateParallel
MyUpdatingEntityComponent.UpdatingType
MyUpdatingEntityComponent.NeedsUpdateChanged
MyUpdatingEntityComponent.UpdateParallelChanged
MyEventProxyEntityComponent.SyncType
MyEventProxyEntityComponent.OnBeforeRemovedFromContainer()
MyEventProxyEntityComponent.AttachSyncToEntity
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
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
[MyComponentType]
public class MyCharacterOxygenComponent : MyUpdatingEntityComponent, IMyEntityComponentBase, IMyComponentBase, IMyEventProxy, IMyEventOwner, IMyUpdatingEntityComponent

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

Character

Declaration
public MyCharacter Character { get; }
Property Value
Type Description
Sandbox.Game.Entities.Character.MyCharacter

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
MyEntityComponentBase.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

OxygenConsumptionRate

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

OxygenConsumptionRateMutliplier

Declaration
public float OxygenConsumptionRateMutliplier { get; set; }
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
MyUpdatingEntityComponent.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
☀
☾