Skip to main content

DamageContext Struct

Extends InteractionContext with a damage amount. More...

Declaration

struct helios::engine::common::types::DamageContext { ... }

Public Member Attributes Index

InteractionContextinteractionContext {}

The underlying interaction between source and target. More...

floatdamage {}

Amount of damage to apply. More...

Description

Extends InteractionContext with a damage amount.

Carries all information needed to apply damage to a target entity: the participating handles, the contact point (from InteractionContext), and the amount of damage to apply.

See Also

InteractionContext

Definition at line 22 of file DamageContext.ixx.

Public Member Attributes

damage

float helios::engine::common::types::DamageContext::damage {}

Amount of damage to apply.

Definition at line 32 of file DamageContext.ixx.

32 float damage{};

interactionContext

InteractionContext helios::engine::common::types::DamageContext::interactionContext {}

The underlying interaction between source and target.

Definition at line 27 of file DamageContext.ixx.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.