Crossfire Server, Trunk
|
#include <PngLoader.h>
Public Member Functions | |
virtual void | load (BufferReader *reader, const std::string &filename) override |
PngLoader (Faces *faces, Facesets *facesets) | |
virtual bool | willLoad (const std::string &filename) override |
Public Member Functions inherited from AssetLoader | |
virtual | ~AssetLoader () |
Protected Attributes | |
Faces * | m_faces |
Facesets * | m_facesets |
Definition at line 22 of file PngLoader.h.
Definition at line 22 of file PngLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 25 of file PngLoader.cpp.
References face_sets::allocated, buf, bufferreader_data(), bufferreader_data_length(), face_info::checksum, disinfect::count, face_info::data, face_info::datalen, face_sets::faces, fatal(), npc_dialog::filename, AssetsCollection< T, Key >::get(), llevDebug, LOG(), m_faces, m_facesets, Face::name, Face::number, OUT_OF_MEMORY, ROTATE_RIGHT, split(), 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 26 of file PngLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
protected |
Definition at line 32 of file PngLoader.h.
Referenced by load().
|
protected |
Definition at line 33 of file PngLoader.h.
Referenced by load().