 |
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.
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
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)