ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-per-player.ext
(Generate patch)

Comparing deliantra/server/ext/map-per-player.ext (file contents):
Revision 1.2 by root, Sat Jan 13 23:32:43 2007 UTC vs.
Revision 1.5 by elmex, Thu Jan 18 15:12:43 2007 UTC

1#! perl # MANDATORY 1#! perl # MANDATORY
2 2
3cf::map->register (qr{^~([^/]+)(/.*)}); 3cf::map->register (qr{^~([^/]+)(/.*)});
4 4
5sub decay_objects {
6 # do nothing on per player maps at the moment
7 # as the lone town apartment is broooken
8}
9
5sub init { 10sub init {
6 my ($self) = @_; 11 my ($self) = @_;
7 12
8 $self->{user} = $1; 13 $self->{user} = $1;
9 $self->{orig_path} = $2; 14 $self->{orig_path} = $2;
15 $self->{deny_reset} = 1; #d# for now
16}
17
18sub thawer_merge {
19 # we have to keep some variables in memory intact
20 local $_[0]{user};
21 local $_[0]{orig_path};
22 local $_[0]{deny_reset};
23
24 $_[0]->SUPER::thawer_merge ($_[1]);
10} 25}
11 26
12sub load_path { 27sub load_path {
13 my ($self) = @_; 28 my ($self) = @_;
14 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines