NAME

Data::MPQ::Shunt - Perl module to work with MPQ shunt block

SYNOPSIS

use Data::MPQ;

my $mpq = Data::MPQ->new(filename => 'my_game.sc2replay');
$mpq->parse;

my $shunt = $mpq->shunt;
print $shunt->user_data_size;
print $shunt->archive_header_offset;

DESCRIPTION

This module parse and give you an access to MPQ shunt block, in other words: user data information block

METHODS

new

Constructor for the Data::MPQ::Shunt class. Requires two parameters:

file   - Filehandle of the MPQ archive
offset - Offset of the beginning of the shunt block

parse

Method to parse shunt block of the MPQ file

user_data_size

Accessor to the user_data_size field of the shunt block

archive_header_offset

Accessor to the archive_header_offset field of the shunt block

user_data

Acessor to raw user_data of the shunt block

AUTHOR

cono q@cono.org.ua

C corporation (c)