Move ScriptCategory enum outside of class scope of ScriptResolver.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-20 13:05:15 +01:00
parent f22c23d593
commit d4fd7282f5
6 changed files with 12 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ namespace CreatureLib::Battling {
const std::vector<BattleSide*>& GetSides() const { return _sides; }
Script* GetVolatileScript(const std::string& key) const { return _volatile.Get(key); }
void AddVolatileScript(const std::string& key) {
auto script = _library->LoadScript(ScriptResolver::ScriptCategory::Battle, key);
auto script = _library->LoadScript(ScriptCategory::Battle, key);
return _volatile.Add(script);
}