Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AnimationSystem::Sprite::SpriteAnimator Class Reference

Spritesheet animator for an animated sprite. More...

#include <SpriteAnimator.h>

Inheritance diagram for AnimationSystem::Sprite::SpriteAnimator:
Collaboration diagram for AnimationSystem::Sprite::SpriteAnimator:

Public Member Functions

PureResult ParseAnimation (TextureAtlas const &textureAtlas, vector< unique_ptr< JsonResult > >::value_type const &armature)
 
PureResult Create (std::unique_ptr< JsonResult > const &jsonDoc, TextureAtlas const &textureAtlas)
 
void Update (float frameTime)
 
float GetCurrentAnimationTime () const override
 
void ApplyAnimation (SpriteComponent &sprite) const
 
vector< StringId > GetAllAnimationIDs () const
 
std::vector< string > GetAllAnimationNames () const override
 
void SetCurrentAnimation (string const &newName) override
 
std::optional< string > CurrentAnimationName () const override
 
- Public Member Functions inherited from AnimationSystem::Sprite::ISpriteAnimator
virtual void SetCurrentAnimation (std::string const &animationName)=0
 
virtual std::optional< std::string > CurrentAnimationName () const =0
 
virtual float GetCurrentAnimationTime () const =0
 
virtual std::vector< std::string > GetAllAnimationNames () const =0
 

Detailed Description

Spritesheet animator for an animated sprite.

Member Function Documentation

◆ CurrentAnimationName()

std::optional< string > AnimationSystem::Sprite::SpriteAnimator::CurrentAnimationName ( ) const
inlineoverridevirtual

◆ GetAllAnimationNames()

std::vector< string > AnimationSystem::Sprite::SpriteAnimator::GetAllAnimationNames ( ) const
inlineoverridevirtual

◆ GetCurrentAnimationTime()

float AnimationSystem::Sprite::SpriteAnimator::GetCurrentAnimationTime ( ) const
inlineoverridevirtual

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