--- deliantra/server/lib/cf.pm 2006/09/12 23:45:16 1.68 +++ deliantra/server/lib/cf.pm 2006/09/18 01:10:35 1.69 @@ -810,6 +810,21 @@ wantarray ? @res : $res[0] } +=item cf::register_script_function $function => $cb + +Register a function that can be called from within map/npc scripts. The +function should be reasonably secure and should be put into a package name +like the extension. + +Example: register a function that gets called whenever a map script calls +C, as used by the C extension. + + cf::register_script_function "rent::overview" => sub { + ... + }; + +=cut + sub register_script_function { my ($fun, $cb) = @_;