Adds getter for pointer to script resolver on battle library.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
715da74320
commit
14ebf20f23
|
@ -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*);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue