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

Advances sprite sheet animations and updates texture rectangles. More...

#include <systems/AnimationSystem.hpp>

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

Public Member Functions

void onStart (rtk::ecs::Registry &) override
 Logs that the system is loaded.
 
void update (rtk::ecs::Registry &reg, float dt) override
 Moves each animation forward by the elapsed time.
 
void onStop (rtk::ecs::Registry &) override
 Does nothing.
 

Detailed Description

Advances sprite sheet animations and updates texture rectangles.

Member Function Documentation

◆ update()

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

Moves each animation forward by the elapsed time.

Parameters
regRegistry holding the entities.
dtElapsed time since the last frame, in seconds.