virtual void put(MtEvent *e)=0
virtual ~MtEventManager()=default
virtual void reg(MtEvent::Type type, event_receive_func f, void *data)=0
virtual void dereg(MtEvent::Type type, event_receive_func f, void *data)=0
virtual ~MtEventReceiver()=default
virtual void onEvent(MtEvent *e)=0
Type
Definition mtevent.h:13
@ PLAYER_JUMP
Definition mtevent.h:20
@ PLAYER_DAMAGE
Definition mtevent.h:18
@ PLAYER_FALLING_DAMAGE
Definition mtevent.h:17
@ VIEW_BOBBING_STEP
Definition mtevent.h:14
@ NODE_DUG
Definition mtevent.h:19
@ TYPE_MAX
Definition mtevent.h:22
@ PLAYER_REGAIN_GROUND
Definition mtevent.h:21
@ CAMERA_PUNCH_LEFT
Definition mtevent.h:15
@ CAMERA_PUNCH_RIGHT
Definition mtevent.h:16
virtual ~MtEvent()=default
virtual Type getType() const =0
Type getType() const override
Definition mtevent.h:36
Type type
Definition mtevent.h:32
SimpleTriggerEvent(Type type)
Definition mtevent.h:35
void(* event_receive_func)(MtEvent *e, void *data)
Definition mtevent.h:46