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