C Interface for several events.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-25 18:33:39 +02:00
parent 482a0fc324
commit 97c4856117
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 15 additions and 1 deletions

View File

@ -29,10 +29,24 @@ DESTRUCTOR(TurnStartEvent);
DESTRUCTOR(TurnEndEvent);
BORROWED_GET_FUNC(ExperienceGainEvent, GetCreature, Creature*);
BORROWED_GET_FUNC(ExperienceGainEvent, GetCreature, const Creature*);
SIMPLE_GET_FUNC(ExperienceGainEvent, GetPreviousExperience, uint32_t);
SIMPLE_GET_FUNC(ExperienceGainEvent, GetNewExperience, uint32_t);
DESTRUCTOR(ExperienceGainEvent);
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);
export const char* CreatureLib_DisplayTextEvent_GetText(const DisplayTextEvent* p) { return p->GetText().c_str(); }
export void CreatureLib_DisplayTextEvent_Destruct(const DisplayTextEvent* p) { delete p; }