1 | #! perl # MANDATORY |
1 | #! perl # MANDATORY |
2 | |
2 | |
3 | cf::map->register (qr{^~([^/]+)(/.*)}); |
3 | cf::map->register (qr{^~([^/]+)(/.*)}); |
|
|
4 | |
|
|
5 | sub decay_objects { |
|
|
6 | # do nothing on per player maps at the moment |
|
|
7 | # as the lone town apartment is broooken |
|
|
8 | } |
4 | |
9 | |
5 | sub init { |
10 | sub 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; |
10 | $self->{deny_reset} = 1; #d# for now |
15 | $self->{deny_reset} = 1; #d# for now |
|
|
16 | } |
|
|
17 | |
|
|
18 | sub 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]); |
11 | } |
25 | } |
12 | |
26 | |
13 | sub load_path { |
27 | sub load_path { |
14 | my ($self) = @_; |
28 | my ($self) = @_; |
15 | |
29 | |