Adds getter for pointer to script resolver on battle library.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2021-03-07 19:04:15 +01:00
parent 715da74320
commit 14ebf20f23
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 4 additions and 0 deletions

View File

@ -18,3 +18,4 @@ SMART_GET_FUNC(BattleLibrary, GetStatCalculator, const BattleStatCalculator*);
SMART_GET_FUNC(BattleLibrary, GetDamageLibrary, const DamageLibrary*);
SMART_GET_FUNC(BattleLibrary, GetMiscLibrary, const MiscLibrary*);
SMART_GET_FUNC(BattleLibrary, GetExperienceLibrary, const ExperienceLibrary*);
SMART_GET_FUNC(BattleLibrary, GetScriptResolver, ScriptResolver*);

View File

@ -40,6 +40,9 @@ namespace CreatureLib::Battling {
[[nodiscard]] const std::unique_ptr<const ExperienceLibrary>& GetExperienceLibrary() const noexcept {
return _experienceLibrary;
}
[[nodiscard]] const std::unique_ptr<ScriptResolver>& GetScriptResolver() const noexcept {
return _scriptResolver;
}
[[nodiscard]] BattleScript* LoadScript(ScriptCategory category, const ArbUt::StringView& scriptName) const;
};