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;
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
All archetypes in the game.
treasure * loadTreasure(BufferReader *reader, const std::string &filename)
Reads one treasure, including the 'yes', 'no' and 'more' options.
Global type definitions and header inclusions.
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
TreasureLoader(Treasures *treasures, Archetypes *archetypes, AssetsTracker *tracker)
AssetsTracker * m_tracker
Defines and variables used by the artifact generation routines.
Base class to be informed of where an asset is defined.
Archetypes * m_archetypes
virtual void load(BufferReader *reader, const std::string &filename) override
Load all treasures from a buffer.
treasure is one element in a linked list, which together consist of a complete treasure-list.
Abstract buffer handler, processing a BufferReader.