From b1ecb56f10a69561a2506a317fe2193ac5167730 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 31 Jul 2020 14:21:46 +0200 Subject: [PATCH] Add C Interface for Battle::GetCurrentTurn. --- CInterface/Battling/Battle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/CInterface/Battling/Battle.cpp b/CInterface/Battling/Battle.cpp index e406485..f35d3b5 100644 --- a/CInterface/Battling/Battle.cpp +++ b/CInterface/Battling/Battle.cpp @@ -20,6 +20,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 ChoiceQueue* CreatureLib_Battle_GetCurrentTurnQueue(const Battle* p) { return p->GetCurrentTurnQueue().GetRaw();