From b2931c0964edbaaf70b3afe678f1d2f03f174854 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 11 Aug 2020 16:56:39 +0200 Subject: [PATCH] C Interface hook for getting number of creatures per side. Signed-off-by: Deukhoofd --- CInterface/Battling/Battle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/CInterface/Battling/Battle.cpp b/CInterface/Battling/Battle.cpp index fa6229f..3b16707 100644 --- a/CInterface/Battling/Battle.cpp +++ b/CInterface/Battling/Battle.cpp @@ -21,6 +21,7 @@ export uint8_t CreatureLib_Battle_TrySetChoice(bool& out, Battle* p, BaseTurnCho export bool CreatureLib_Battle_CanFlee(const Battle* p) { return p->CanFlee(); } export uint8_t CreatureLib_Battle_CheckChoicesSetAndRun(Battle* p) { Try(p->CheckChoicesSetAndRun();) } export uint32_t CreatureLib_Battle_GetCurrentTurn(Battle* p) { return p->GetCurrentTurn(); } +export uint32_t CreatureLib_Battle_GetCreaturesPerSide(Battle* p) { return p->GetCreaturesPerSide(); } export ChoiceQueue* CreatureLib_Battle_GetCurrentTurnQueue(const Battle* p) { return p->GetCurrentTurnQueue().GetRaw();