Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::Kill Struct Reference

An entity whose health reached zero, and the hit that did it. More...

#include <aegis2d/ecs/damage.hpp>

Public Attributes

Entity victim
 Entity with no health left.
 
Entity killer
 Attacker of the last hit, e.g. the missile, to credit its shooter.
 

Friends

constexpr bool operator== (const Kill &, const Kill &) noexcept=default
 Compares the kills.
 

Detailed Description

An entity whose health reached zero, and the hit that did it.

Friends And Related Symbol Documentation

◆ operator==

constexpr bool operator== ( const Kill &  ,
const Kill &   
)
friend

Compares the kills.

Member Data Documentation

◆ killer

Entity aegis2d::ecs::Kill::killer

Attacker of the last hit, e.g. the missile, to credit its shooter.

◆ victim

Entity aegis2d::ecs::Kill::victim

Entity with no health left.


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