Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
OlympeAnimation::Animation Struct Reference

#include <AnimationBank.h>

Public Member Functions

int GetFrameCount () const
 
float GetDuration () const
 
 Animation ()=default
 

Public Attributes

std::string name
 
std::string spritesheetId
 
int startFrame = 0
 
int endFrame = 0
 
float framerate = 12.0f
 
bool looping = true
 
std::vector< AnimationEventevents
 

Detailed Description

Definition at line 60 of file AnimationBank.h.

Constructor & Destructor Documentation

◆ Animation()

OlympeAnimation::Animation::Animation ( )
default

Member Function Documentation

◆ GetDuration()

float OlympeAnimation::Animation::GetDuration ( ) const
inline

Definition at line 76 of file AnimationBank.h.

References framerate, and GetFrameCount().

+ Here is the call graph for this function:

◆ GetFrameCount()

int OlympeAnimation::Animation::GetFrameCount ( ) const
inline

Definition at line 73 of file AnimationBank.h.

References endFrame, and startFrame.

Referenced by GetDuration().

+ Here is the caller graph for this function:

Member Data Documentation

◆ endFrame

int OlympeAnimation::Animation::endFrame = 0

Definition at line 66 of file AnimationBank.h.

Referenced by GetFrameCount().

◆ events

std::vector<AnimationEvent> OlympeAnimation::Animation::events

Definition at line 70 of file AnimationBank.h.

◆ framerate

float OlympeAnimation::Animation::framerate = 12.0f

Definition at line 67 of file AnimationBank.h.

Referenced by GetDuration().

◆ looping

bool OlympeAnimation::Animation::looping = true

Definition at line 68 of file AnimationBank.h.

◆ name

std::string OlympeAnimation::Animation::name

Definition at line 62 of file AnimationBank.h.

Referenced by OlympeAnimation::AnimationBank::ParseJSON().

◆ spritesheetId

std::string OlympeAnimation::Animation::spritesheetId

Definition at line 63 of file AnimationBank.h.

◆ startFrame

int OlympeAnimation::Animation::startFrame = 0

Definition at line 65 of file AnimationBank.h.

Referenced by GetFrameCount().


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