25 #ifndef ENGINES_NWN2_TRXFILE_H 26 #define ENGINES_NWN2_TRXFILE_H 36 class SeekableReadStream;
121 #endif // ENGINES_NWN2_TRXFILE_H uint32 type
Type of the packet (TRWH, TRRN, WATR, ASWM).
void loadPackets(Common::SeekableReadStream &trx, std::vector< Packet > &packets)
Load the packets.
A class holding an UTF-8 string.
Common::PtrList< Graphics::Aurora::GeometryObject > ObjectList
uint32 size
Size of the packet.
Loader for TRX, baked terrain files, found in Neverwinter Nights 2.
A list storing pointer to objects, with automatic deletion.
void loadTRWH(Common::SeekableReadStream &trx, Packet &packet)
Load TRWH (size information) packets.
void loadASWM(Common::SeekableReadStream &trx, Packet &packet)
Load ASWM (walk mesh) packets.
void loadTRRN(Common::SeekableReadStream &trx, Packet &packet)
Load TRRN (terrain tile) packets.
Low-level type definitions to handle fixed width types portably.
uint32 offset
Offset to the contents of the packet.
A packet within a TRX file.
void loadWATR(Common::SeekableReadStream &trx, Packet &packet)
Load WATR (water tile) packets.
TRXFile(const Common::UString &resRef)
void loadPacket(Common::SeekableReadStream &trx, Packet &packet)
Load one packets.
void load(Common::SeekableReadStream &trx)
void loadDirectory(Common::SeekableReadStream &trx, std::vector< Packet > &packets)
Load the packets directory.
Interface for a seekable & readable data stream.