1 | #! perl # mandatory |
1 | #! perl # mandatory |
2 | |
2 | |
3 | # this is the map type for the {link} map, a singleton |
3 | # this is the map type for the {link} map, a singleton |
4 | # this is the only map in the server that is guaranteed to exit |
4 | # this is the only map in the server that is guaranteed to exist |
5 | # at all times without blocking, and this is ensured by not relying |
5 | # at all times without blocking, and this is ensured by not relying |
6 | # on any external files. |
6 | # on any external files. |
7 | |
7 | |
8 | cf::map->register (qr{^\{link\}}); |
8 | cf::map->register (qr{^\{link\}}); |
9 | |
9 | |
… | |
… | |
19 | $self->no_reset (1); |
19 | $self->no_reset (1); |
20 | |
20 | |
21 | $self->name ("interdimensional nothingness"); |
21 | $self->name ("interdimensional nothingness"); |
22 | |
22 | |
23 | $self->alloc; |
23 | $self->alloc; |
24 | $self->in_memory (cf::MAP_INACTIVE); |
24 | $self->state (cf::MAP_INACTIVE); |
25 | |
25 | |
26 | # provide a floor |
26 | # provide a floor |
27 | my $floor = cf::object::new "dirtfloor"; |
27 | my $floor = cf::object::new "dirtfloor"; |
28 | Guard::scope_guard { $floor->destroy }; |
28 | Guard::scope_guard { $floor->destroy }; |
29 | |
29 | |