Implements functionality for loading scripts.

This commit is contained in:
2019-11-18 08:29:17 +01:00
parent 86f8a1e37b
commit 4d796204f8
5 changed files with 55 additions and 12 deletions

View File

@@ -0,0 +1,29 @@
#ifndef CREATURELIB_SCRIPTRESOLVER_HPP
#define CREATURELIB_SCRIPTRESOLVER_HPP
#include <string>
#include "Script.hpp"
namespace CreatureLib::Battling{
class ScriptResolver {
public:
virtual ~ScriptResolver() = default;
enum class ScriptCategory{
Attack,
Talent,
Status,
Creature,
Battle,
Side,
};
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName){
return nullptr;
};
};
}
#endif //CREATURELIB_SCRIPTRESOLVER_HPP