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.53 by root, Tue Aug 29 13:11:58 2006 UTC vs.
Revision 1.54 by root, Tue Aug 29 14:49:28 2006 UTC

282 282
283 $res->{attachment} = $name; 283 $res->{attachment} = $name;
284 $res 284 $res
285} 285}
286 286
287sub cf::object::attach { 287*cf::object::attach =
288*cf::player::attach =
289*cf::map::attach = sub {
288 my ($obj, $name, %arg) = @_; 290 my ($obj, $name, %arg) = @_;
289 291
290 _attach_attachment $obj, $name, %arg; 292 _attach_attachment $obj, $name, %arg;
291} 293}
292 294
293sub cf::player::attach { 295# all those should be optimised
294 my ($obj, $name, %arg) = @_;
295
296 _attach_attachment $obj, $name, %arg;
297}
298
299sub cf::map::attach {
300 my ($obj, $name, %arg) = @_;
301
302 _attach_attachment $obj, $name, %arg;
303}
304
305sub cf::object::detach { 296*cf::object::detach =
297*cf::player::detach =
298*cf::map::detach = sub {
306 my ($obj, $name) = @_; 299 my ($obj, $name) = @_;
307 die;#d# 300
308} 301 delete $obj->{_attachment}{$name};
309sub cf::player::detach { 302 reattach $obj;
310 my ($obj, $name) = @_; 303};
311 die;#d#
312}
313sub cf::map::detach {
314 my ($obj, $name) = @_;
315 die;#d#
316}
317 304
318sub attach_global { 305sub attach_global {
319 _attach @CB_GLOBAL, KLASS_GLOBAL, @_ 306 _attach @CB_GLOBAL, KLASS_GLOBAL, @_
320} 307}
321 308

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines