diff --git a/CInterface/Battling/BattleSide.cpp b/CInterface/Battling/BattleSide.cpp index e4ccc1a..89b7ad0 100644 --- a/CInterface/Battling/BattleSide.cpp +++ b/CInterface/Battling/BattleSide.cpp @@ -8,6 +8,7 @@ export BattleSide* CreatureLib_BattleSide_Construct(uint8_t index, Battle* battl export void CreatureLib_BattleSide_Destruct(BattleSide* p) { delete p; } +export Battle* CreatureLib_BattleSide_GetBattle(BattleSide* p) { return p->GetBattle(); } export bool CreatureLib_BattleSide_AllChoicesSet(BattleSide* p) { return p->AllChoicesSet(); } export uint8_t CreatureLib_BattleSide_AllPossibleSlotsFilled(bool& out, BattleSide* p) { diff --git a/src/Battling/Models/BattleSide.hpp b/src/Battling/Models/BattleSide.hpp index 831aed6..1cb5b43 100644 --- a/src/Battling/Models/BattleSide.hpp +++ b/src/Battling/Models/BattleSide.hpp @@ -30,6 +30,8 @@ namespace CreatureLib::Battling { virtual ~BattleSide() = default; + [[nodiscard]] inline ArbUt::BorrowedPtr GetBattle() const noexcept { return _battle; } + [[nodiscard]] bool AllChoicesSet() const noexcept; [[nodiscard]] const ArbUt::List>& GetChoices() const noexcept { return _choices;