13 #ifndef ARCHETYPELOADER_H 14 #define ARCHETYPELOADER_H 26 virtual bool willLoad(
const std::string &filename)
override {
30 virtual void load(
BufferReader *reader,
const std::string& filename)
override;
Archetypes * m_archetypes
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
All archetypes in the game.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
ArchetypeLoader(Archetypes *archetypes, AssetsTracker *tracker)
AssetsTracker * m_tracker
Base class to be informed of where an asset is defined.
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
Abstract buffer handler, processing a BufferReader.