Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::client::ScoreSystem Class Reference

#include <ScoreSystem.hpp>

Inheritance diagram for rtp::client::ScoreSystem:
Collaboration diagram for rtp::client::ScoreSystem:

Public Member Functions

 ScoreSystem (ecs::Registry &r)
 
void update (float dt) override
 Update system logic for one frame.
 
- Public Member Functions inherited from rtp::ecs::ISystem
virtual ~ISystem () noexcept=default
 

Private Attributes

ecs::Registry_r
 

Detailed Description

Definition at line 18 of file ScoreSystem.hpp.

Constructor & Destructor Documentation

◆ ScoreSystem()

rtp::client::ScoreSystem::ScoreSystem ( ecs::Registry r)
inlineexplicit

Definition at line 20 of file ScoreSystem.hpp.

Member Function Documentation

◆ update()

void rtp::client::ScoreSystem::update ( float  deltaTime)
inlineoverridevirtual

Update system logic for one frame.

Parameters
registryThe entity registry to operate on
deltaTimeTime elapsed since last update in seconds

Implements rtp::ecs::ISystem.

Definition at line 24 of file ScoreSystem.hpp.

References _r, rtp::ecs::components::Score::value, and rtp::ecs::Registry::view().

Member Data Documentation

◆ _r

ecs::Registry& rtp::client::ScoreSystem::_r
private

Definition at line 35 of file ScoreSystem.hpp.

Referenced by update().


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