Container for Animation resources.
| AnimationLibrary |
( |
const AnimationLibrary & |
animationLibrary | ) |
|
|
inline |
| void addAnimation |
( |
const std::string & |
keyName, |
|
|
const std::shared_ptr< Animation > & |
animation |
|
) |
| |
|
inline |
Adds the Animation to the library, accessible by the key name.
- Parameters
-
| keyName | The name of the animation |
| animation | The animation to add |
| auto getAnimation |
( |
const std::string & |
keyName | ) |
const |
|
inline |
Returns the Animation with the key name.
- Parameters
-
| keyName | The name of the animation to retrieve |
- Returns
- A shared pointer to the animation
| const auto& getAnimations |
( |
| ) |
const |
|
inline |
Returns all animations in the library
- Returns
- A reference to the map of animations
| const auto& getDefaultAnimationName |
( |
| ) |
const |
|
inline |
Returns the name of the default animation
- Returns
- The name of the default animation
| auto hasAnimation |
( |
const std::string & |
keyName | ) |
const |
|
inline |
Returns true if the library stores an Animation with name as the key.
- Parameters
-
- Returns
true if the animation exists in the library