Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::Damage Struct Reference

Component representing damage value. More...

#include <Damage.hpp>

Collaboration diagram for rtp::ecs::components::Damage:

Public Attributes

int amount {0}
 Amount of damage.
 
Entity sourceEntity {NullEntity}
 ID of the entity that caused the damage.
 

Detailed Description

Component representing damage value.

Definition at line 16 of file Damage.hpp.

Member Data Documentation

◆ amount

int rtp::ecs::components::Damage::amount {0}

Amount of damage.

Definition at line 17 of file Damage.hpp.

◆ sourceEntity

Entity rtp::ecs::components::Damage::sourceEntity {NullEntity}

ID of the entity that caused the damage.

Definition at line 18 of file Damage.hpp.


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