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

Loads the clip of the current animator state into the Animation. More...

#include <systems/AnimatorSystem.hpp>

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

Public Member Functions

void onStart (rtk::ecs::Registry &) override
 Does nothing.
 
void update (rtk::ecs::Registry &reg, float dt) override
 Restarts the animation with a new clip when the state changed.
 
void onStop (rtk::ecs::Registry &) override
 Does nothing.
 

Detailed Description

Loads the clip of the current animator state into the Animation.

Member Function Documentation

◆ update()

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

Restarts the animation with a new clip when the state changed.

Parameters
regRegistry holding the entities.
dtUnused.