Assembly: Sandbox.Game.dll

public class MyCharacterStatComponent: MyEntityStatComponent, IMyComponentBase, IMyEntityComponentBase, IMyEventProxy, IMyEventOwner, IMyUpdatingEntityComponent, IMyHazardReceiver

Fields

Member Description
static FOOD_ID
static HEALTH_RATIO_CRITICAL
static HEALTH_RATIO_LOW
static HealthId
static RADIATION_ID
static RADIATION_IMMUNITY_CHARACTER_SUBTYPE_ID
static RADIATION_IMMUNITY_ID
static SHOW_CAUSE_OF_DEATH_FADE_START_FRAMES
static SHOW_CAUSE_OF_DEATH_FRAMES
LastDamage
SyncType Inherited from MyEventProxyEntityComponent

Events

Member Description
static OnAfterAddedToContainer Inherited from MyEntityComponentBase
BeforeRemovedFromContainer Inherited from IMyEntityComponentBase
BeforeRemovedFromContainer Inherited from MyEntityComponentBase

Properties

Member Description
Food
FoodRatio
Health
HealthRatio
LastDamageSoundOverride
Radiation
RadiationImmunity
RadiationImmunityRatio
RadiationRatio
AttachSyncToEntity Inherited from MyEventProxyEntityComponent
AttachSyncToEntity Inherited from MyEntityComponentBase
ComponentTypeDebugString Inherited from IMyEntityComponentBase
ComponentTypeDebugString Inherited from MyEntityStatComponent
ComponentTypeDebugString Name of the base component type for debug purposes (e.g.: "Position")

Inherited from MyEntityComponentBase
Container Inherited from IMyEntityComponentBase
Container Inherited from MyEntityComponentBase
ContainerBase Inherited from IMyComponentBase
ContainerBase This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase.

Inherited from MyComponentBase
Entity Inherited from IMyEntityComponentBase
Entity Inherited from MyEntityComponentBase
FailedOnSceneAdd Inherited from MyComponentBase
NeedsUpdate Inherited from MyUpdatingEntityComponent
NeedsUpdateAfterSimulation Inherited from MyUpdatingEntityComponent
NeedsUpdateAfterSimulation10 Inherited from MyUpdatingEntityComponent
NeedsUpdateAfterSimulation100 Inherited from MyUpdatingEntityComponent
NeedsUpdateBeforeSimulation Inherited from MyUpdatingEntityComponent
NeedsUpdateBeforeSimulation100 Inherited from MyUpdatingEntityComponent
NeedsUpdateChanged Inherited from MyUpdatingEntityComponent
NeedsUpdateSimulation Inherited from MyUpdatingEntityComponent
ParentEntity Inherited from MyUpdatingEntityComponent
RemoveExistingComponentOnNewInsert Inherited from IMyComponentBase
RemoveExistingComponentOnNewInsert Inherited from MyComponentBase
Stats Inherited from MyEntityStatComponent
UpdateParallel Inherited from MyUpdatingEntityComponent
UpdateParallelChanged Inherited from MyUpdatingEntityComponent
UpdatingType Inherited from MyUpdatingEntityComponent

Constructors

Member Description
MyCharacterStatComponent()
MyEntityStatComponent() Inherited from MyEntityStatComponent
MyEventProxyEntityComponent() Inherited from MyEventProxyEntityComponent

Methods

Member Description
Consume(MyFixedPoint, MyConsumableItemDefinition)
Deserialize(MyObjectBuilder_ComponentBase)
DoDamage(float, object)
GetAccumulatedDelta() Gets accumulated incoming value change (before clamping and immunities) and resets it
OnAddedToContainer()
OnBeforeRemovedFromContainer()
OnHealthChanged(float, float, object)
SendStatChangeNotification(string, string, float)
SetDamageSoundOverride(string)
TryGetScript(out T)
UpdateAfterSimulationParallel()
Apply(float, MyStringHash, MyStringHash) Affects corresponding entity stat. Does not check admin protection. For Radiation, checks immunity stat. Positive value increases stat (except Health, which is reduced by positive damage value).

