Add C Interface function to get number of hits of executingattack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
86ed173d30
commit
482a0fc324
|
@ -12,6 +12,7 @@ export uint8_t CreatureLib_ExecutingAttack_Construct(ExecutingAttack*& out, Crea
|
||||||
|
|
||||||
export void CreatureLib_ExecutingAttack_Destruct(ExecutingAttack* p) { delete p; }
|
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,
|
export uint8_t CreatureLib_ExecutingAttack_GetHitData(ExecutingAttack::HitData*& out, ExecutingAttack* p,
|
||||||
Creature* target, uint8_t hit) {
|
Creature* target, uint8_t hit) {
|
||||||
Try(out = &p->GetHitData(target, hit);)
|
Try(out = &p->GetHitData(target, hit);)
|
||||||
|
|
Loading…
Reference in New Issue