DecalData Class Reference

#include <decalManager.h>

Inheritance diagram for DecalData:

Inheritance graph
[legend]
List of all members.

Detailed Description

DataBlock implementation for decals.


Public Member Functions

 DecalData ()
 ~DecalData ()
void packData (BitStream *)
void unpackData (BitStream *)
bool preload (bool server, String &errorStr)
 Called to prepare the datablock for use, after it has been unpacked.
 DECLARE_CONOBJECT (DecalData)

Static Public Member Functions

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

Public Attributes

F32 sizeX
F32 sizeY
StringTableEntry textureName
bool selfIlluminated
U32 lifeSpan
GFXTexHandle textureHandle

Private Types

typedef GameBaseData Parent


Member Typedef Documentation

typedef GameBaseData DecalData::Parent [private]

Reimplemented from GameBaseData.


Constructor & Destructor Documentation

DecalData::DecalData (  ) 

DecalData::~DecalData (  ) 


Member Function Documentation

void DecalData::packData ( BitStream  )  [virtual]

Reimplemented from SimDataBlock.

void DecalData::unpackData ( BitStream  )  [virtual]

Reimplemented from GameBaseData.

bool DecalData::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.

DecalData::DECLARE_CONOBJECT ( DecalData   ) 

static void DecalData::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

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

Reimplemented from GameBaseData.


Member Data Documentation