![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <AnimationBank.h>
Public Member Functions | |
| AnimationBank ()=default | |
| ~AnimationBank ()=default | |
| bool | LoadFromFile (const std::string &filePath) |
| Animation * | GetAnimation (const std::string &name) |
| const Animation * | GetAnimation (const std::string &name) const |
| SpriteSheet * | GetSpriteSheet (const std::string &id) |
| const SpriteSheet * | GetSpriteSheet (const std::string &id) const |
| const std::string & | GetBankName () const |
| bool | IsValid () const |
Private Member Functions | |
| bool | ParseJSON (const std::string &jsonContent) |
Private Attributes | |
| std::string | m_bankName |
| std::string | m_description |
| bool | m_isValid = false |
| std::unordered_map< std::string, SpriteSheet > | m_spritesheets |
| std::unordered_map< std::string, Animation > | m_animations |
Definition at line 84 of file AnimationBank.h.
|
default |
|
default |
Definition at line 130 of file AnimationBank.cpp.
References GetComponentTypeID_Static(), and m_animations.
Referenced by OlympeAnimation::AnimationManager::HasAnimation().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 138 of file AnimationBank.cpp.
References GetComponentTypeID_Static(), and m_animations.
Here is the call graph for this function:
|
inline |
Definition at line 102 of file AnimationBank.h.
References m_bankName.
| SpriteSheet * OlympeAnimation::AnimationBank::GetSpriteSheet | ( | const std::string & | id | ) |
Definition at line 146 of file AnimationBank.cpp.
References GetComponentTypeID_Static(), and m_spritesheets.
Here is the call graph for this function:| const SpriteSheet * OlympeAnimation::AnimationBank::GetSpriteSheet | ( | const std::string & | id | ) | const |
Definition at line 154 of file AnimationBank.cpp.
References GetComponentTypeID_Static(), and m_spritesheets.
Here is the call graph for this function:
|
inline |
Definition at line 105 of file AnimationBank.h.
References m_isValid.
Definition at line 20 of file AnimationBank.cpp.
References GetComponentTypeID_Static(), JsonHelper::LoadJsonFromFile(), ParseJSON(), and SYSTEM_LOG.
Here is the call graph for this function:Definition at line 32 of file AnimationBank.cpp.
References OlympeAnimation::AnimationEvent::frame, DataManager::Get(), JsonHelper::GetBool(), GetComponentTypeID_Static(), JsonHelper::GetFloat(), JsonHelper::GetInt(), JsonHelper::GetString(), DataManager::GetTexture(), OlympeAnimation::SpriteSheet::id, m_animations, m_bankName, m_description, m_isValid, m_spritesheets, OlympeAnimation::Animation::name, DataManager::PreloadTexture(), and SYSTEM_LOG.
Referenced by LoadFromFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 113 of file AnimationBank.h.
Referenced by GetAnimation(), GetAnimation(), and ParseJSON().
|
private |
Definition at line 108 of file AnimationBank.h.
Referenced by GetBankName(), and ParseJSON().
|
private |
Definition at line 109 of file AnimationBank.h.
Referenced by ParseJSON().
Definition at line 110 of file AnimationBank.h.
Referenced by IsValid(), and ParseJSON().
|
private |
Definition at line 112 of file AnimationBank.h.
Referenced by GetSpriteSheet(), GetSpriteSheet(), and ParseJSON().