Allow getting Static Library from BattleLibrary.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-02 19:33:10 +01:00
parent 18236981ed
commit dd8d4d738d
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
namespace CreatureLib::Battling { namespace CreatureLib::Battling {
class BattleLibrary { class BattleLibrary {
protected:
const Library::DataLibrary* _staticLib = nullptr; const Library::DataLibrary* _staticLib = nullptr;
BattleStatCalculator* _statCalculator = nullptr; BattleStatCalculator* _statCalculator = nullptr;
DamageLibrary* _damageLibrary = nullptr; DamageLibrary* _damageLibrary = nullptr;
@ -22,6 +23,7 @@ namespace CreatureLib::Battling {
DamageLibrary* damageLibrary, ExperienceLibrary* experienceLibrary, DamageLibrary* damageLibrary, ExperienceLibrary* experienceLibrary,
ScriptResolver* scriptResolver, MiscLibrary* miscLibrary); ScriptResolver* scriptResolver, MiscLibrary* miscLibrary);
~BattleLibrary(); ~BattleLibrary();
inline const Library::DataLibrary* GetStaticLib() const { return _staticLib; }
[[nodiscard]] const Library::LibrarySettings& GetSettings() const; [[nodiscard]] const Library::LibrarySettings& GetSettings() const;
[[nodiscard]] const Library::SpeciesLibrary* GetSpeciesLibrary() const; [[nodiscard]] const Library::SpeciesLibrary* GetSpeciesLibrary() const;