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

#include <ECS_Components.h>

Public Member Functions

 Animation_data ()=default
 
 Animation_data (const Animation_data &)=default
 
Animation_dataoperator= (const Animation_data &)=default
 

Public Attributes

std::string animationID
 
int currentFrame = 0
 
float frameDuration = 0.1f
 
float elapsedTime = 0.0f
 

Detailed Description

Definition at line 319 of file ECS_Components.h.

Constructor & Destructor Documentation

◆ Animation_data() [1/2]

Animation_data::Animation_data ( )
default

◆ Animation_data() [2/2]

Animation_data::Animation_data ( const Animation_data )
default

Member Function Documentation

◆ operator=()

Animation_data & Animation_data::operator= ( const Animation_data )
default

Member Data Documentation

◆ animationID

std::string Animation_data::animationID

Definition at line 321 of file ECS_Components.h.

Referenced by PrefabFactory::InstantiateAnimation().

◆ currentFrame

int Animation_data::currentFrame = 0

Definition at line 322 of file ECS_Components.h.

Referenced by PrefabFactory::InstantiateAnimation().

◆ elapsedTime

float Animation_data::elapsedTime = 0.0f

Definition at line 324 of file ECS_Components.h.

◆ frameDuration

float Animation_data::frameDuration = 0.1f

Definition at line 323 of file ECS_Components.h.

Referenced by PrefabFactory::InstantiateAnimation().


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