mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-19 04:34:51 -04:00
revision of events
This commit is contained in:
parent
858c4384e8
commit
669f72908e
33 changed files with 661 additions and 382 deletions
12
libs/event.h
12
libs/event.h
|
@ -99,6 +99,18 @@ extern char *otevri_zavoru;
|
|||
//extern int curtask;
|
||||
//extern char *task_info;
|
||||
|
||||
///copies message
|
||||
static inline EVENT_MSG clone_message(EVENT_MSG *msg) {
|
||||
EVENT_MSG out;
|
||||
out.msg = msg->msg;
|
||||
va_copy(out.data, msg->data);
|
||||
return out;
|
||||
}
|
||||
///destroys copied message
|
||||
static inline void destroy_message(EVENT_MSG *msg) {
|
||||
va_end(msg->data);
|
||||
}
|
||||
|
||||
void init_events(void);
|
||||
// inicalizuje zakladni strom udalosto
|
||||
void send_message(int message,...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue