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

Comparing deliantra/Deliantra/res2pm (file contents):
Revision 1.8 by root, Sun Mar 12 23:21:11 2006 UTC vs.
Revision 1.10 by root, Tue Jul 3 00:16:50 2007 UTC

115 115
116 my %main; 116 my %main;
117 117
118 for my $e (grep ref, @{$e->contents}) { 118 for my $e (grep ref, @{$e->contents}) {
119 if ($e->name eq "required") { 119 if ($e->name eq "required") {
120 # not used
120 for my $i (grep ref, @{$e->contents}) { 121 #for my $i (grep ref, @{$e->contents}) {
121 $type->{required}{$i->attr ("arch")} = $i->attr ("value"); 122 # $type->{required}{$i->attr ("arch")} = $i->attr ("value");
122 } 123 #}
123 } elsif ($e->name eq "attribute") { 124 } elsif ($e->name eq "attribute") {
124 parse_attr $e, $type->{attr} ||= []; 125 parse_attr $e, $type->{attr} ||= [];
125 } elsif ($e->name eq "ignore") { 126 } elsif ($e->name eq "ignore") {
126 for my $i (grep ref, @{$e->contents}) { 127 for my $i (grep ref, @{$e->contents}) {
127 if ($i->name eq "ignore_list") { 128 if ($i->name eq "ignore_list") {
129 } elsif ($i->name eq "attribute") { 130 } elsif ($i->name eq "attribute") {
130 push @{$type->{ignore}}, $i->attr ("arch"); 131 push @{$type->{ignore}}, $i->attr ("arch");
131 } 132 }
132 } 133 }
133 } elsif ($e->name eq "import_type") { 134 } elsif ($e->name eq "import_type") {
134 push @{$type->{import}}, $type{$e->attr ("name")} ||= {}; 135 #push @{$type->{import}}, $type{$e->attr ("name")} ||= {};
136 push @{$type->{import}}, $e->attr ("name");
135 } elsif ($e->name eq "use") { 137 } elsif ($e->name eq "use") {
136 $type->{use} = string $e; 138 $type->{use} = string $e;
137 } elsif ($e->name eq "description") { 139 } elsif ($e->name eq "description") {
138 $type->{desc} = string $e; 140 $type->{desc} = string $e;
139 } elsif ($e->name eq "section") { 141 } elsif ($e->name eq "section") {
199 201
200for (grep ref, @{$spell->root->contents}) { 202for (grep ref, @{$spell->root->contents}) {
201 $spell{$_->attr ("id")} = $_->attr ("name"); 203 $spell{$_->attr ("id")} = $_->attr ("name");
202} 204}
203 205
204dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR0", "ATTR", "TYPENAME", "SPELL"], 206dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR", "TYPENAME", "SPELL"],
205 [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \@attr0, \%attr, \%typename, \%spell]; 207 [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \%attr, \%typename, \%spell];
206 208
207print <<EOF; 209print <<EOF;
208 210
209=head1 AUTHOR 211=head1 AUTHOR
210 212

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines