26 lines
372 B
C
26 lines
372 B
C
#ifndef EVENT_H
|
|
# define EVENT_H
|
|
|
|
#include <core.h>
|
|
|
|
typedef enum {
|
|
EVT_HUNGER_TICK,
|
|
EVT_DAMAGE_TAKEN,
|
|
EVT_ITEM_OBSERVED,
|
|
EVT_ORDER_RECEIVED,
|
|
EVT_MEMORY_TRIGGERED,
|
|
EVT_PLAYER_INPUT,
|
|
} EVENT_TYPE;
|
|
|
|
typedef struct {
|
|
EVENT_TYPE type;
|
|
int value;
|
|
double time;
|
|
char* info;
|
|
int initiator;
|
|
int actors;
|
|
int actions;
|
|
} Event;
|
|
|
|
#endif
|