Crossfire Server, Trunk
|
#include <FacesetLoader.h>
Public Member Functions | |
FacesetLoader (Facesets *facesets) | |
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 Attributes | |
Facesets * | m_facesets |
Definition at line 21 of file FacesetLoader.h.
FacesetLoader::FacesetLoader | ( | Facesets * | facesets | ) |
Definition at line 20 of file FacesetLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 23 of file FacesetLoader.cpp.
References buf, bufferreader_next_line(), face_sets::comment, AssetsCollection< T, Key >::define(), face_sets::extension, face_sets::fallback, npc_dialog::filename, face_sets::fullname, AssetsCollection< T, Key >::get(), llevError, LOG(), m_facesets, face_sets::prefix, face_sets::size, split_string(), and strdup_local.
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 25 of file FacesetLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 32 of file FacesetLoader.h.
Referenced by load().