Add initialize function to script resolver, where it can access the battle library.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-11 11:35:59 +01:00
parent 144d17d859
commit 836a201b2d
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@
#include "Script.hpp"
namespace CreatureLib::Battling {
class BattleLibrary;
class ScriptResolver {
public:
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; };
};
}