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.18 by root, Wed Feb 22 22:41:22 2006 UTC vs.
Revision 1.19 by root, Wed Feb 22 23:02:59 2006 UTC

272 return if %ARCH; 272 return if %ARCH;
273 273
274 *ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst"; 274 *ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst";
275} 275}
276 276
277=item $data = arch_attr $arch 277=item $type = arch_attr $arch
278 278
279Returns a hashref describing the object and its attributes. It can contain 279Returns a hashref describing the object and its attributes. It can contain
280the following keys: 280the following keys:
281 281
282 name the name, suitable for display purposes 282 name the name, suitable for display purposes
283 ignore 283 ignore
284 attr 284 attr
285 desc 285 desc
286 use 286 use
287 section => [name => \%attr, name => \%attr] 287 section => [name => \%attr, name => \%attr]
288 import
288 289
289=cut 290=cut
290 291
291sub arch_attr($) { 292sub arch_attr($) {
292 my ($arch) = @_; 293 my ($arch) = @_;
314 } 315 }
315 } 316 }
316 317
317 use PApp::Util; 318 use PApp::Util;
318 warn PApp::Util::dumpval $attr; 319 warn PApp::Util::dumpval $attr;
320
321 $attr || \%Crossfire::Data::DEFAULT_ATTR;
319} 322}
320 323
321sub arch_edit_sections { 324sub arch_edit_sections {
322# if (edit_type == IGUIConstants.TILE_EDIT_NONE) 325# if (edit_type == IGUIConstants.TILE_EDIT_NONE)
323# edit_type = 0; 326# edit_type = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines