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

# User Rev Content
1 root 1.1 // define event types by enumerating them here
2    
3 root 1.2 // global events
4 root 1.3 def (GLOBAL, CLOCK) // NYI
5 root 1.2
6     // per-player
7 root 1.8 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 root 1.3 def (PLAYER, LOAD)
11     def (PLAYER, SAVE)
12     def (PLAYER, LOGIN)
13     def (PLAYER, LOGOUT)
14     def (PLAYER, DEATH)
15 root 1.8 def (PLAYER, MAP_CHANGE) // (pl oldmap newmap)
16 root 1.3 def (PLAYER, USE_SKILL)
17 root 1.8 def (PLAYER, EXTCMD) // (pl string)
18 root 1.3 def (PLAYER, PRAY_ALTAR)
19 root 1.4 def (PLAYER, TELL) //NYI
20     def (PLAYER, SAY) //NYI
21     def (PLAYER, SHOUT) //NYI
22 root 1.2
23 root 1.7 // plug-in attachment
24 root 1.8 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 root 1.7
28 root 1.2 // per-object events
29 root 1.5 def (OBJECT, TICK)
30 root 1.3 def (OBJECT, KILL)
31 root 1.8 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 root 1.3 def (OBJECT, USE_SKILL)
36     def (OBJECT, CAST_SPELL)
37 root 1.8 def (OBJECT, DROP) // (object who -- ) an item gets dropped
38     def (OBJECT, DROP_ON) // (floor object who -- ) something was dropped on the floor
39 root 1.4 def (OBJECT, LISTEN) //NYI
40 root 1.8 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 root 1.2
48     // per-map
49 root 1.8 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 root 1.9 def (MAP, UPGRADE) // temporary, map gets upgraded form old event system
58 root 1.2