Crossfire Server, Trunk
|
#include <ArtifactLoader.h>
Public Member Functions | |
ArtifactLoader (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 | |
AssetsTracker * | myTracker |
Definition at line 18 of file ArtifactLoader.h.
|
inline |
Definition at line 21 of file ArtifactLoader.h.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 24 of file ArtifactLoader.cpp.
References add_string(), artifact::allowed, object::arch, AssetsTracker::assetDefined(), buf, bufferreader_current_line(), bufferreader_next_line(), artifact::chance, artifact::difficulty, npc_dialog::filename, find_artifactlist(), first_artifactlist, get_empty_artifact(), get_empty_artifactlist(), artifact::item, artifactlist::items, llevDebug, llevError, load_object_from_reader(), LOG(), MAP_STYLE, myTracker, object::name, artifactlist::next, give::next, nrofallowedstr, nrofartifacts, object_reset(), artifactlist::total_chance, artifactlist::type, object::type, and autojail::value.
|
overridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 18 of file ArtifactLoader.cpp.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 27 of file ArtifactLoader.h.
Referenced by load().