R-Type 0.1
Loading...
Searching...
No Matches
rtk::systems::DeathSystem Class Referencefinal

Destroys every entity tagged with Dead. More...

#include <systems/DeadSystem.hpp>

Inheritance diagram for rtk::systems::DeathSystem:
[legend]

Public Member Functions

void onStart (rtk::ecs::Registry &) override
 Does nothing.
 
void update (rtk::ecs::Registry &reg, float) override
 Removes the components of dead entities and kills them.
 
void onStop (rtk::ecs::Registry &) override
 Does nothing.
 

Detailed Description

Destroys every entity tagged with Dead.

Member Function Documentation

◆ update()

void rtk::systems::DeathSystem::update ( rtk::ecs::Registry & reg,
float  )
inlineoverride

Removes the components of dead entities and kills them.

Parameters
regRegistry holding the entities.