ExplosionData

Engine/source/T3D/fx/explosion.h

More...

Public Types

enum
ExplosionConsts {
  EC_NUM_DEBRIS_TYPES = 1
  EC_NUM_EMITTERS = 4
  EC_MAX_SUB_EXPLOSIONS = 5
  EC_NUM_TIME_KEYS = 4
}
Parent 

Public Functions

bool

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.

Public Static Functions

Detailed Description

Public Types

ExplosionConsts

Enumerator

EC_NUM_DEBRIS_TYPES = 1
EC_NUM_EMITTERS = 4
EC_MAX_SUB_EXPLOSIONS = 5
EC_NUM_TIME_KEYS = 4
typedef GameBaseData Parent 

Public Attributes

VectorF camShakeAmp 
F32 camShakeDuration 
F32 camShakeFalloff 
VectorF camShakeFreq 
F32 camShakeRadius 
S32 debrisIDList [EC_NUM_DEBRIS_TYPES]
DebrisData * debrisList [EC_NUM_DEBRIS_TYPES]
S32 debrisNum 
S32 debrisNumVariance 
F32 debrisPhiMax 
F32 debrisPhiMin 
F32 debrisThetaMax 
F32 debrisThetaMin 
F32 debrisVelocity 
F32 debrisVelocityVariance 
S32 delayMS 
S32 delayVariance 
StringTableEntry dtsFileName 
S32 emitterIDList [EC_NUM_EMITTERS]
ParticleEmitterData * emitterList [EC_NUM_EMITTERS]
S32 explosionAnimation 
S32 explosionIDList [EC_MAX_SUB_EXPLOSIONS]
ExplosionData * explosionList [EC_MAX_SUB_EXPLOSIONS]
Point3F explosionScale 
Resource< TSShape > explosionShape 
bool faceViewer 
S32 lifetimeMS 
S32 lifetimeVariance 
F32 lightEndBrightness 
LinearColorF lightEndColor 
F32 lightEndRadius 
F32 lightNormalOffset 
F32 lightStartBrightness 
LinearColorF lightStartColor 
F32 lightStartRadius 
F32 offset 
S32 particleDensity 
ParticleEmitterData * particleEmitter 
S32 particleEmitterId 
F32 particleRadius 
F32 playSpeed 
bool shakeCamera 
Point3F sizes [EC_NUM_TIME_KEYS]
SFXTrack * soundProfile 
F32 times [EC_NUM_TIME_KEYS]

Public Functions

ExplosionData()

ExplosionData(const ExplosionData & , bool )

~ExplosionData()

allowSubstitutions()

Reimplemented from: SimObject

cloneAndPerformSubstitutions(const SimObject * , S32 index)

DECLARE_CONOBJECT(ExplosionData )

onAdd()

Reimplemented from: SimDataBlock

packData(BitStream * stream)

Reimplemented from: SimDataBlock

preload(bool server, String & errorStr)

Reimplemented from: SimDataBlock

unpackData(BitStream * stream)

Reimplemented from: SimDataBlock

Public Static Functions

initPersistFields()