torque Torque Game Engine Documentation
TGE Version 1.5.2

SimChunk Class Reference

#include <chunkFile.h>

Inheritance diagram for SimChunk:

Inheritance graph
[legend]

Public Member Functions

 DECLARE_CHUNK (SimChunk,('S','C','H','K'), 1)
virtual void readChunk (BitStream &s, const U32 length, const U32 version, const U32 crc, const U32 fourCC)
 Called to read the chunk's data.
virtual void writeChunk (BitStream &s)
 Write a chunk.
virtual const char * getFourCCString ()

Static Public Member Functions

static void initChunkMappings ()
static SimChunkcreateChunkFromFourCC (U32 fourCC)

Static Public Attributes

static Vector< FourCCToAcr * > smFourCCList

Private Types

typedef SimGroup Parent

Data Structures

struct  FourCCToAcr
 Called post console init to set up the 4cc->class mappings. More...

Member Typedef Documentation

typedef SimGroup SimChunk::Parent [private]

Reimplemented from SimGroup.

Reimplemented in UnknownChunk.


Member Function Documentation

SimChunk::DECLARE_CHUNK ( SimChunk  ,
('S','C','H','K')  ,
 
)

virtual void SimChunk::readChunk ( BitStream s,
const U32  length,
const U32  version,
const U32  crc,
const U32  fourCC 
) [virtual]

Called to read the chunk's data.

We are provided with all the information that we got from the file, just in case it's relevant.

Reimplemented in UnknownChunk.

virtual void SimChunk::writeChunk ( BitStream s  )  [virtual]

Write a chunk.

Length is defined by the size of the data we write out, version by the DECLARE_CHUNK macro, crc by the data we write, and FourCC by the macro. So all we have to do is write data!

Reimplemented in UnknownChunk.

virtual const char* SimChunk::getFourCCString (  )  [inline, virtual]

static void SimChunk::initChunkMappings (  )  [static]

static SimChunk* SimChunk::createChunkFromFourCC ( U32  fourCC  )  [static]


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen