mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 12:33:43 +00:00
16 lines
337 B
C++
16 lines
337 B
C++
#include "InteractionEventdataStruct.h"
|
|
|
|
#include "VEGO.h"
|
|
#include "VEGO_Event.h"
|
|
|
|
void InteractionEventdataStruct::triggerEvent()
|
|
{
|
|
// TODO: if target is null && strategy is 0, error
|
|
|
|
SDL_Event event;
|
|
SDL_zero(event);
|
|
event.type = vego::VEGO_Event_Interaction;
|
|
event.user.data1 = this;
|
|
|
|
SDL_PushEvent(&event);
|
|
} |