From dd8d4d738d3574933c8f071220028d0088fbb326 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 2 Jan 2020 19:33:10 +0100 Subject: [PATCH] Allow getting Static Library from BattleLibrary. --- src/Battling/Library/BattleLibrary.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Battling/Library/BattleLibrary.hpp b/src/Battling/Library/BattleLibrary.hpp index 86aaab5..81485af 100644 --- a/src/Battling/Library/BattleLibrary.hpp +++ b/src/Battling/Library/BattleLibrary.hpp @@ -10,6 +10,7 @@ namespace CreatureLib::Battling { class BattleLibrary { + protected: const Library::DataLibrary* _staticLib = nullptr; BattleStatCalculator* _statCalculator = nullptr; DamageLibrary* _damageLibrary = nullptr; @@ -22,6 +23,7 @@ namespace CreatureLib::Battling { DamageLibrary* damageLibrary, ExperienceLibrary* experienceLibrary, ScriptResolver* scriptResolver, MiscLibrary* miscLibrary); ~BattleLibrary(); + inline const Library::DataLibrary* GetStaticLib() const { return _staticLib; } [[nodiscard]] const Library::LibrarySettings& GetSettings() const; [[nodiscard]] const Library::SpeciesLibrary* GetSpeciesLibrary() const;