Crossfire Server, Trunk
|
#include <ArchetypeLoader.h>
Public Member Functions | |
ArchetypeLoader (Archetypes *archetypes, 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 Attributes | |
Archetypes * | m_archetypes |
AssetsTracker * | m_tracker |
Definition at line 22 of file ArchetypeLoader.h.
ArchetypeLoader::ArchetypeLoader | ( | Archetypes * | archetypes, |
AssetsTracker * | tracker | ||
) |
Definition at line 20 of file ArchetypeLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 23 of file ArchetypeLoader.cpp.
References object::arch, AssetsTracker::assetDefined(), archetype::clone, AssetsCollection< T, Key >::define(), object::face, npc_dialog::filename, FLAG_MONSTER, get_archetype_struct(), object::head, archetype::head, LL_MORE, LL_NORMAL, load_object_from_reader(), m_archetypes, m_tracker, MAP_STYLE, object::more, archetype::name, QUERY_FLAG, SET_FLAG, object::speed_left, archetype::tail_x, archetype::tail_y, object::x, and object::y.
Referenced by ArchetypeWrapper::setRaw().
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 26 of file ArchetypeLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 33 of file ArchetypeLoader.h.
Referenced by load().
|
private |
Definition at line 34 of file ArchetypeLoader.h.
Referenced by load().