Crossfire Server, Trunk
|
#include <FaceLoader.h>
Public Member Functions | |
FaceLoader (Faces *faces, AllAnimations *animations, AssetsTracker *tracker) | |
virtual void | load (BufferReader *reader, const std::string &filename) override |
virtual bool | willLoad (const std::string &filename) override |
Public Member Functions inherited from AssetLoader | |
virtual | ~AssetLoader () |
Private Member Functions | |
void | loadAnimationBlock (BufferReader *reader, const std::string &full_path, const char *animation_name) |
Private Attributes | |
AllAnimations * | m_animations |
Faces * | m_faces |
AssetsTracker * | m_tracker |
Definition at line 23 of file FaceLoader.h.
FaceLoader::FaceLoader | ( | Faces * | faces, |
AllAnimations * | animations, | ||
AssetsTracker * | tracker | ||
) |
Definition at line 22 of file FaceLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 77 of file FaceLoader.cpp.
References add_string(), AssetsTracker::assetDefined(), buf, bufferreader_next_line(), AssetsCollection< T, Key >::define(), FACE_FLOOR, npc_dialog::filename, find_color(), free_string(), AssetsCollection< T, Key >::get(), llevError, loadAnimationBlock(), LOG(), m_faces, m_tracker, Face::magicmap, Face::name, Face::smoothface, autojail::value, and Face::visibility.
|
private |
Definition at line 27 of file FaceLoader.cpp.
References add_string(), animate::anim, AssetsTracker::assetDefined(), buf, bufferreader_next_line(), AssetsCollection< T, Key >::define(), dragon_attune::faces, find_face(), if(), llevDebug, LOG(), m_animations, m_tracker, and MAX_ANIMATIONS.
Referenced by load().
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 27 of file FaceLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 35 of file FaceLoader.h.
Referenced by loadAnimationBlock().
|
private |
Definition at line 34 of file FaceLoader.h.
Referenced by load().
|
private |
Definition at line 36 of file FaceLoader.h.
Referenced by load(), and loadAnimationBlock().