ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/Deliantra.pm
(Generate patch)

Comparing deliantra/Deliantra/Deliantra.pm (file contents):
Revision 1.4 by root, Sun Feb 5 00:18:26 2006 UTC vs.
Revision 1.7 by root, Sun Feb 5 01:53:59 2006 UTC

8 8
9our $VERSION = '0.1'; 9our $VERSION = '0.1';
10 10
11use strict; 11use strict;
12 12
13use base 'Exporter';
14
13use Storable; 15use Storable;
14use List::Util qw(max); 16
17our @EXPORT = qw(read_pak read_arch arch2map $ARCH TILESIZE);
15 18
16our $LIB = $ENV{CROSSFIRE_LIBDIR} 19our $LIB = $ENV{CROSSFIRE_LIBDIR}
17 or die "\$CROSSFIRE_LIBDIR must be set\n"; 20 or die "\$CROSSFIRE_LIBDIR must be set\n";
18 21
19sub T (){ 32 } 22sub TILESIZE (){ 32 }
20 23
21our $ARCH; 24our $ARCH;
22our $TILE;
23 25
24sub read_pak($;$) { 26sub read_pak($;$) {
25 my ($path, $cache) = @_; 27 my ($path, $cache) = @_;
26 28
27 eval { 29 eval {
160 162
161sub init($) { 163sub init($) {
162 my ($cachedir) = @_; 164 my ($cachedir) = @_;
163 165
164 $ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst"; 166 $ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst";
165 $TILE = read_pak "$LIB/crossfire.0", "$cachedir/crossfire.0.pst";
166} 167}
167 168
168=head1 AUTHOR 169=head1 AUTHOR
169 170
170 Marc Lehmann <schmorp@schmorp.de> 171 Marc Lehmann <schmorp@schmorp.de>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines