Add C Interface function to get number of hits of executingattack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -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);)
|
||||
|
||||
Reference in New Issue
Block a user