Crossfire Server, Trunk
|
#include <Animations.h>
Public Member Functions | |
AllAnimations () | |
Public Member Functions inherited from AssetsCollection< Animations > | |
void | clear () |
size_t | count () const |
Animations * | define (const std::string &name, Animations *asset) |
void | each (std::function< void(Animations *)> op) |
Animations * | find (const std::string &name) |
Animations * | first (std::function< bool(const Animations *)> op) |
Animations * | get (const std::string &name) |
std::vector< std::string > | keys () const |
Animations * | next (Animations *current) |
const std::set< std::string > & | undefined () const |
virtual | ~AssetsCollection () |
Protected Member Functions | |
virtual void | added (Animations *anim) override |
virtual void | replace (Animations *existing, Animations *update) override |
Additional Inherited Members | |
Protected Attributes inherited from AssetsCollection< Animations > | |
std::unordered_map< std::string, Animations * > | m_assets |
std::set< std::string > | m_undefined |
Definition at line 19 of file Animations.h.
AllAnimations::AllAnimations | ( | ) |
Definition at line 32 of file Animations.cpp.
References AssetsCollection< Animations >::get(), and AssetsCollection< Animations >::m_undefined.
|
overrideprotectedvirtual |
An asset was either referenced (but undefined) or defined.
Reimplemented from AssetsCollection< Animations >.
Definition at line 53 of file Animations.cpp.
References animate::anim, blank_face, and AssetsCollection< Animations >::m_assets.
|
overrideprotectedvirtual |
Replace an asset by an updated version.
existing | asset to be updated. |
update | new version of the asset, which must be destroyed. |
Implements AssetsCollection< Animations >.
Definition at line 37 of file Animations.cpp.
References blank_face, Animations::faces, Animations::facings, free_string(), Animations::has_blank, Animations::name, and Animations::num_animations.