Games::Simutrans::Livery -
version 0.01
use Games::Simutrans::Livery; my $livery = Games::Simutrans::Livery->new(name => 'Erie'); my $object = Games::Simutrans::Pak->new; $object->from_string(...); $livery->record_use($object); say 'Used from ' . $livery->intro_year . ' to '. $livery->retire_year;
Records the usage of this livery by a given Simutrans object (assumed to be a Games::Simutrans::Pak object or equivalent). Keeps track of the first introduction and last retirement dates of all objects using this livery.
Returns a list of all object names (in the pakset) which were recorded as using this livery with record_use.
Return the year or month of the first or last observed use (introduction or retirment) of the livery
Sets or returns the short name of the livery as used in Simutrans dat files.
These two values are the first and last observed uses of the livery, in the integer format year * 12 + month + 1.
year * 12 + month + 1
William Lindley <wlindley@wlindley.com>
Copyright 2021, William Lindley
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Games::Simutrans::Pakset, Games::Simutrans::Pak
To install Games::Simutrans::Pakset, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Simutrans::Pakset
CPAN shell
perl -MCPAN -e shell install Games::Simutrans::Pakset
For more information on module installation, please visit the detailed CPAN module installation guide.