The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Games::RolePlay::MapGen::Generator::XMLImport - Slurp up XML map data into MapGen memory form

SYNOPSIS

use Games::RolePlay::MapGen;

my $map = new Games::RolePlay::MapGen;

$map->set_generator( "XMLImport" );
$map->generate( xml_input_file => "map.xml" );

The MapGen base object also knows a shortcut to perform the above:

my $map = Games::RolePlay::MapGen->import_xml("map.xml"); 

SEE ALSO

Games::RolePlay::MapGen