ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf/mapscript.pm
Revision: 1.1
Committed: Thu Jan 8 03:03:24 2009 UTC (15 years, 5 months ago) by root
Branch: MAIN
Log Message:
connected => shstr, beginning of mapscript

File Contents

# Content
1 #! perl
2
3 # this implements the mapscript connectable
4
5 package safe::mapscript;
6
7 use strict qw(subs vars);
8
9 our ($self, $activator, $state);
10
11 package cf::mapscript;
12
13 use strict qw(subs vars);
14
15 sub activate($$$) {
16 ($self, $activator, $state) = @_;
17
18 warn "$self->{msg} $self->{on_activate}\n";#d#
19
20 (
21 $self->{on_activate} ||= cf::safe_eval
22 "package mapscript; sub {\n"
23 . "#line 1 '" . ($self->debug_desc) . "'\n"
24 . $self->msg
25 . "\n}"
26 or sub { }
27 )->();
28 }
29
30 1;