![]() |
Crossfire Server, Trunk
1.75.0
|
#include <ArtifactLoader.h>
Inheritance diagram for ArtifactLoader:
Collaboration diagram for ArtifactLoader:Public Member Functions | |
| ArtifactLoader (AssetsTracker *tracker) | |
| virtual void | load (BufferReader *reader, const std::string &filename) override |
| Load assets from the specified reader. More... | |
| virtual bool | willLoad (const std::string &filename) override |
| Whether this instance will process or not the specified file. More... | |
Public Member Functions inherited from AssetLoader | |
| virtual | ~AssetLoader () |
| Virtual destructor for inheritance. More... | |
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, find_artifactlist(), first_artifactlist, get_empty_artifact(), get_empty_artifactlist(), artifact::item, artifactlist::items, llevError, load_object_from_reader(), LOG(), MAP_STYLE, myTracker, object::name, artifactlist::next, nrofallowedstr, nrofartifacts, object_reset(), artifactlist::type, and object::type.
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
|
private |
Definition at line 27 of file ArtifactLoader.h.
Referenced by load().