Crossfire Server, Trunk
AssetLoader.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-2021 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 ASSETLOADER_H
14 #define ASSETLOADER_H
15 
16 #include <string>
17 #include "AssetsTracker.h"
18 #include "bufferreader.h"
19 
24 class AssetLoader {
25 public:
26 
28  virtual ~AssetLoader() { };
29 
35  virtual bool willLoad(const std::string &filename) = 0;
36 
42  virtual void load(BufferReader *reader, const std::string &filename) = 0;
43 };
44 #endif /* ASSETLOADER_H */
AssetLoader::load
virtual void load(BufferReader *reader, const std::string &filename)=0
AssetLoader::willLoad
virtual bool willLoad(const std::string &filename)=0
AssetLoader
Definition: AssetLoader.h:24
npc_dialog.filename
filename
Definition: npc_dialog.py:99
AssetsTracker.h
bufferreader.h
AssetLoader::~AssetLoader
virtual ~AssetLoader()
Definition: AssetLoader.h:28
BufferReader
Definition: bufferreader.cpp:21