--- deliantra/server/lib/cf.pm 2006/08/28 16:52:51 1.52 +++ deliantra/server/lib/cf.pm 2006/08/29 13:11:58 1.53 @@ -109,15 +109,21 @@ =item $object->attach ($attachment, key => $value...) -Attach a pre-registered attachment to an object. +=item $object->detach ($attachment) + +Attach/detach a pre-registered attachment to an object. =item $player->attach ($attachment, key => $value...) -Attach a pre-registered attachment to a player. +=item $player->detach ($attachment) + +Attach/detach a pre-registered attachment to a player. + +=item $map->attach ($attachment, key => $value...) -=item $map->attach ($attachment, key => $value...) # not yet persistent +=item $map->detach ($attachment) -Attach a pre-registered attachment to a map. +Attach/detach a pre-registered attachment to a map. =item cf::attach_global ... @@ -296,6 +302,19 @@ _attach_attachment $obj, $name, %arg; } +sub cf::object::detach { + my ($obj, $name) = @_; + die;#d# +} +sub cf::player::detach { + my ($obj, $name) = @_; + die;#d# +} +sub cf::map::detach { + my ($obj, $name) = @_; + die;#d# +} + sub attach_global { _attach @CB_GLOBAL, KLASS_GLOBAL, @_ }