2020-08-14 11:52:22 +00:00
|
|
|
#include "../../src/Battling/EventHooks/EventDataClasses.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-03-09 10:12:24 +00:00
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(EventData);
|
2020-03-09 10:12:24 +00:00
|
|
|
|
|
|
|
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);
|
2022-03-23 12:56:45 +00:00
|
|
|
SIMPLE_GET_FUNC(DamageEvent, GetOriginalHealth, u32);
|
|
|
|
SIMPLE_GET_FUNC(DamageEvent, GetNewHealth, u32);
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(DamageEvent);
|
2020-03-09 10:12:24 +00:00
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
BORROWED_GET_FUNC(HealEvent, GetCreature, Creature*);
|
2022-03-23 12:56:45 +00:00
|
|
|
SIMPLE_GET_FUNC(HealEvent, GetOriginalHealth, u32);
|
|
|
|
SIMPLE_GET_FUNC(HealEvent, GetNewHealth, u32);
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(HealEvent);
|
2020-03-09 15:30:36 +00:00
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
BORROWED_GET_FUNC(FaintEvent, GetCreature, Creature*);
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(FaintEvent);
|
|
|
|
|
|
|
|
BORROWED_GET_FUNC(SwitchEvent, GetNewCreature, Creature*);
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func u8 CreatureLib_SwitchEvent_GetSide(const SwitchEvent* p) { return p->GetIndex().GetSideIndex(); }
|
|
|
|
export_func u8 CreatureLib_SwitchEvent_GetIndex(const SwitchEvent* p) { return p->GetIndex().GetCreatureIndex(); }
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(SwitchEvent);
|
|
|
|
|
|
|
|
DESTRUCTOR(TurnStartEvent);
|
|
|
|
|
|
|
|
DESTRUCTOR(TurnEndEvent);
|
|
|
|
|
2020-08-25 16:33:39 +00:00
|
|
|
BORROWED_GET_FUNC(ExperienceGainEvent, GetCreature, const Creature*);
|
2022-03-23 12:56:45 +00:00
|
|
|
SIMPLE_GET_FUNC(ExperienceGainEvent, GetPreviousExperience, u32);
|
|
|
|
SIMPLE_GET_FUNC(ExperienceGainEvent, GetNewExperience, u32);
|
2020-08-07 09:51:43 +00:00
|
|
|
DESTRUCTOR(ExperienceGainEvent);
|
2020-03-09 16:43:36 +00:00
|
|
|
|
2020-08-25 16:33:39 +00:00
|
|
|
BORROWED_GET_FUNC(MissEvent, GetCreature, const Creature*);
|
|
|
|
DESTRUCTOR(MissEvent);
|
|
|
|
|
|
|
|
BORROWED_GET_FUNC(ChangeSpeciesEvent, GetCreature, const Creature*);
|
|
|
|
BORROWED_GET_FUNC(ChangeSpeciesEvent, GetNewSpecies, const CreatureLib::Library::CreatureSpecies*);
|
|
|
|
DESTRUCTOR(ChangeSpeciesEvent);
|
|
|
|
|
|
|
|
BORROWED_GET_FUNC(ChangeVariantEvent, GetCreature, const Creature*);
|
|
|
|
BORROWED_GET_FUNC(ChangeVariantEvent, GetNewVariant, const CreatureLib::Library::SpeciesVariant*);
|
|
|
|
DESTRUCTOR(ChangeVariantEvent);
|
|
|
|
|
|
|
|
BORROWED_GET_FUNC(AttackUseEvent, GetAttack, const ExecutingAttack*);
|
|
|
|
DESTRUCTOR(AttackUseEvent);
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const char* CreatureLib_DisplayTextEvent_GetText(const DisplayTextEvent* p) { return p->GetText().c_str(); }
|
|
|
|
export_func void CreatureLib_DisplayTextEvent_Destruct(const DisplayTextEvent* p) { delete p; }
|
2021-01-16 20:16:47 +00:00
|
|
|
|
|
|
|
BORROWED_GET_FUNC(ChangeStatBoostEvent, GetCreature, const Creature*);
|
|
|
|
SIMPLE_GET_FUNC(ChangeStatBoostEvent, GetStatistic, CreatureLib::Library::Statistic);
|
2022-03-23 12:56:45 +00:00
|
|
|
SIMPLE_GET_FUNC(ChangeStatBoostEvent, GetOldValue, i8);
|
|
|
|
SIMPLE_GET_FUNC(ChangeStatBoostEvent, GetNewValue, i8);
|
2021-01-16 20:16:47 +00:00
|
|
|
|
|
|
|
DESTRUCTOR(ChangeStatBoostEvent);
|