 |
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.
TreasureLoader(Treasures *treasures, Archetypes *archetypes, AssetsTracker *tracker)
other than new code I created new archetypes
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.