TSShapeConstructor Class Reference

#include <tsShapeConstruct.h>

Inheritance diagram for TSShapeConstructor:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class allows an artist to export their animations for the model into the .dsq format.

This class in particular matches up the model with the .dsqs to create a nice animated model.


Public Member Functions

 TSShapeConstructor ()
bool onAdd ()
 Called when the object is added to the sim.
bool preload (bool server, String &errorStr)
 Called to prepare the datablock for use, after it has been unpacked.
void packData (BitStream *stream)
void unpackData (BitStream *stream)
 DECLARE_CONOBJECT (TSShapeConstructor)

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Private Types

typedef SimDataBlock Parent
 NumSequenceBits = 7
 MaxSequences = (1 << NumSequenceBits) - 1
enum  {
  NumSequenceBits = 7,
  MaxSequences = (1 << NumSequenceBits) - 1
}

Private Attributes

FileName mShape
FileName mSequence [MaxSequences]
Resource< TSShapehShape


Member Typedef Documentation

Reimplemented from SimDataBlock.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
NumSequenceBits 
MaxSequences 


Constructor & Destructor Documentation

TSShapeConstructor::TSShapeConstructor (  )  [inline]


Member Function Documentation

bool TSShapeConstructor::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from SimDataBlock.

bool TSShapeConstructor::preload ( bool  server,
String errorStr 
) [virtual]

Called to prepare the datablock for use, after it has been unpacked.

Parameters:
server Set if we're running on the server (and therefore don't need to load things like textures or sounds).
errorStr If an error occurs in loading, this is set to a short string describing the error.
Returns:
True if all went well; false if something failed.
See also:
preload() and File Downloading

Reimplemented from SimDataBlock.

void TSShapeConstructor::packData ( BitStream stream  )  [virtual]

Reimplemented from SimDataBlock.

void TSShapeConstructor::unpackData ( BitStream stream  )  [virtual]

Reimplemented from SimDataBlock.

TSShapeConstructor::DECLARE_CONOBJECT ( TSShapeConstructor   ) 

static void TSShapeConstructor::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from SimObject.


Member Data Documentation

FileName TSShapeConstructor::mSequence[MaxSequences] [private]