1 | // define event types by enumerating them here |
1 | // define event types by enumerating them here |
2 | |
2 | |
3 | def(APPLY) // apply a specific type of object |
3 | // global events |
|
|
4 | def(GLOBAL, CLOCK) |
|
|
5 | |
|
|
6 | // per-player |
|
|
7 | def(PLAYER, BIRTH) // called as very first thing after creating a player |
|
|
8 | def(PLAYER, QUIT) // called after logout |
|
|
9 | def(PLAYER, LOAD) |
|
|
10 | def(PLAYER, SAVE) |
|
|
11 | def(PLAYER, LOGIN) |
|
|
12 | def(PLAYER, LOGOUT) |
|
|
13 | def(PLAYER, DEATH) |
|
|
14 | def(PLAYER, ENTER) |
|
|
15 | def(PLAYER, LEAVE) |
|
|
16 | |
|
|
17 | // per-object events |
|
|
18 | def(OBJECT, APPLY) |
|
|
19 | |
|
|
20 | // per-map |
|
|
21 | def(MAP, LOAD) // Original map has been loaded |
|
|
22 | def(MAP, SWAPIN) // Temporary map has been swapped in |
|
|
23 | def(MAP, SWAPOUT) // Map has been swapped out |
|
|
24 | def(MAP, RESET) // A map is resetting |
|
|
25 | def(MAP, CLEAN) // Temporary map will be deleted |
|
|
26 | |