ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/eventinc.h
Revision: 1.2
Committed: Fri Aug 25 13:24:50 2006 UTC (17 years, 9 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.1: +24 -1 lines
Log Message:
Implemented a rough outline of the new event system and made use of it
for a number of events. The corresponding plugin-events have been disabled.

File Contents

# User Rev Content
1 root 1.1 // define event types by enumerating them here
2    
3 root 1.2 // 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