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

Marks bullets that went past the right edge of the world as dead. More...

#include <systems/BulletSystem.hpp>

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

Public Member Functions

void onStart (rtk::ecs::Registry &) override
 Logs that the system is loaded.
 
void update (rtk::ecs::Registry &reg, float) override
 Adds Dead to every bullet whose x is greater than 1920.
 
void onStop (rtk::ecs::Registry &) override
 Does nothing.
 

Detailed Description

Marks bullets that went past the right edge of the world as dead.

Member Function Documentation

◆ update()

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

Adds Dead to every bullet whose x is greater than 1920.

Parameters
regRegistry holding the bullets.