Container for Animation resources.
|
| | AnimationLibrary (const string &name="AnimationLibrary") |
| |
| void | add (const string &keyName, const shared_ptr< Animation > &animation) |
| |
| auto | get (const string &keyName) const |
| |
| auto | has (const string &keyName) const |
| |
| const auto & | getDefault () const |
| |
| auto | getId () const |
| |
| const auto & | getName () const |
| |
| string | toString () const override |
| |
| virtual shared_ptr< Resource > | duplicate () const |
| |
| void | connect (const Signal::signal &name, const Signal::Handler &handler) |
| |
| void | connect (const Signal::signal &name, const function< void ()> &handler) |
| |
| void | emit (const Signal::signal &name, void *params=nullptr) |
| |
| AnimationLibrary |
( |
const string & |
name = "AnimationLibrary" | ) |
|
|
inlineexplicit |
| void add |
( |
const string & |
keyName, |
|
|
const shared_ptr< Animation > & |
animation |
|
) |
| |
|
inline |
Adds the Animation to the library, accessible by the key name.
| auto get |
( |
const string & |
keyName | ) |
const |
|
nodiscardinline |
| const auto& getDefault |
( |
| ) |
const |
|
nodiscardinline |
Returns the name of the default animation
| auto has |
( |
const string & |
keyName | ) |
const |
|
nodiscardinline |
Returns true if the library stores an Animation with name as the key.