mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
substitutions -- Implementation of special substitution statements on datablock fields.
This commit is contained in:
parent
9391fcad4e
commit
0b84fccdd2
12 changed files with 464 additions and 4 deletions
|
|
@ -20,6 +20,10 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
||||
// Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames
|
||||
// Copyright (C) 2015 Faust Logic, Inc.
|
||||
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
||||
#include "platform/platform.h"
|
||||
#include "T3D/projectile.h"
|
||||
|
||||
|
|
@ -274,6 +278,13 @@ void ProjectileData::initPersistFields()
|
|||
"A value of 1.0 will assume \"normal\" influence upon it.\n"
|
||||
"The magnitude of gravity is assumed to be 9.81 m/s/s\n\n"
|
||||
"@note ProjectileData::isBallistic must be true for this to have any affect.");
|
||||
// disallow some field substitutions
|
||||
onlyKeepClearSubstitutions("explosion");
|
||||
onlyKeepClearSubstitutions("particleEmitter");
|
||||
onlyKeepClearSubstitutions("particleWaterEmitter");
|
||||
onlyKeepClearSubstitutions("sound");
|
||||
onlyKeepClearSubstitutions("splash");
|
||||
onlyKeepClearSubstitutions("waterExplosion");
|
||||
|
||||
Parent::initPersistFields();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue