From 482a0fc3247756609ce2a360f7288ec00215116e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 24 Aug 2020 20:37:36 +0200 Subject: [PATCH] Add C Interface function to get number of hits of executingattack. Signed-off-by: Deukhoofd --- CInterface/Battling/ExecutingAttack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/CInterface/Battling/ExecutingAttack.cpp b/CInterface/Battling/ExecutingAttack.cpp index d7470e9..3a52988 100644 --- a/CInterface/Battling/ExecutingAttack.cpp +++ b/CInterface/Battling/ExecutingAttack.cpp @@ -12,6 +12,7 @@ export uint8_t CreatureLib_ExecutingAttack_Construct(ExecutingAttack*& out, Crea export void CreatureLib_ExecutingAttack_Destruct(ExecutingAttack* p) { delete p; } +SIMPLE_GET_FUNC(ExecutingAttack, GetNumberOfHits, uint8_t); export uint8_t CreatureLib_ExecutingAttack_GetHitData(ExecutingAttack::HitData*& out, ExecutingAttack* p, Creature* target, uint8_t hit) { Try(out = &p->GetHitData(target, hit);)