server/src/eressea/lua/event.h

16 lines
340 B
C
Raw Normal View History

class event {
public:
event(char * m, struct event_arg * a) : args(a), msg(m) {}
const char * get_message(int i) const { return msg; }
const char * get_type(int i) const;
struct unit * get_unit(int i) const;
const char * get_string(int i) const;
int get_int(int i) const;
private:
struct event_arg * args;
char * msg;
};