server/src/eressea/lua/event.h
Enno Rehling 9d01981c7b event-handling in lua,
events mit vargs,
events für message to unit
2004-08-08 11:02:42 +00:00

15 lines
340 B
C++

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;
};