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

Points given to a player for a kill. More...

#include <aegis2d/ecs/score.hpp>

Public Attributes

Entity player
 Player whose Score increased.
 
Entity victim
 Entity that was killed.
 
std::uint32_t points = 0
 Points added (less than the victim's value if the score was saturated).
 

Friends

constexpr bool operator== (const Award &, const Award &) noexcept=default
 Compares the awards.
 

Detailed Description

Points given to a player for a kill.

Friends And Related Symbol Documentation

◆ operator==

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

Compares the awards.

Member Data Documentation

◆ player

Entity aegis2d::ecs::Award::player

Player whose Score increased.

◆ points

std::uint32_t aegis2d::ecs::Award::points = 0

Points added (less than the victim's value if the score was saturated).

◆ victim

Entity aegis2d::ecs::Award::victim

Entity that was killed.


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