For example, each object will terminate with a line consisting only of several dashes, followed by a blank line. Returns a textual representation of the Pak object, designed to be able to be fed to the makeobj program. The file parameter was formerly used, and is still stored b to_string my $text = $pak->to_string Parses the text in Simutrans's dat format as described at. This must be the same as the name= value in the *.dat file which describes the Simutrans object. The following attributes, all optional, may be useful to pass when creating the object: name nameĪn identifying name for the pak. This module uses objects contructed with Mojo::Base. METHODS new my $pak = Games::Simutrans::Pak->new Ĭreate a new Pak object. Pak definitions for both the Standard and Extended (formerly "Experimental") versions for Simutrans are supported. In general, data which map directly to dat file values have a key (in the internal hash) that begins with an alphanumeric character leading underscores are used for internal values. Pak objects created with this module are relatively free-form in what information may be stored, with the to_string method generally making a best-effort to emit scalars and arrays in a format that should be recognized by the makeobj program. These objects have various attributes like Games::Simutrans::Image images (using the Imager module) and are also accompanied by various other meta-information like language translations. This module works in concert with Games::Simutrans::Pakset as objects that represent portions of a Pakset for the Simutrans game. My $p = Games::Simutrans::Pak->new DESCRIPTION Version 0.01 SYNOPSIS use Games::Simutrans::Pakt Games::Simutrans::Pak - Represents a single Simutrans object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |