ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/eventinc.h
Revision: 1.9
Committed: Mon Aug 28 07:07:41 2006 UTC (17 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.8: +1 -0 lines
Log Message:
better but more wasteful serialisation support, perl can invoke events, fixes

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, REATTACH) // (pl)
8 def (PLAYER, BIRTH) // (pl) called as very first thing after creating a player
9 def (PLAYER, QUIT) // (pl) called after logout
10 def (PLAYER, LOAD)
11 def (PLAYER, SAVE)
12 def (PLAYER, LOGIN)
13 def (PLAYER, LOGOUT)
14 def (PLAYER, DEATH)
15 def (PLAYER, MAP_CHANGE) // (pl oldmap newmap)
16 def (PLAYER, USE_SKILL)
17 def (PLAYER, EXTCMD) // (pl string)
18 def (PLAYER, PRAY_ALTAR)
19 def (PLAYER, TELL) //NYI
20 def (PLAYER, SAY) //NYI
21 def (PLAYER, SHOUT) //NYI
22
23 // plug-in attachment
24 def (OBJECT, INSTANTIATE) // (object) an archetype was instantiated into an object
25 def (OBJECT, REATTACH) // (object) an object was loaded _and_ had extensions
26 def (OBJECT, CLONE) // (object destination) an object with _attached extension_ is cloned
27
28 // per-object events
29 def (OBJECT, TICK)
30 def (OBJECT, KILL)
31 def (OBJECT, APPLY) // (object who -- applytype)
32 // 0: player or monster can't apply objects of that type
33 // 1: has been applied, or there was an error applying the object
34 // 2: objects of that type can't be applied if not in inventory
35 def (OBJECT, USE_SKILL)
36 def (OBJECT, CAST_SPELL)
37 def (OBJECT, DROP) // (object who -- ) an item gets dropped
38 def (OBJECT, DROP_ON) // (floor object who -- ) something was dropped on the floor
39 def (OBJECT, LISTEN) //NYI
40 def (OBJECT, MOVE) // (object enemy -- ) called when a monster tries to move
41 def (OBJECT, ATTACK) // (object hitter -- damage) object gets attacked
42 def (OBJECT, ATTACKS) // (weapon hitter, victim) object gets used as weapon
43 def (OBJECT, INSCRIBE_NOTE) // (book pl message skill -- ) inscribe a note into a book
44 def (OBJECT, TRIGGER) // (object activator -- ) an object was triggered
45 def (OBJECT, MOVE_TRIGGER) // (object victim originator -- ) a trap-like object was triggered
46 def (OBJECT, CLOSE) // (container -- ) close a container
47
48 // per-map
49 def (MAP, REATTACH) // (map)
50 def (MAP, LOAD) // (map) Original map has been loaded
51 def (MAP, SWAPIN) // (map) Temporary map has been swapped in
52 def (MAP, SWAPOUT) // (map) Map has been swapped out
53 def (MAP, RESET) // (map) A map is resetting
54 def (MAP, CLEAN) // (map) Temporary map will be deleted
55 def (MAP, ENTER) // (map pl)
56 def (MAP, LEAVE) // (map pl)
57 def (MAP, UPGRADE) // temporary, map gets upgraded form old event system
58