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

Comparing deliantra/server/doc/events.pod (file contents):
Revision 1.4 by root, Mon Aug 28 14:05:24 2006 UTC vs.
Revision 1.5 by root, Mon Aug 28 16:13:00 2006 UTC

122made. The copy automatically has all attachments the original object 122made. The copy automatically has all attachments the original object
123had. The perl variables get copied in a shallow way (references are shared 123had. The perl variables get copied in a shallow way (references are shared
124between instances). If this is not the behaviour you need, you have to 124between instances). If this is not the behaviour you need, you have to
125adjust the B<destination> object as you see fit. 125adjust the B<destination> object as you see fit.
126 126
127=head3 destroy (object)
128
129Invoked when the crossfire object gets destroyed, and only when the object
130has a handler for this event. This event can occur many times, as its
131called when the in-memory object is destroyed, not when the object itself
132dies.
133
127=head3 tick (object) 134=head3 tick (object)
128 135
129Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only 136Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only
130during ticks should an objetc process any movement or other events. 137during ticks should an objetc process any movement or other events.
131 138
211=head2 MAP EVENTS 218=head2 MAP EVENTS
212 219
213These events are generally dependent on a map and thus all have a map 220These events are generally dependent on a map and thus all have a map
214as first argument. 221as first argument.
215 222
223=head3 instantiate (map)
224
225Original B<map> has been loaded (e.g. on first use, or after a map
226reset).
227
216=head3 reattach (map) 228=head3 reattach (map)
217 229
218Invoked whenever attachments/plug-ins need to get reattached to the 230Invoked whenever attachments/plug-ins need to get reattached to the
219B<map>. This usually happens when the map was loaded from disk, or when the 231B<map>. This usually happens when the map was loaded from disk, or when the
220server was reloaded. 232server was reloaded.
221 233
222=head3 instantiate (map) 234=head3 destroy (map)
223 235
224Original B<map> has been loaded (e.g. on first use, or after a map 236Invoked when the map object gets destroyed, and only when the map object
225reset). 237has a handler for this event. This event can occur many times, as its
238called when the in-memory object is destroyed, not when the object itself
239dies.
226 240
227=head3 swapin (map) 241=head3 swapin (map)
228 242
229Invoked when a previously swapped-out temporary B<map> has been loaded again. 243Invoked when a previously swapped-out temporary B<map> has been loaded again.
230 244

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines