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.23 by root, Sat Nov 10 22:41:59 2007 UTC vs.
Revision 1.25 by root, Wed Apr 30 05:34:24 2008 UTC

91Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only 91Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only
92during ticks should an objetc process any movement or other events. 92during ticks should an objetc process any movement or other events.
93 93
94=head3 kill (object hitter -- ) 94=head3 kill (object hitter -- )
95 95
96Invoked whenever an object is dead and about to get removed. Overriding 96Invoked whenever an object was killed (hp < 0 caused by an attack) and is
97processing will skip removal, but to do this successfully you have to 97about to get removed. Overriding processing will skip removal, but to do
98objetc from dieing, otherwise the event gets invoked again and again. 98this successfully you have to keep the object from dieing, otherwise the
99event gets invoked again and again.
99 100
100=head3 apply (object who -- applytype) 101=head3 apply (object who -- applytype)
101 102
102Invoked whenever the object is being applied in some way. The applytype is one of: 103Invoked whenever the object is being applied in some way. The applytype is one of:
103 104
224 225
225=head3 cleanup () 226=head3 cleanup ()
226 227
227Called when the server is cleaning up, just before it calls exit. 228Called when the server is cleaning up, just before it calls exit.
228 229
229=head3 clock ( ) 230=head3 clock ()
230 231
231Is invoked on every server tick, usually every 0.12 seconds. 232Is invoked on every server tick, usually every 0.12 seconds.
233
234=head3 resource_update ()
235
236Is invoked after each time the server reloads its resources, which is
237usually one of the earliest things it does when starting up.
232 238
233 239
234=head2 PLAYER EVENTS 240=head2 PLAYER EVENTS
235 241
236Player events always have a player object as first argument. 242Player events always have a player object as first argument.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines