Skip to main content

DamageContext.ixx File

Context struct describing a damage interaction between entities. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacecommon

Shared type definitions, concepts, and tags used across engine subsystems. More...

namespacetypes

Shared context structs for entity-to-entity interactions. More...

Classes Index

structDamageContext

Extends InteractionContext with a damage amount. More...

Description

Context struct describing a damage interaction between entities.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file DamageContext.ixx
3 * @brief Context struct describing a damage interaction between entities.
4 */
5
6export module helios.engine.common.types.DamageContext;
7
8import helios.engine.common.types.InteractionContext;
9
10
12
13 /**
14 * @brief Extends InteractionContext with a damage amount.
15 *
16 * Carries all information needed to apply damage to a target entity:
17 * the participating handles, the contact point (from InteractionContext),
18 * and the amount of damage to apply.
19 *
20 * @see InteractionContext
21 */
22 struct DamageContext {
23
24 /**
25 * @brief The underlying interaction between source and target.
26 */
28
29 /**
30 * @brief Amount of damage to apply.
31 */
32 float damage{};
33
34 };
35
36}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.