/usr/pkg/bin/pod2html: perllib/TrnWrite.pm: unterminated list at =head in paragraph 21. ignoring. /usr/pkg/bin/pod2html: perllib/TrnWrite.pm: unexpected =item directive in paragraph 26. ignoring. /usr/pkg/bin/pod2html: perllib/TrnWrite.pm: unexpected =back directive in paragraph 31. ignoring. TrnWrite - Perl Module to Write Trn datastructures

NAME

TrnWrite - Perl Module to Write Trn datastructures


ABSTRACT

This module allows writing nwn2 trn/trx files. It takes Trn object in and writes it to file or returns it as encoded string.


DESCRIPTION

The basic working is that you give hash of options to the TrnWrite::write, and get encoded data back or written to file.


TrnWrite::write

TrnWrite::write is used to write trn or trn file. Takes hash table of options in, and returns either the data as a string, or writes the data directoy to file.

USAGE

$data = $trn->write(%options); $data = write($trn, %options);

OPTIONS

Following options can be given to the TrnWrite::write.


=over 4
filename => filename
Filename to write data to. If this exits, then no data is returned. Otherwise returns the data as a string.

seek_pos => offset
Position to seek in file when writing to file.


SEE ALSO

trnpack(1), Trn(3), and TrnRead(3).


AUTHOR

Tero Kivinen <kivinen@iki.fi>.


HISTORY

Created to do walkmesh height setter.