Crossfire Server, Trunk
ArtifactLoader.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ARTIFACT_LOADER_H
14 #define ARTIFACT_LOADER_H
15 
16 #include "AssetLoader.h"
17 
18 class ArtifactLoader : public AssetLoader {
19 
20 public:
21  ArtifactLoader(AssetsTracker *tracker) : myTracker(tracker) { }
22  virtual bool willLoad(const std::string &filename) override;
23 
24  virtual void load(BufferReader *reader, const std::string &filename) override;
25 
26 private:
28 };
29 
30 #endif /* ARTIFACT_LOADER_H */
ArtifactLoader::willLoad
virtual bool willLoad(const std::string &filename) override
Definition: ArtifactLoader.cpp:18
ArtifactLoader::load
virtual void load(BufferReader *reader, const std::string &filename) override
Definition: ArtifactLoader.cpp:24
AssetLoader
Definition: AssetLoader.h:24
npc_dialog.filename
filename
Definition: npc_dialog.py:99
AssetsTracker
Definition: AssetsTracker.h:26
ArtifactLoader
Definition: ArtifactLoader.h:18
BufferReader
Definition: bufferreader.cpp:21
AssetLoader.h
ArtifactLoader::myTracker
AssetsTracker * myTracker
Definition: ArtifactLoader.h:27
ArtifactLoader::ArtifactLoader
ArtifactLoader(AssetsTracker *tracker)
Definition: ArtifactLoader.h:21