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.90 by root, Sat Dec 16 04:22:13 2006 UTC vs.
Revision 1.91 by elmex, Sun Dec 17 22:03:44 2006 UTC

864 864
865=pod 865=pod
866 866
867The following fucntions and emthods are available within a safe environment: 867The following fucntions and emthods are available within a safe environment:
868 868
869 cf::object contr pay_amount pay_player 869 cf::object contr pay_amount pay_player map
870 cf::object::player player 870 cf::object::player player
871 cf::player peaceful 871 cf::player peaceful
872 cf::map trigger
872 873
873=cut 874=cut
874 875
875for ( 876for (
876 ["cf::object" => qw(contr pay_amount pay_player)], 877 ["cf::object" => qw(contr pay_amount pay_player map)],
877 ["cf::object::player" => qw(player)], 878 ["cf::object::player" => qw(player)],
878 ["cf::player" => qw(peaceful)], 879 ["cf::player" => qw(peaceful)],
880 ["cf::map" => qw(trigger)],
879) { 881) {
880 no strict 'refs'; 882 no strict 'refs';
881 my ($pkg, @funs) = @$_; 883 my ($pkg, @funs) = @$_;
882 *{"safe::$pkg\::$_"} = $safe_hole->wrap (\&{"$pkg\::$_"}) 884 *{"safe::$pkg\::$_"} = $safe_hole->wrap (\&{"$pkg\::$_"})
883 for @funs; 885 for @funs;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines