 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
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;
All archetypes in the game.
other than new code I created new archetypes
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
Abstract buffer handler, processing a BufferReader.
Base class to be informed of where an asset is defined.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
Archetypes * m_archetypes
AssetsTracker * m_tracker
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
ArchetypeLoader(Archetypes *archetypes, AssetsTracker *tracker)