R-Type 0.1
Loading...
Searching...
No Matches
component::animator Struct Reference

State machine that picks the Animation clip of an entity. More...

#include <components/Animator.hpp>

Public Attributes

animState currentState {animState::IDLE}
 State to display.
 
animState previousState {animState::NONE}
 
std::array< animationClip, static_cast< std::size_t >(animState::COUNT)> clips {}
 One clip per state.
 

Detailed Description

State machine that picks the Animation clip of an entity.

Member Data Documentation

◆ previousState

animState component::animator::previousState {animState::NONE}

State whose clip is loaded.