forked from github/server
9d01981c7b
events mit vargs, events für message to unit
15 lines
340 B
C++
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;
|
|
};
|
|
|