ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/pod/events.pod
(Generate patch)

Comparing deliantra/server/pod/events.pod (file contents):
Revision 1.2 by elmex, Fri Sep 8 15:34:56 2006 UTC vs.
Revision 1.4 by root, Sun Sep 17 14:22:28 2006 UTC

183 183
184=head2 GLOBAL EVENTS 184=head2 GLOBAL EVENTS
185 185
186Global events have no relation to specific objects. 186Global events have no relation to specific objects.
187 187
188=head3 cleanup ()
189
190Called when the server is cleaning up, just before it calls exit.
191
188=head3 clock ( ) 192=head3 clock ( )
189 193
190Is invoked on every server tick, usually every 0.12 seconds. 194Is invoked on every server tick, usually every 0.12 seconds.
195
191 196
192=head2 PLAYER EVENTS 197=head2 PLAYER EVENTS
193 198
194Player events always have a player object as first argument. 199Player events always have a player object as first argument.
195 200
230 235
231=head3 death (player) 236=head3 death (player)
232 237
233Invoked whenever a player dies, before the death actually gets processed. 238Invoked whenever a player dies, before the death actually gets processed.
234 239
235=head3 map_change (player oldmap newmap) 240=head3 map_change (player newmap x y -- )
236 241
237Invoked whenever a player moves from one map to another. 242Invoked before a player moves from one map to another, can override the movement.
238 243
239=head3 extcmd (player string) 244=head3 extcmd (player string)
240 245
241Invoked whenever a client issues the C<extcmd> protocol command. It's 246Invoked whenever a client issues the C<extcmd> protocol command. It's
242argument is passed without any changes. 247argument is passed without any changes.
299 304
300=head3 clean (map) 305=head3 clean (map)
301 306
302Invoked when a temporary B<map> gets deleted on-disk. 307Invoked when a temporary B<map> gets deleted on-disk.
303 308
304=head3 enter (map player) 309=head3 enter (map player x y -- )
305 310
306Invoked whenever a player enters the B<map>. This event is likely unreliable. 311Invoked whenever a player tries to enter the B<map>, while he/she is still
312on the old map. Overriding means the player won't be able to enter.
307 313
308=head3 leave (map player) 314=head3 leave (map player -- )
309 315
310Invoked whenever a player leaves the B<map>. This event is likely unreliable. 316Invoked whenever a player tries to leave the B<map>. Overriding means the
311 317player won't be able to leave.
312=head3 upgrade (map)
313
314(TEMPORARY EVENT) gets invoked whenever a old-style map has been upgraded.
315 318
316=head3 trigger (map connection state) 319=head3 trigger (map connection state)
317 320
318Invoked whenever something activates a B<connection> on the B<map>. If B<state> 321Invoked whenever something activates a B<connection> on the B<map>. If B<state>
319is true the connection was 'state' and if false it is 'released'. 322is true the connection was 'state' and if false it is 'released'.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines