ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.52 by root, Mon Aug 28 16:52:51 2006 UTC vs.
Revision 1.53 by root, Tue Aug 29 13:11:58 2006 UTC

107############################################################################# 107#############################################################################
108# "new" plug-in system 108# "new" plug-in system
109 109
110=item $object->attach ($attachment, key => $value...) 110=item $object->attach ($attachment, key => $value...)
111 111
112=item $object->detach ($attachment)
113
112Attach a pre-registered attachment to an object. 114Attach/detach a pre-registered attachment to an object.
113 115
114=item $player->attach ($attachment, key => $value...) 116=item $player->attach ($attachment, key => $value...)
115 117
118=item $player->detach ($attachment)
119
116Attach a pre-registered attachment to a player. 120Attach/detach a pre-registered attachment to a player.
117 121
118=item $map->attach ($attachment, key => $value...) # not yet persistent 122=item $map->attach ($attachment, key => $value...)
119 123
124=item $map->detach ($attachment)
125
120Attach a pre-registered attachment to a map. 126Attach/detach a pre-registered attachment to a map.
121 127
122=item cf::attach_global ... 128=item cf::attach_global ...
123 129
124Attach handlers for global events. 130Attach handlers for global events.
125 131
292 298
293sub cf::map::attach { 299sub cf::map::attach {
294 my ($obj, $name, %arg) = @_; 300 my ($obj, $name, %arg) = @_;
295 301
296 _attach_attachment $obj, $name, %arg; 302 _attach_attachment $obj, $name, %arg;
303}
304
305sub cf::object::detach {
306 my ($obj, $name) = @_;
307 die;#d#
308}
309sub cf::player::detach {
310 my ($obj, $name) = @_;
311 die;#d#
312}
313sub cf::map::detach {
314 my ($obj, $name) = @_;
315 die;#d#
297} 316}
298 317
299sub attach_global { 318sub attach_global {
300 _attach @CB_GLOBAL, KLASS_GLOBAL, @_ 319 _attach @CB_GLOBAL, KLASS_GLOBAL, @_
301} 320}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines