Implements functionality for loading scripts.
This commit is contained in:
29
src/Battling/ScriptHandling/ScriptResolver.hpp
Normal file
29
src/Battling/ScriptHandling/ScriptResolver.hpp
Normal 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
|
||||
Reference in New Issue
Block a user