CharacterHealthComponentData

Inherits from ComponentData

Summary

Constructors

CharacterHealthComponentData()
CharacterHealthComponentData(guid: Guid)
CharacterHealthComponentData(other: ComponentData)
CharacterHealthComponentData(other: GameObjectData)
CharacterHealthComponentData(other: GameDataContainer)
CharacterHealthComponentData(other: DataContainer)

Properties

Name Type
maxHealth float
regenerateHealthPerSecond float
regenerateHealth bool
isImmortal bool

Static members

Name Type
CharacterHealthComponentData.typeInfo TypeInformation

Constructors

CharacterHealthComponentData

CharacterHealthComponentData()

Creates a new CharacterHealthComponentData frostbite instance.

CharacterHealthComponentData

CharacterHealthComponentData(guid: Guid)

Creates a new CharacterHealthComponentData frostbite instance and assigns it the provided Guid.

Parameters

Name Type Description
guid Guid The Guid to assign to the newly created instance.

CharacterHealthComponentData

CharacterHealthComponentData(other: ComponentData)

Casts an instance of type ComponentData to CharacterHealthComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other ComponentData The instance to cast to CharacterHealthComponentData.

CharacterHealthComponentData

CharacterHealthComponentData(other: GameObjectData)

Casts an instance of type GameObjectData to CharacterHealthComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameObjectData The instance to cast to CharacterHealthComponentData.

CharacterHealthComponentData

CharacterHealthComponentData(other: GameDataContainer)

Casts an instance of type GameDataContainer to CharacterHealthComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameDataContainer The instance to cast to CharacterHealthComponentData.

CharacterHealthComponentData

CharacterHealthComponentData(other: DataContainer)

Casts an instance of type DataContainer to CharacterHealthComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other DataContainer The instance to cast to CharacterHealthComponentData.

Properties

maxHealth

float

regenerateHealthPerSecond

float

regenerateHealth

bool

isImmortal

bool

Static members

typeInfo

TypeInformation

The type information for the CharacterHealthComponentData type.

Last modified April 26, 2020: Update frostbite type documentation (8b14351c)