Add initialize function to script resolver, where it can access the battle library.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
144d17d859
commit
836a201b2d
|
@ -5,6 +5,8 @@
|
||||||
#include "Script.hpp"
|
#include "Script.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Battling {
|
namespace CreatureLib::Battling {
|
||||||
|
class BattleLibrary;
|
||||||
|
|
||||||
class ScriptResolver {
|
class ScriptResolver {
|
||||||
public:
|
public:
|
||||||
virtual ~ScriptResolver() = default;
|
virtual ~ScriptResolver() = default;
|
||||||
|
@ -19,6 +21,7 @@ namespace CreatureLib::Battling {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtual void Initialize(BattleLibrary* library){};
|
||||||
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName) { return nullptr; };
|
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName) { return nullptr; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue