 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
13 #ifndef TREASURELOADER_H
14 #define TREASURELOADER_H
29 virtual bool willLoad(
const std::string &filename)
override {
33 virtual void load(
BufferReader *reader,
const std::string &filename)
override;
All archetypes in the game.
in that case they will be relative to whatever the PWD of the crossfire server process is You probably shouldn though Notes on Specific and settings file datadir Usually usr share crossfire Contains data that the server does not need to modify while such as the archetypes
TreasureLoader(Treasures *treasures, Archetypes *archetypes, AssetsTracker *tracker)
Abstract buffer handler, processing a BufferReader.
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
Base class to be informed of where an asset is defined.
treasure * loadTreasure(BufferReader *reader, const std::string &filename)
Reads one treasure, including the 'yes', 'no' and 'more' options.
AssetsTracker * m_tracker
Archetypes * m_archetypes
treasure is one element in a linked list, which together consist of a complete treasure-list.
virtual void load(BufferReader *reader, const std::string &filename) override
Load all treasures from a buffer.
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.