Skip to main content

HealthChangeContext Struct

Describes a health modification applied to an entity. More...

Declaration

struct helios::engine::mechanics::health::types::HealthChangeContext { ... }

Public Member Attributes Index

InteractionContextinteractionContext {}

The interaction that caused the health change. More...

floatdelta {}

Signed health delta (negative = damage, positive = healing). More...

Description

Describes a health modification applied to an entity.

Combines the interaction context (target, instigator, causer, contact point) with a signed delta value. A negative delta represents damage, a positive delta represents healing.

See Also

InteractionContext

See Also

HealthManager

Definition at line 25 of file HealthChangeContext.ixx.

Public Member Attributes

delta

float helios::engine::mechanics::health::types::HealthChangeContext::delta {}

Signed health delta (negative = damage, positive = healing).

Definition at line 35 of file HealthChangeContext.ixx.

35 float delta{};

interactionContext

InteractionContext helios::engine::mechanics::health::types::HealthChangeContext::interactionContext {}

The interaction that caused the health change.

Definition at line 30 of file HealthChangeContext.ixx.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.