Inherited from IMyHazardReceiver
ApplyModifier(string) Inherited from MyEntityStatComponent
CanBeAffected() Is it sheltered from the exposure?

Inherited from IMyHazardReceiver
CanDoAction(string, out MyTuple<ushort, MyStringHash>, bool) Inherited from MyEntityStatComponent
Deserialize(MyObjectBuilder_ComponentBase) Inherited from IMyComponentBase
Deserialize(MyObjectBuilder_ComponentBase) Inherited from MyEntityStatComponent
Deserialize(MyObjectBuilder_ComponentBase) Inherited from MyComponentBase
DoAction(string) Inherited from MyEntityStatComponent
GetAs() Inherited from IMyComponentBase
GetAs() Inherited from MyComponentBase
GetEfficiencyModifier(string) Inherited from MyEntityStatComponent
GetEntity() Gets the associated entity

Inherited from IMyHazardReceiver
GetPosition() Gets world position

Inherited from IMyHazardReceiver
HasAnyComsumableEffect(IEnumerable) Inherited from MyEntityStatComponent
Init(MyComponentDefinitionBase) Inherited from IMyComponentBase
Init(MyComponentDefinitionBase) Inherited from MyEntityStatComponent
Init(MyComponentDefinitionBase) Inherited from MyComponentBase
IsSerialized() Inherited from IMyComponentBase
IsSerialized() Inherited from MyEntityStatComponent
IsSerialized() Tells the component container serializer whether this component should be saved

Inherited from MyComponentBase
OnAddedToContainer() Inherited from IMyComponentBase
OnAddedToContainer() Inherited from MyEntityStatComponent
OnAddedToContainer() Inherited from MyEntityComponentBase
OnAddedToContainer() Gets called after the container of this component changes

Inherited from MyComponentBase
OnAddedToScene() Inherited from IMyComponentBase
OnAddedToScene() CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already!

Inherited from MyComponentBase
OnBeforeRemovedFromContainer() Inherited from IMyComponentBase
OnBeforeRemovedFromContainer() Inherited from MyEntityStatComponent
OnBeforeRemovedFromContainer() Inherited from MyEventProxyEntityComponent
OnBeforeRemovedFromContainer() Inherited from MyEntityComponentBase
OnBeforeRemovedFromContainer() Gets called before the removal of this component from a container

Inherited from MyComponentBase
OnRemovedFromScene() Inherited from IMyComponentBase
OnRemovedFromScene() CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene!

Inherited from MyComponentBase
Serialize(bool) Inherited from IMyComponentBase
Serialize(bool) Inherited from MyEntityStatComponent
Serialize(bool) Inherited from MyComponentBase
SetContainer(IMyComponentContainer) Inherited from IMyComponentBase
SetContainer(IMyComponentContainer) 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.

Inherited from MyComponentBase
TryGetStat(MyStringHash, out MyEntityStat) Inherited from MyEntityStatComponent
UpdateAfterSimulation() Inherited from MyUpdatingEntityComponent
UpdateAfterSimulation10() Inherited from MyUpdatingEntityComponent
UpdateAfterSimulation100() Inherited from MyUpdatingEntityComponent
UpdateAfterSimulationParallel() Inherited from MyEntityStatComponent
UpdateAfterSimulationParallel() Inherited from MyUpdatingEntityComponent
UpdateBeforeSimulation() Inherited from MyUpdatingEntityComponent
UpdateBeforeSimulation100() Inherited from MyUpdatingEntityComponent
UpdateBeforeSimulationParallel() Inherited from MyUpdatingEntityComponent
UpdateOnceBeforeFrame() Inherited from MyUpdatingEntityComponent
UpdateSimulate() Inherited from MyUpdatingEntityComponent

Inheritance: MyComponentBase ˃ MyEntityComponentBase ˃ MyEventProxyEntityComponent ˃ MyUpdatingEntityComponent ˃ MyEntityStatComponent

Implements: