2020-03-09 10:12:24 +00:00
|
|
|
#include "../../src/Battling/EventHooks/EventData.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-03-09 10:12:24 +00:00
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export void CreatureLib_EventData_Destruct(const EventData* p) { delete p; }
|
|
|
|
|
|
|
|
SIMPLE_GET_FUNC(EventData, GetKind, EventDataKind);
|
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
BORROWED_GET_FUNC(DamageEvent, GetCreature, Creature*);
|
2020-03-09 10:12:24 +00:00
|
|
|
SIMPLE_GET_FUNC(DamageEvent, GetDamageSource, DamageSource);
|
|
|
|
SIMPLE_GET_FUNC(DamageEvent, GetOriginalHealth, uint32_t);
|
|
|
|
SIMPLE_GET_FUNC(DamageEvent, GetNewHealth, uint32_t);
|
2020-07-31 13:01:25 +00:00
|
|
|
export void CreatureLib_DamageEvent_Destruct(const DamageEvent* p) { delete p; }
|
2020-03-09 10:12:24 +00:00
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
BORROWED_GET_FUNC(HealEvent, GetCreature, Creature*);
|
2020-03-09 10:12:24 +00:00
|
|
|
SIMPLE_GET_FUNC(HealEvent, GetOriginalHealth, uint32_t);
|
|
|
|
SIMPLE_GET_FUNC(HealEvent, GetNewHealth, uint32_t);
|
2020-07-31 13:01:25 +00:00
|
|
|
export void CreatureLib_HealEvent_Destruct(const HealEvent* p) { delete p; }
|
2020-03-09 15:30:36 +00:00
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
BORROWED_GET_FUNC(FaintEvent, GetCreature, Creature*);
|
2020-07-31 13:01:25 +00:00
|
|
|
export void CreatureLib_FaintEvent_Destruct(const FaintEvent* p) { delete p; }
|
2020-03-09 16:43:36 +00:00
|
|
|
|
|
|
|
export const char* CreatureLib_DisplayTextEvent_GetText(const DisplayTextEvent* p) { return p->GetText().c_str(); }
|
2020-07-31 13:01:25 +00:00
|
|
|
export void CreatureLib_DisplayTextEvent_Destruct(const DisplayTextEvent* p) { delete p; }
|