DebrisData Struct Reference

#include <debris.h>

Inheritance diagram for DebrisData:

Inheritance graph
[legend]
List of all members.

Public Types

typedef GameBaseData Parent
 DDC_NUM_EMITTERS = 2
enum  DebrisDataConst { DDC_NUM_EMITTERS = 2 }

Public Member Functions

 DebrisData ()
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 (DebrisData)

Static Public Member Functions

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

Public Attributes

F32 velocity
F32 velocityVariance
F32 friction
F32 elasticity
F32 lifetime
F32 lifetimeVariance
U32 numBounces
U32 bounceVariance
F32 minSpinSpeed
F32 maxSpinSpeed
bool render2D
bool explodeOnMaxBounce
bool staticOnMaxBounce
bool snapOnMaxBounce
bool fade
bool useRadiusMass
F32 baseRadius
F32 gravModifier
F32 terminalVelocity
bool ignoreWater
const char * shapeName
Resource< TSShapeshape
StringTableEntry textureName
S32 explosionId
ExplosionDataexplosion
ParticleEmitterDataemitterList [DDC_NUM_EMITTERS]
S32 emitterIDList [DDC_NUM_EMITTERS]

Member Typedef Documentation

Reimplemented from GameBaseData.


Member Enumeration Documentation

Enumerator:
DDC_NUM_EMITTERS 


Constructor & Destructor Documentation

DebrisData::DebrisData (  ) 


Member Function Documentation

bool DebrisData::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from GameBaseData.

bool DebrisData::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 GameBaseData.

static void DebrisData::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

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

Reimplemented from GameBaseData.

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

Reimplemented from SimDataBlock.

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

Reimplemented from GameBaseData.

DebrisData::DECLARE_CONOBJECT ( DebrisData   ) 


Member Data Documentation

const char* DebrisData::shapeName

S32 DebrisData::emitterIDList[DDC_NUM_EMITTERS]