Crossfire Server, Trunk
|
#include <Faces.h>
Public Member Functions | |
int | checksum () const |
Faces () | |
const Face * | findById (uint16_t id) |
Public Member Functions inherited from AssetsCollection< Face > | |
void | clear () |
size_t | count () const |
Face * | define (const std::string &name, Face *asset) |
void | each (std::function< void(Face *)> op) |
Face * | find (const std::string &name) |
Face * | first (std::function< bool(const Face *)> op) |
Face * | get (const std::string &name) |
std::vector< std::string > | keys () const |
Face * | next (Face *current) |
const std::set< std::string > & | undefined () const |
virtual | ~AssetsCollection () |
Protected Member Functions | |
virtual void | added (Face *face) override |
virtual void | replace (Face *existing, Face *update) override |
Protected Attributes | |
int | m_checksum |
Protected Attributes inherited from AssetsCollection< Face > | |
std::unordered_map< std::string, Face * > | m_assets |
std::set< std::string > | m_undefined |
Faces::Faces | ( | ) |
Definition at line 29 of file Faces.cpp.
References blank_face, BLANK_FACE_NAME, empty_face, EMPTY_FACE_NAME, AssetsCollection< Face >::get(), smooth_face, and SMOOTH_FACE_NAME.
|
overrideprotectedvirtual |
An asset was either referenced (but undefined) or defined.
Reimplemented from AssetsCollection< Face >.
Definition at line 51 of file Faces.cpp.
References banquet::l, AssetsCollection< Face >::m_assets, m_checksum, Face::name, Face::number, and ROTATE_RIGHT.
|
inline |
Definition at line 25 of file Faces.h.
References m_checksum.
const Face * Faces::findById | ( | uint16_t | id | ) |
Definition at line 44 of file Faces.cpp.
References AssetsCollection< Face >::m_assets.
Referenced by get_face_by_id().
Replace an asset by an updated version.
existing | asset to be updated. |
update | new version of the asset, which must be destroyed. |
Implements AssetsCollection< Face >.
Definition at line 35 of file Faces.cpp.
References asset_destroy(), Face::magicmap, Face::smoothface, and Face::visibility.
|
protected |
Definition at line 28 of file Faces.h.
Referenced by added(), and checksum().