ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/eventinc.h
Revision: 1.5
Committed: Sat Aug 26 23:36:32 2006 UTC (17 years, 9 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.4: +9 -0 lines
Log Message:
intermediate check-in, per-object events work

File Contents

# Content
1 // define event types by enumerating them here
2
3 // global events
4 def (GLOBAL, CLOCK) // NYI
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 def (PLAYER, USE_SKILL)
17 def (PLAYER, EXTCMD)
18 def (PLAYER, PRAY_ALTAR)
19 def (PLAYER, TELL) //NYI
20 def (PLAYER, SAY) //NYI
21 def (PLAYER, SHOUT) //NYI
22
23 // per-object events
24 def (OBJECT, TICK)
25 def (OBJECT, KILL)
26 def (OBJECT, APPLY)
27 def (OBJECT, USE_SKILL)
28 def (OBJECT, CAST_SPELL)
29 def (OBJECT, DROP_ON) // NYI
30 def (OBJECT, LISTEN) //NYI
31 def (OBJECT, MOVE) // (object, enemy) called for monsters to move them
32 def (OBJECT, ATTACK) // (object, hitter) object gets attacked
33 def (OBJECT, ATTACKS) // (weapon, hitter, victim) object gets used as weapon
34
35 // plug-in attachment
36 def (OBJECT, INSTANTIATE) // an archetype was instantiated into an object
37 def (OBJECT, LOAD) // an objetc was loaded _and had extension_
38 def (OBJECT, CLONE) // an object with _attached extension_ is cloned
39
40 // per-map
41 def (MAP, LOAD) // Original map has been loaded
42 def (MAP, SWAPIN) // Temporary map has been swapped in
43 def (MAP, SWAPOUT) // Map has been swapped out
44 def (MAP, RESET) // A map is resetting
45 def (MAP, CLEAN) // Temporary map will be deleted
46