mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
add a docsURL; macro to link a given set of script config vars to git or similar storage urls via clicking on the inspector
This commit is contained in:
parent
a0bbe0ec18
commit
f5a34308f9
382 changed files with 588 additions and 130 deletions
|
|
@ -24,6 +24,7 @@ Scene::~Scene()
|
||||||
|
|
||||||
void Scene::initPersistFields()
|
void Scene::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("Internal");
|
addGroup("Internal");
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ AccumulationVolume::~AccumulationVolume()
|
||||||
|
|
||||||
void AccumulationVolume::initPersistFields()
|
void AccumulationVolume::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addProtectedField("textureAsset", TypeImageAssetId, Offset(mTextureAssetId, AccumulationVolume),
|
addProtectedField("textureAsset", TypeImageAssetId, Offset(mTextureAssetId, AccumulationVolume),
|
||||||
&_setTexture, &defaultProtectedGetFn, "Accumulation texture.");
|
&_setTexture, &defaultProtectedGetFn, "Accumulation texture.");
|
||||||
addProtectedField( "texture", TypeStringFilename, Offset( mTextureName, AccumulationVolume ),
|
addProtectedField( "texture", TypeStringFilename, Offset( mTextureName, AccumulationVolume ),
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,7 @@ AIPlayer::~AIPlayer()
|
||||||
|
|
||||||
void AIPlayer::initPersistFields()
|
void AIPlayer::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "AI" );
|
addGroup( "AI" );
|
||||||
|
|
||||||
addField( "mMoveTolerance", TypeF32, Offset( mMoveTolerance, AIPlayer ),
|
addField( "mMoveTolerance", TypeF32, Offset( mMoveTolerance, AIPlayer ),
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ CppAsset::~CppAsset()
|
||||||
|
|
||||||
void CppAsset::initPersistFields()
|
void CppAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ CubemapAsset::~CubemapAsset()
|
||||||
|
|
||||||
void CubemapAsset::initPersistFields()
|
void CubemapAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ ExampleAsset::~ExampleAsset()
|
||||||
|
|
||||||
void ExampleAsset::initPersistFields()
|
void ExampleAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ GUIAsset::~GUIAsset()
|
||||||
|
|
||||||
void GUIAsset::initPersistFields()
|
void GUIAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ GameObjectAsset::~GameObjectAsset()
|
||||||
|
|
||||||
void GameObjectAsset::initPersistFields()
|
void GameObjectAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,7 @@ void ImageAsset::consoleInit()
|
||||||
|
|
||||||
void ImageAsset::initPersistFields()
|
void ImageAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ LevelAsset::~LevelAsset()
|
||||||
|
|
||||||
void LevelAsset::initPersistFields()
|
void LevelAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,7 @@ void MaterialAsset::consoleInit()
|
||||||
|
|
||||||
void MaterialAsset::initPersistFields()
|
void MaterialAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ ParticleAsset::~ParticleAsset()
|
||||||
|
|
||||||
void ParticleAsset::initPersistFields()
|
void ParticleAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ PostEffectAsset::~PostEffectAsset()
|
||||||
|
|
||||||
void PostEffectAsset::initPersistFields()
|
void PostEffectAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@ ScriptAsset::~ScriptAsset()
|
||||||
|
|
||||||
void ScriptAsset::initPersistFields()
|
void ScriptAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ ShapeAnimationAsset::~ShapeAnimationAsset()
|
||||||
|
|
||||||
void ShapeAnimationAsset::initPersistFields()
|
void ShapeAnimationAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,6 +165,7 @@ void ShapeAsset::consoleInit()
|
||||||
|
|
||||||
void ShapeAsset::initPersistFields()
|
void ShapeAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,7 @@ SoundAsset::~SoundAsset()
|
||||||
|
|
||||||
void SoundAsset::initPersistFields()
|
void SoundAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ TerrainAsset::~TerrainAsset()
|
||||||
|
|
||||||
void TerrainAsset::initPersistFields()
|
void TerrainAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,7 @@ void TerrainMaterialAsset::consoleInit()
|
||||||
|
|
||||||
void TerrainMaterialAsset::initPersistFields()
|
void TerrainMaterialAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ void AssetImportConfig::onRemove()
|
||||||
/// Engine.
|
/// Engine.
|
||||||
void AssetImportConfig::initPersistFields()
|
void AssetImportConfig::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("General");
|
addGroup("General");
|
||||||
|
|
@ -466,6 +467,7 @@ void AssetImportObject::onRemove()
|
||||||
|
|
||||||
void AssetImportObject::initPersistFields()
|
void AssetImportObject::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField("assetType", TypeRealString, Offset(assetType, AssetImportObject), "What type is the importing asset");
|
addField("assetType", TypeRealString, Offset(assetType, AssetImportObject), "What type is the importing asset");
|
||||||
|
|
@ -539,6 +541,7 @@ void AssetImporter::onRemove()
|
||||||
|
|
||||||
void AssetImporter::initPersistFields()
|
void AssetImporter::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField("targetModuleId", TypeRealString, Offset(targetModuleId, AssetImporter), "The Id of the module the assets are to be imported into");
|
addField("targetModuleId", TypeRealString, Offset(targetModuleId, AssetImporter), "The Id of the module the assets are to be imported into");
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ StateMachineAsset::~StateMachineAsset()
|
||||||
|
|
||||||
void StateMachineAsset::initPersistFields()
|
void StateMachineAsset::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ ConsoleDocClass( CameraData,
|
||||||
|
|
||||||
void CameraData::initPersistFields()
|
void CameraData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1307,6 +1308,7 @@ void Camera::unpackUpdate(NetConnection *con, BitStream *bstream)
|
||||||
|
|
||||||
void Camera::initPersistFields()
|
void Camera::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Camera" );
|
addGroup( "Camera" );
|
||||||
addProtectedField( "controlMode", TYPEID< CameraMotionMode >(), Offset( mMode, Camera ),
|
addProtectedField( "controlMode", TYPEID< CameraMotionMode >(), Offset( mMode, Camera ),
|
||||||
&_setModeField, &defaultProtectedGetFn,
|
&_setModeField, &defaultProtectedGetFn,
|
||||||
|
|
|
||||||
|
|
@ -309,6 +309,7 @@ ConvexShape::~ConvexShape()
|
||||||
|
|
||||||
void ConvexShape::initPersistFields()
|
void ConvexShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Rendering" );
|
addGroup( "Rendering" );
|
||||||
|
|
||||||
INITPERSISTFIELD_MATERIALASSET(Material, ConvexShape, "Default material used to render the ConvexShape surface.");
|
INITPERSISTFIELD_MATERIALASSET(Material, ConvexShape, "Default material used to render the ConvexShape surface.");
|
||||||
|
|
|
||||||
|
|
@ -295,6 +295,7 @@ bool DebrisData::preload(bool server, String &errorStr)
|
||||||
|
|
||||||
void DebrisData::initPersistFields()
|
void DebrisData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shapes");
|
addGroup("Shapes");
|
||||||
addField("texture", TypeString, Offset(textureName, DebrisData),
|
addField("texture", TypeString, Offset(textureName, DebrisData),
|
||||||
"@brief Texture imagemap to use for this debris object.\n\nNot used any more.\n", AbstractClassRep::FIELD_HideInInspectors);
|
"@brief Texture imagemap to use for this debris object.\n\nNot used any more.\n", AbstractClassRep::FIELD_HideInInspectors);
|
||||||
|
|
@ -567,6 +568,7 @@ Debris::~Debris()
|
||||||
|
|
||||||
void Debris::initPersistFields()
|
void Debris::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Debris" );
|
addGroup( "Debris" );
|
||||||
|
|
||||||
addField( "lifetime", TypeF32, Offset(mLifetime, Debris),
|
addField( "lifetime", TypeF32, Offset(mLifetime, Debris),
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ void DecalData::onRemove()
|
||||||
|
|
||||||
void DecalData::initPersistFields()
|
void DecalData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Decal" );
|
addGroup( "Decal" );
|
||||||
|
|
||||||
addField( "size", TypeF32, Offset( size, DecalData ),
|
addField( "size", TypeF32, Offset( size, DecalData ),
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ RenderMeshExample::~RenderMeshExample()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void RenderMeshExample::initPersistFields()
|
void RenderMeshExample::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Rendering" );
|
addGroup( "Rendering" );
|
||||||
INITPERSISTFIELD_MATERIALASSET(Material, RenderMeshExample, "The material used to render the mesh.");
|
INITPERSISTFIELD_MATERIALASSET(Material, RenderMeshExample, "The material used to render the mesh.");
|
||||||
endGroup( "Rendering" );
|
endGroup( "Rendering" );
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ RenderObjectExample::~RenderObjectExample()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void RenderObjectExample::initPersistFields()
|
void RenderObjectExample::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// SceneObject already handles exposing the transform
|
// SceneObject already handles exposing the transform
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
@ -277,4 +278,4 @@ void RenderObjectExample::render( ObjectRenderInst *ri, SceneRenderState *state,
|
||||||
|
|
||||||
// Draw our triangles
|
// Draw our triangles
|
||||||
GFX->drawPrimitive( GFXTriangleList, 0, 12 );
|
GFX->drawPrimitive( GFXTriangleList, 0, 12 );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ RenderShapeExample::~RenderShapeExample()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void RenderShapeExample::initPersistFields()
|
void RenderShapeExample::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
addGroup( "Shapes" );
|
addGroup( "Shapes" );
|
||||||
INITPERSISTFIELD_SHAPEASSET(Shape, RenderShapeExample, "The path to the shape file.")
|
INITPERSISTFIELD_SHAPEASSET(Shape, RenderShapeExample, "The path to the shape file.")
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ GuiClockHud::GuiClockHud()
|
||||||
|
|
||||||
void GuiClockHud::initPersistFields()
|
void GuiClockHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Misc");
|
addGroup("Misc");
|
||||||
addField( "showFill", TypeBool, Offset( mShowFill, GuiClockHud ), "If true, draws a background color behind the control.");
|
addField( "showFill", TypeBool, Offset( mShowFill, GuiClockHud ), "If true, draws a background color behind the control.");
|
||||||
addField( "showFrame", TypeBool, Offset( mShowFrame, GuiClockHud ), "If true, draws a frame around the control." );
|
addField( "showFrame", TypeBool, Offset( mShowFrame, GuiClockHud ), "If true, draws a frame around the control." );
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ GuiCrossHairHud::GuiCrossHairHud()
|
||||||
|
|
||||||
void GuiCrossHairHud::initPersistFields()
|
void GuiCrossHairHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Damage");
|
addGroup("Damage");
|
||||||
addField( "damageFillColor", TypeColorF, Offset( mDamageFillColor, GuiCrossHairHud ), "As the health bar depletes, this color will represent the health loss amount." );
|
addField( "damageFillColor", TypeColorF, Offset( mDamageFillColor, GuiCrossHairHud ), "As the health bar depletes, this color will represent the health loss amount." );
|
||||||
addField( "damageFrameColor", TypeColorF, Offset( mDamageFrameColor, GuiCrossHairHud ), "Color for the health bar's frame." );
|
addField( "damageFrameColor", TypeColorF, Offset( mDamageFrameColor, GuiCrossHairHud ), "Color for the health bar's frame." );
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ GuiHealthBarHud::GuiHealthBarHud()
|
||||||
|
|
||||||
void GuiHealthBarHud::initPersistFields()
|
void GuiHealthBarHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Colors");
|
addGroup("Colors");
|
||||||
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiHealthBarHud ), "Standard color for the background of the control." );
|
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiHealthBarHud ), "Standard color for the background of the control." );
|
||||||
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiHealthBarHud ), "Color for the control's frame." );
|
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiHealthBarHud ), "Color for the control's frame." );
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,8 @@ GuiHealthTextHud::GuiHealthTextHud()
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiHealthTextHud::initPersistFields()
|
void GuiHealthTextHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Colors");
|
addGroup("Colors");
|
||||||
addField("fillColor", TypeColorF, Offset(mFillColor, GuiHealthTextHud), "Color for the background of the control.");
|
addField("fillColor", TypeColorF, Offset(mFillColor, GuiHealthTextHud), "Color for the background of the control.");
|
||||||
addField("frameColor", TypeColorF, Offset(mFrameColor, GuiHealthTextHud), "Color for the control's frame.");
|
addField("frameColor", TypeColorF, Offset(mFrameColor, GuiHealthTextHud), "Color for the control's frame.");
|
||||||
|
|
@ -199,4 +200,4 @@ void GuiHealthTextHud::onRender(Point2I offset, const RectI &updateRect)
|
||||||
// If enabled draw the border last
|
// If enabled draw the border last
|
||||||
if (mShowFrame)
|
if (mShowFrame)
|
||||||
drawUtil->drawRect(updateRect, mFrameColor.toColorI());
|
drawUtil->drawRect(updateRect, mFrameColor.toColorI());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,7 @@ GuiShapeNameHud::GuiShapeNameHud()
|
||||||
|
|
||||||
void GuiShapeNameHud::initPersistFields()
|
void GuiShapeNameHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Colors");
|
addGroup("Colors");
|
||||||
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiShapeNameHud ), "Standard color for the background of the control." );
|
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiShapeNameHud ), "Standard color for the background of the control." );
|
||||||
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiShapeNameHud ), "Color for the control's frame." );
|
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiShapeNameHud ), "Color for the control's frame." );
|
||||||
|
|
|
||||||
|
|
@ -387,6 +387,7 @@ ExplosionData* ExplosionData::cloneAndPerformSubstitutions(const SimObject* owne
|
||||||
|
|
||||||
void ExplosionData::initPersistFields()
|
void ExplosionData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shapes");
|
addGroup("Shapes");
|
||||||
INITPERSISTFIELD_SHAPEASSET(ExplosionShape, ExplosionData, "@brief Optional shape asset to place at the center of the explosion.\n\n"
|
INITPERSISTFIELD_SHAPEASSET(ExplosionShape, ExplosionData, "@brief Optional shape asset to place at the center of the explosion.\n\n"
|
||||||
"The <i>ambient</i> animation of this model will be played automatically at the start of the explosion.");
|
"The <i>ambient</i> animation of this model will be played automatically at the start of the explosion.");
|
||||||
|
|
@ -980,6 +981,7 @@ void Explosion::setInitialState(const Point3F& point, const Point3F& normal, con
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void Explosion::initPersistFields()
|
void Explosion::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
addField("initialNormal", TypePoint3F, Offset(mInitialNormal, Explosion), "Initial starting Normal.");
|
addField("initialNormal", TypePoint3F, Offset(mInitialNormal, Explosion), "Initial starting Normal.");
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -345,6 +345,7 @@ fxFoliageReplicator::~fxFoliageReplicator()
|
||||||
|
|
||||||
void fxFoliageReplicator::initPersistFields()
|
void fxFoliageReplicator::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Add out own persistent fields.
|
// Add out own persistent fields.
|
||||||
addGroup( "Debugging" ); // MM: Added Group Header.
|
addGroup( "Debugging" ); // MM: Added Group Header.
|
||||||
addField( "UseDebugInfo", TypeBool, Offset( mFieldData.mUseDebugInfo, fxFoliageReplicator ), "Culling bins are drawn when set to true." );
|
addField( "UseDebugInfo", TypeBool, Offset( mFieldData.mUseDebugInfo, fxFoliageReplicator ), "Culling bins are drawn when set to true." );
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ fxShapeReplicator::~fxShapeReplicator()
|
||||||
|
|
||||||
void fxShapeReplicator::initPersistFields()
|
void fxShapeReplicator::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Add out own persistent fields.
|
// Add out own persistent fields.
|
||||||
addGroup( "Debugging" ); // MM: Added Group Header.
|
addGroup( "Debugging" ); // MM: Added Group Header.
|
||||||
addField( "HideReplications", TypeBool, Offset( mFieldData.mHideReplications, fxShapeReplicator ), "Replicated shapes are hidden when set to true." );
|
addField( "HideReplications", TypeBool, Offset( mFieldData.mHideReplications, fxShapeReplicator ), "Replicated shapes are hidden when set to true." );
|
||||||
|
|
|
||||||
|
|
@ -540,6 +540,7 @@ IMPLEMENT_CO_NETOBJECT_V1(GroundCover);
|
||||||
|
|
||||||
void GroundCover::initPersistFields()
|
void GroundCover::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "GroundCover General" );
|
addGroup( "GroundCover General" );
|
||||||
|
|
||||||
INITPERSISTFIELD_MATERIALASSET(Material, GroundCover, "Material used by all GroundCover segments.");
|
INITPERSISTFIELD_MATERIALASSET(Material, GroundCover, "Material used by all GroundCover segments.");
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,7 @@ LightningData::~LightningData()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void LightningData::initPersistFields()
|
void LightningData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
|
|
||||||
INITPERSISTFIELD_SOUNDASSET(StrikeSound, LightningData, "Sound to play when lightning STRIKES!");
|
INITPERSISTFIELD_SOUNDASSET(StrikeSound, LightningData, "Sound to play when lightning STRIKES!");
|
||||||
|
|
||||||
|
|
@ -411,6 +412,7 @@ Lightning::~Lightning()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void Lightning::initPersistFields()
|
void Lightning::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Strikes" );
|
addGroup( "Strikes" );
|
||||||
addField( "strikesPerMinute", TypeS32, Offset(strikesPerMinute, Lightning),
|
addField( "strikesPerMinute", TypeS32, Offset(strikesPerMinute, Lightning),
|
||||||
"@brief Number of lightning strikes to perform per minute.\n\n"
|
"@brief Number of lightning strikes to perform per minute.\n\n"
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ ParticleEmitterNodeData::~ParticleEmitterNodeData()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void ParticleEmitterNodeData::initPersistFields()
|
void ParticleEmitterNodeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField( "timeMultiple", TYPEID< F32 >(), Offset(timeMultiple, ParticleEmitterNodeData),
|
addField( "timeMultiple", TYPEID< F32 >(), Offset(timeMultiple, ParticleEmitterNodeData),
|
||||||
"@brief Time multiplier for particle emitter nodes.\n\n"
|
"@brief Time multiplier for particle emitter nodes.\n\n"
|
||||||
"Increasing timeMultiple is like running the emitter at a faster rate - single-shot "
|
"Increasing timeMultiple is like running the emitter at a faster rate - single-shot "
|
||||||
|
|
@ -181,6 +182,7 @@ ParticleEmitterNode::~ParticleEmitterNode()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void ParticleEmitterNode::initPersistFields()
|
void ParticleEmitterNode::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField( "active", TYPEID< bool >(), Offset(mActive,ParticleEmitterNode),
|
addField( "active", TYPEID< bool >(), Offset(mActive,ParticleEmitterNode),
|
||||||
"Controls whether particles are emitted from this node." );
|
"Controls whether particles are emitted from this node." );
|
||||||
addField( "emitter", TYPEID< ParticleEmitterData >(), Offset(mEmitterDatablock, ParticleEmitterNode),
|
addField( "emitter", TYPEID< ParticleEmitterData >(), Offset(mEmitterDatablock, ParticleEmitterNode),
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,7 @@ PrecipitationData::PrecipitationData()
|
||||||
|
|
||||||
void PrecipitationData::initPersistFields()
|
void PrecipitationData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
INITPERSISTFIELD_SOUNDASSET(Sound, PrecipitationData, "Looping SFXProfile effect to play while Precipitation is active.");
|
INITPERSISTFIELD_SOUNDASSET(Sound, PrecipitationData, "Looping SFXProfile effect to play while Precipitation is active.");
|
||||||
|
|
||||||
addProtectedField( "dropTexture", TypeFilename, Offset(mDropName, PrecipitationData), &_setDropData, &defaultProtectedGetFn,
|
addProtectedField( "dropTexture", TypeFilename, Offset(mDropName, PrecipitationData), &_setDropData, &defaultProtectedGetFn,
|
||||||
|
|
@ -367,6 +368,7 @@ IRangeValidator ValidNumDropsRange(1, 100000);
|
||||||
|
|
||||||
void Precipitation::initPersistFields()
|
void Precipitation::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Precipitation");
|
addGroup("Precipitation");
|
||||||
|
|
||||||
addFieldV( "numDrops", TypeS32, Offset(mNumDrops, Precipitation), &ValidNumDropsRange,
|
addFieldV( "numDrops", TypeS32, Offset(mNumDrops, Precipitation), &ValidNumDropsRange,
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ RibbonData::RibbonData()
|
||||||
|
|
||||||
void RibbonData::initPersistFields()
|
void RibbonData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("Ribbon");
|
addGroup("Ribbon");
|
||||||
|
|
@ -205,6 +206,7 @@ Ribbon::~Ribbon()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void Ribbon::initPersistFields()
|
void Ribbon::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ RibbonNodeData::~RibbonNodeData()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void RibbonNodeData::initPersistFields()
|
void RibbonNodeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,6 +91,7 @@ RibbonNode::~RibbonNode()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void RibbonNode::initPersistFields()
|
void RibbonNode::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField( "active", TYPEID< bool >(), Offset(mActive,RibbonNode),
|
addField( "active", TYPEID< bool >(), Offset(mActive,RibbonNode),
|
||||||
"Controls whether ribbon is emitted from this node." );
|
"Controls whether ribbon is emitted from this node." );
|
||||||
addField( "ribbon", TYPEID< RibbonData >(), Offset(mRibbonDatablock, RibbonNode),
|
addField( "ribbon", TYPEID< RibbonData >(), Offset(mRibbonDatablock, RibbonNode),
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,9 @@ SplashData::SplashData()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
// Init fields
|
// Init fields
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void SplashData::initPersistFields()
|
void SplashData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
INITPERSISTFIELD_SOUNDASSET(Sound, SplashData, "Sound to play when splash, splashes.");
|
INITPERSISTFIELD_SOUNDASSET(Sound, SplashData, "Sound to play when splash, splashes.");
|
||||||
|
|
||||||
addField("scale", TypePoint3F, Offset(scale, SplashData), "The scale of this splashing effect, defined as the F32 points X, Y, Z.\n");
|
addField("scale", TypePoint3F, Offset(scale, SplashData), "The scale of this splashing effect, defined as the F32 points X, Y, Z.\n");
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ bool GameBaseData::onAdd()
|
||||||
|
|
||||||
void GameBaseData::initPersistFields()
|
void GameBaseData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Scripting");
|
addGroup("Scripting");
|
||||||
|
|
||||||
addField( "category", TypeCaseString, Offset(mCategory, GameBaseData ),
|
addField( "category", TypeCaseString, Offset(mCategory, GameBaseData ),
|
||||||
|
|
@ -721,6 +722,7 @@ DefineEngineMethod( GameBase, setDataBlock, bool, ( GameBaseData* data ),,
|
||||||
|
|
||||||
void GameBase::initPersistFields()
|
void GameBase::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Game" );
|
addGroup( "Game" );
|
||||||
|
|
||||||
addProtectedField( "dataBlock", TYPEID< GameBaseData >(), Offset(mDataBlock, GameBase),
|
addProtectedField( "dataBlock", TYPEID< GameBaseData >(), Offset(mDataBlock, GameBase),
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ GroundPlane::~GroundPlane()
|
||||||
|
|
||||||
void GroundPlane::initPersistFields()
|
void GroundPlane::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Plane" );
|
addGroup( "Plane" );
|
||||||
|
|
||||||
addField( "squareSize", TypeF32, Offset( mSquareSize, GroundPlane ), "Square size in meters to which %GroundPlane subdivides its geometry." );
|
addField( "squareSize", TypeF32, Offset( mSquareSize, GroundPlane ), "Square size in meters to which %GroundPlane subdivides its geometry." );
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,7 @@ GuiObjectView::~GuiObjectView()
|
||||||
|
|
||||||
void GuiObjectView::initPersistFields()
|
void GuiObjectView::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Model" );
|
addGroup( "Model" );
|
||||||
|
|
||||||
addField( "shapeFile", TypeStringFilename, Offset( mModelName, GuiObjectView ),
|
addField( "shapeFile", TypeStringFilename, Offset( mModelName, GuiObjectView ),
|
||||||
|
|
|
||||||
|
|
@ -1301,6 +1301,7 @@ bool Item::_setRotate(void *object, const char *index, const char *data)
|
||||||
|
|
||||||
void Item::initPersistFields()
|
void Item::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Misc");
|
addGroup("Misc");
|
||||||
addProtectedField("static", TypeBool, Offset(mStatic, Item), &_setStatic, &defaultProtectedGetFn, "If true, the object is not moving in the world.\n");
|
addProtectedField("static", TypeBool, Offset(mStatic, Item), &_setStatic, &defaultProtectedGetFn, "If true, the object is not moving in the world.\n");
|
||||||
addProtectedField("rotate", TypeBool, Offset(mRotate, Item), &_setRotate, &defaultProtectedGetFn, "If true, the object will automatically rotate around its Z axis.\n");
|
addProtectedField("rotate", TypeBool, Offset(mRotate, Item), &_setRotate, &defaultProtectedGetFn, "If true, the object will automatically rotate around its Z axis.\n");
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ FRangeValidator ValiDampnessRange(0.0f, 1.0f);
|
||||||
|
|
||||||
void LevelInfo::initPersistFields()
|
void LevelInfo::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Visibility" );
|
addGroup( "Visibility" );
|
||||||
|
|
||||||
addField( "nearClip", TypeF32, Offset( mNearClip, LevelInfo ), "Closest distance from the camera's position to render the world." );
|
addField( "nearClip", TypeF32, Offset( mNearClip, LevelInfo ), "Closest distance from the camera's position to render the world." );
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ ConsoleDocClass( LightAnimData,
|
||||||
|
|
||||||
void LightAnimData::initPersistFields()
|
void LightAnimData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Offset",
|
addGroup( "Offset",
|
||||||
"The XYZ translation animation state relative to the light position." );
|
"The XYZ translation animation state relative to the light position." );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ LightBase::~LightBase()
|
||||||
|
|
||||||
void LightBase::initPersistFields()
|
void LightBase::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// We only add the basic lighting options that all lighting
|
// We only add the basic lighting options that all lighting
|
||||||
// systems would use... the specific lighting system options
|
// systems would use... the specific lighting system options
|
||||||
// are injected at runtime by the lighting system itself.
|
// are injected at runtime by the lighting system itself.
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ ConsoleDocClass( LightDescription,
|
||||||
|
|
||||||
void LightDescription::initPersistFields()
|
void LightDescription::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Light" );
|
addGroup( "Light" );
|
||||||
|
|
||||||
addField( "color", TypeColorF, Offset( color, LightDescription ), "Changes the base color hue of the light." );
|
addField( "color", TypeColorF, Offset( color, LightDescription ), "Changes the base color hue of the light." );
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ LightFlareData::~LightFlareData()
|
||||||
|
|
||||||
void LightFlareData::initPersistFields()
|
void LightFlareData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "LightFlareData" );
|
addGroup( "LightFlareData" );
|
||||||
|
|
||||||
addField( "overallScale", TypeF32, Offset( mScale, LightFlareData ),
|
addField( "overallScale", TypeF32, Offset( mScale, LightFlareData ),
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ BoxEnvironmentProbe::~BoxEnvironmentProbe()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void BoxEnvironmentProbe::initPersistFields()
|
void BoxEnvironmentProbe::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// SceneObject already handles exposing the transform
|
// SceneObject already handles exposing the transform
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@ ReflectionProbe::~ReflectionProbe()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void ReflectionProbe::initPersistFields()
|
void ReflectionProbe::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField("canDamp", TypeBool, Offset(mCanDamp, ReflectionProbe),"wetness allowed");
|
addField("canDamp", TypeBool, Offset(mCanDamp, ReflectionProbe),"wetness allowed");
|
||||||
addGroup("Rendering");
|
addGroup("Rendering");
|
||||||
addProtectedField("enabled", TypeBool, Offset(mEnabled, ReflectionProbe),
|
addProtectedField("enabled", TypeBool, Offset(mEnabled, ReflectionProbe),
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ Skylight::~Skylight()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void Skylight::initPersistFields()
|
void Skylight::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// SceneObject already handles exposing the transform
|
// SceneObject already handles exposing the transform
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ SphereEnvironmentProbe::~SphereEnvironmentProbe()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void SphereEnvironmentProbe::initPersistFields()
|
void SphereEnvironmentProbe::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// SceneObject already handles exposing the transform
|
// SceneObject already handles exposing the transform
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ void MissionArea::inspectPostApply()
|
||||||
|
|
||||||
void MissionArea::initPersistFields()
|
void MissionArea::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Dimensions");
|
addGroup("Dimensions");
|
||||||
addField("area", TypeRectI, Offset(mArea, MissionArea), "Four corners (X1, X2, Y1, Y2) that makes up the level's boundaries");
|
addField("area", TypeRectI, Offset(mArea, MissionArea), "Four corners (X1, X2, Y1, Y2) that makes up the level's boundaries");
|
||||||
addField("flightCeiling", TypeF32, Offset(mFlightCeiling, MissionArea), "Represents the top of the mission area, used by FlyingVehicle. ");
|
addField("flightCeiling", TypeF32, Offset(mFlightCeiling, MissionArea), "Represents the top of the mission area, used by FlyingVehicle. ");
|
||||||
|
|
@ -215,4 +216,4 @@ DefineEngineMethod( MissionArea, postApply, void, (),,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
object->inspectPostApply();
|
object->inspectPostApply();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,9 @@ void MissionMarker::unpackUpdate(NetConnection * con, BitStream * stream)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MissionMarker::initPersistFields() {
|
void MissionMarker::initPersistFields()
|
||||||
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -281,6 +283,7 @@ void WayPoint::unpackUpdate(NetConnection * con, BitStream * stream)
|
||||||
|
|
||||||
void WayPoint::initPersistFields()
|
void WayPoint::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Misc");
|
addGroup("Misc");
|
||||||
addField("markerName", TypeCaseString, Offset(mName, WayPoint), "Unique name representing this waypoint");
|
addField("markerName", TypeCaseString, Offset(mName, WayPoint), "Unique name representing this waypoint");
|
||||||
endGroup("Misc");
|
endGroup("Misc");
|
||||||
|
|
@ -468,6 +471,7 @@ void SpawnSphere::advanceTime( F32 timeDelta )
|
||||||
|
|
||||||
void SpawnSphere::initPersistFields()
|
void SpawnSphere::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Spawn" );
|
addGroup( "Spawn" );
|
||||||
addField( "spawnClass", TypeRealString, Offset(mSpawnClass, SpawnSphere),
|
addField( "spawnClass", TypeRealString, Offset(mSpawnClass, SpawnSphere),
|
||||||
"Object class to create (eg. Player, AIPlayer, Debris etc)" );
|
"Object class to create (eg. Player, AIPlayer, Debris etc)" );
|
||||||
|
|
@ -611,6 +615,7 @@ void CameraBookmark::unpackUpdate(NetConnection * con, BitStream * stream)
|
||||||
|
|
||||||
void CameraBookmark::initPersistFields()
|
void CameraBookmark::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
//addGroup("Misc");
|
//addGroup("Misc");
|
||||||
//addField("name", TypeCaseString, Offset(mName, CameraBookmark));
|
//addField("name", TypeCaseString, Offset(mName, CameraBookmark));
|
||||||
//endGroup("Misc");
|
//endGroup("Misc");
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ NotesObject::~NotesObject()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void NotesObject::initPersistFields()
|
void NotesObject::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField("Note", TypeCommand, Offset(mNote, NotesObject), "");
|
addField("Note", TypeCommand, Offset(mNote, NotesObject), "");
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ void PathCameraData::consoleInit()
|
||||||
|
|
||||||
void PathCameraData::initPersistFields()
|
void PathCameraData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -201,6 +202,7 @@ void PathCamera::onEditorDisable()
|
||||||
|
|
||||||
void PathCamera::initPersistFields()
|
void PathCamera::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -637,4 +639,4 @@ DefineEngineMethod(PathCamera, popFront, void, (),, "Removes the knot at the fro
|
||||||
"@endtsexample\n")
|
"@endtsexample\n")
|
||||||
{
|
{
|
||||||
object->popFront();
|
object->popFront();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ bool PathShapeData::preload(bool server, String &errorStr)
|
||||||
|
|
||||||
void PathShapeData::initPersistFields()
|
void PathShapeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -146,6 +147,7 @@ PathShapeData::PathShapeData()
|
||||||
|
|
||||||
void PathShape::initPersistFields()
|
void PathShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
|
|
||||||
addField( "Path", TYPEID< SimObjectRef<SimPath::Path> >(), Offset( mSimPath, PathShape ),
|
addField( "Path", TYPEID< SimObjectRef<SimPath::Path> >(), Offset( mSimPath, PathShape ),
|
||||||
"@brief Name of a Path to follow." );
|
"@brief Name of a Path to follow." );
|
||||||
|
|
@ -587,4 +589,4 @@ DefineEngineMethod(PathShape, popFront, void, (), , "Removes the knot at the fro
|
||||||
DefineEngineMethod(PathShape, getState, S32, (), , "PathShape.getState()")
|
DefineEngineMethod(PathShape, getState, S32, (), , "PathShape.getState()")
|
||||||
{
|
{
|
||||||
return object->getState();
|
return object->getState();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,7 @@ void PhysicalZone::consoleInit()
|
||||||
|
|
||||||
void PhysicalZone::initPersistFields()
|
void PhysicalZone::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Misc");
|
addGroup("Misc");
|
||||||
addField("velocityMod", TypeF32, Offset(mVelocityMod, PhysicalZone), "Multiply velocity of objects entering zone by this value every tick.");
|
addField("velocityMod", TypeF32, Offset(mVelocityMod, PhysicalZone), "Multiply velocity of objects entering zone by this value every tick.");
|
||||||
addField("gravityMod", TypeF32, Offset(mGravityMod, PhysicalZone), "Gravity in PhysicalZone. Multiplies against standard gravity.");
|
addField("gravityMod", TypeF32, Offset(mGravityMod, PhysicalZone), "Gravity in PhysicalZone. Multiplies against standard gravity.");
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ bool PhysicsDebrisData::preload( bool server, String &errorStr )
|
||||||
|
|
||||||
void PhysicsDebrisData::initPersistFields()
|
void PhysicsDebrisData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Shapes" );
|
addGroup( "Shapes" );
|
||||||
|
|
||||||
addProtectedField( "shapeFile", TypeShapeFilename, Offset( mShapeName, PhysicsDebrisData ), &_setShapeData, &defaultProtectedGetFn,
|
addProtectedField( "shapeFile", TypeShapeFilename, Offset( mShapeName, PhysicsDebrisData ), &_setShapeData, &defaultProtectedGetFn,
|
||||||
|
|
@ -332,6 +333,7 @@ PhysicsDebris::~PhysicsDebris()
|
||||||
|
|
||||||
void PhysicsDebris::initPersistFields()
|
void PhysicsDebris::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Con::addVariable( "$pref::PhysicsDebris::lifetimeScale", TypeF32, &smLifetimeScale,
|
Con::addVariable( "$pref::PhysicsDebris::lifetimeScale", TypeF32, &smLifetimeScale,
|
||||||
"@brief Scales how long %PhysicsDebris will live before being removed.\n"
|
"@brief Scales how long %PhysicsDebris will live before being removed.\n"
|
||||||
"@note A value of 0 will disable PhysicsDebris entirely.");
|
"@note A value of 0 will disable PhysicsDebris entirely.");
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,8 @@ PhysicsForce::~PhysicsForce()
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsForce::initPersistFields()
|
void PhysicsForce::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@ PhysicsShapeData::~PhysicsShapeData()
|
||||||
|
|
||||||
void PhysicsShapeData::initPersistFields()
|
void PhysicsShapeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shapes");
|
addGroup("Shapes");
|
||||||
|
|
||||||
INITPERSISTFIELD_SHAPEASSET(Shape, PhysicsShapeData, "@brief Shape asset to be used with this physics object.\n\n"
|
INITPERSISTFIELD_SHAPEASSET(Shape, PhysicsShapeData, "@brief Shape asset to be used with this physics object.\n\n"
|
||||||
|
|
@ -430,7 +431,8 @@ void PhysicsShape::consoleInit()
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsShape::initPersistFields()
|
void PhysicsShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "PhysicsShape" );
|
addGroup( "PhysicsShape" );
|
||||||
|
|
||||||
addField( "playAmbient", TypeBool, Offset( mPlayAmbient, PhysicsShape ),
|
addField( "playAmbient", TypeBool, Offset( mPlayAmbient, PhysicsShape ),
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ PointLight::~PointLight()
|
||||||
|
|
||||||
void PointLight::initPersistFields()
|
void PointLight::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Light" );
|
addGroup( "Light" );
|
||||||
|
|
||||||
addField( "radius", TypeF32, Offset( mRadius, PointLight ), "Controls the falloff of the light emission" );
|
addField( "radius", TypeF32, Offset( mRadius, PointLight ), "Controls the falloff of the light emission" );
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,7 @@ Portal::Portal()
|
||||||
|
|
||||||
void Portal::initPersistFields()
|
void Portal::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Zoning" );
|
addGroup( "Zoning" );
|
||||||
|
|
||||||
addProtectedField( "frontSidePassable", TypeBool, Offset( mPassableSides[ FrontSide ], Portal ),
|
addProtectedField( "frontSidePassable", TypeBool, Offset( mPassableSides[ FrontSide ], Portal ),
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ Prefab::~Prefab()
|
||||||
|
|
||||||
void Prefab::initPersistFields()
|
void Prefab::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Prefab" );
|
addGroup( "Prefab" );
|
||||||
|
|
||||||
addProtectedField( "filename", TypePrefabFilename, Offset( mFilename, Prefab ),
|
addProtectedField( "filename", TypePrefabFilename, Offset( mFilename, Prefab ),
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,7 @@ ProjectileData::ProjectileData(const ProjectileData& other, bool temp_clone) : G
|
||||||
|
|
||||||
void ProjectileData::initPersistFields()
|
void ProjectileData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shapes");
|
addGroup("Shapes");
|
||||||
addProtectedField("projectileShapeName", TypeShapeFilename, Offset(mProjectileShapeName, ProjectileData), &_setProjectileShapeData, &defaultProtectedGetFn,
|
addProtectedField("projectileShapeName", TypeShapeFilename, Offset(mProjectileShapeName, ProjectileData), &_setProjectileShapeData, &defaultProtectedGetFn,
|
||||||
"@brief File path to the model of the projectile.\n\n", AbstractClassRep::FIELD_HideInInspectors);
|
"@brief File path to the model of the projectile.\n\n", AbstractClassRep::FIELD_HideInInspectors);
|
||||||
|
|
@ -647,6 +648,7 @@ Projectile::~Projectile()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void Projectile::initPersistFields()
|
void Projectile::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Physics");
|
addGroup("Physics");
|
||||||
|
|
||||||
addProtectedField("initialPosition", TypePoint3F, Offset(mInitialPosition, Projectile), &_setInitialPosition, &defaultProtectedGetFn,
|
addProtectedField("initialPosition", TypePoint3F, Offset(mInitialPosition, Projectile), &_setInitialPosition, &defaultProtectedGetFn,
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ ProximityMineData::ProximityMineData()
|
||||||
|
|
||||||
void ProximityMineData::initPersistFields()
|
void ProximityMineData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
addGroup("Sounds");
|
addGroup("Sounds");
|
||||||
INITPERSISTFIELD_SOUNDASSET(ArmSound, ProximityMineData, "Arming sound for this proximity mine.");
|
INITPERSISTFIELD_SOUNDASSET(ArmSound, ProximityMineData, "Arming sound for this proximity mine.");
|
||||||
|
|
|
||||||
|
|
@ -512,6 +512,7 @@ void RigidShapeData::unpackData(BitStream* stream)
|
||||||
|
|
||||||
void RigidShapeData::initPersistFields()
|
void RigidShapeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup( "Particle Effects" );
|
addGroup( "Particle Effects" );
|
||||||
|
|
@ -1685,6 +1686,7 @@ void RigidShape::consoleInit()
|
||||||
|
|
||||||
void RigidShape::initPersistFields()
|
void RigidShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ ScopeAlwaysShape::ScopeAlwaysShape()
|
||||||
|
|
||||||
void ScopeAlwaysShape::initPersistFields()
|
void ScopeAlwaysShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ void SFXEmitter::consoleInit()
|
||||||
|
|
||||||
void SFXEmitter::initPersistFields()
|
void SFXEmitter::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Media" );
|
addGroup( "Media" );
|
||||||
|
|
||||||
INITPERSISTFIELD_SOUNDASSET(Sound, SFXEmitter, "");
|
INITPERSISTFIELD_SOUNDASSET(Sound, SFXEmitter, "");
|
||||||
|
|
|
||||||
|
|
@ -1033,6 +1033,7 @@ ShapeBase::~ShapeBase()
|
||||||
|
|
||||||
void ShapeBase::initPersistFields()
|
void ShapeBase::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addProtectedField( "skin", TypeRealString, Offset(mAppliedSkinName, ShapeBase), &_setFieldSkin, &_getFieldSkin,
|
addProtectedField( "skin", TypeRealString, Offset(mAppliedSkinName, ShapeBase), &_setFieldSkin, &_getFieldSkin,
|
||||||
"@brief The skin applied to the shape.\n\n"
|
"@brief The skin applied to the shape.\n\n"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -629,6 +629,7 @@ S32 ShapeBaseImageData::lookupState(const char* name)
|
||||||
|
|
||||||
void ShapeBaseImageData::initPersistFields()
|
void ShapeBaseImageData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shapes");
|
addGroup("Shapes");
|
||||||
INITPERSISTFIELD_SHAPEASSET_ARRAY(Shape, MaxShapes, ShapeBaseImageData, "The shape asset to use for this image in the third person")
|
INITPERSISTFIELD_SHAPEASSET_ARRAY(Shape, MaxShapes, ShapeBaseImageData, "The shape asset to use for this image in the third person")
|
||||||
//addProtectedField("shapeFileFP", TypeShapeFilename, Offset(mShapeName[1], ShapeBaseImageData), _setShapeData, defaultProtectedGetFn, "deprecated alias for ShapeFPFile/Asset", AbstractClassRep::FIELD_HideInInspectors);
|
//addProtectedField("shapeFileFP", TypeShapeFilename, Offset(mShapeName[1], ShapeBaseImageData), _setShapeData, defaultProtectedGetFn, "deprecated alias for ShapeFPFile/Asset", AbstractClassRep::FIELD_HideInInspectors);
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ SpotLight::~SpotLight()
|
||||||
|
|
||||||
void SpotLight::initPersistFields()
|
void SpotLight::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Light" );
|
addGroup( "Light" );
|
||||||
|
|
||||||
addField( "range", TypeF32, Offset( mRange, SpotLight ) );
|
addField( "range", TypeF32, Offset( mRange, SpotLight ) );
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ StaticShapeData::StaticShapeData(const StaticShapeData& other, bool temp_clone)
|
||||||
|
|
||||||
void StaticShapeData::initPersistFields()
|
void StaticShapeData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
addField("noIndividualDamage", TypeBool, Offset(noIndividualDamage, StaticShapeData), "Deprecated\n\n @internal");
|
addField("noIndividualDamage", TypeBool, Offset(noIndividualDamage, StaticShapeData), "Deprecated\n\n @internal");
|
||||||
addField("dynamicType", TypeS32, Offset(dynamicTypeField, StaticShapeData),
|
addField("dynamicType", TypeS32, Offset(dynamicTypeField, StaticShapeData),
|
||||||
|
|
@ -193,6 +194,7 @@ StaticShape::~StaticShape()
|
||||||
|
|
||||||
void StaticShape::initPersistFields()
|
void StaticShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -370,6 +370,7 @@ void Trigger::consoleInit()
|
||||||
|
|
||||||
void Trigger::initPersistFields()
|
void Trigger::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField("polyhedron", TypeTriggerPolyhedron, Offset(mTriggerPolyhedron, Trigger),
|
addField("polyhedron", TypeTriggerPolyhedron, Offset(mTriggerPolyhedron, Trigger),
|
||||||
"@brief Defines a non-rectangular area for the trigger.\n\n"
|
"@brief Defines a non-rectangular area for the trigger.\n\n"
|
||||||
"Rather than the standard rectangular bounds, this optional parameter defines a quadrilateral "
|
"Rather than the standard rectangular bounds, this optional parameter defines a quadrilateral "
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,7 @@ FRangeValidator speedValidator(0.0f, AnimSpeedMax);
|
||||||
|
|
||||||
void TSStatic::initPersistFields()
|
void TSStatic::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Shape");
|
addGroup("Shape");
|
||||||
|
|
||||||
INITPERSISTFIELD_SHAPEASSET(Shape, TSStatic, "Model to use for this TSStatic");
|
INITPERSISTFIELD_SHAPEASSET(Shape, TSStatic, "Model to use for this TSStatic");
|
||||||
|
|
|
||||||
|
|
@ -464,6 +464,7 @@ AITurretShape::~AITurretShape()
|
||||||
|
|
||||||
void AITurretShape::initPersistFields()
|
void AITurretShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -300,6 +300,7 @@ TurretShape::~TurretShape()
|
||||||
|
|
||||||
void TurretShape::initPersistFields()
|
void TurretShape::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField("respawn", TypeBool, Offset(mRespawn, TurretShape),
|
addField("respawn", TypeBool, Offset(mRespawn, TurretShape),
|
||||||
"@brief Respawn the turret after it has been destroyed.\n\n"
|
"@brief Respawn the turret after it has been destroyed.\n\n"
|
||||||
"If true, the turret will respawn after it is destroyed.\n");
|
"If true, the turret will respawn after it is destroyed.\n");
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,7 @@ bool FlyingVehicleData::preload(bool server, String &errorStr)
|
||||||
|
|
||||||
void FlyingVehicleData::initPersistFields()
|
void FlyingVehicleData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("Physics");
|
addGroup("Physics");
|
||||||
|
|
@ -806,6 +807,7 @@ void FlyingVehicle::unpackUpdate(NetConnection *con, BitStream *stream)
|
||||||
|
|
||||||
void FlyingVehicle::initPersistFields()
|
void FlyingVehicle::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ GuiSpeedometerHud::GuiSpeedometerHud()
|
||||||
|
|
||||||
void GuiSpeedometerHud::initPersistFields()
|
void GuiSpeedometerHud::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup("Needle");
|
addGroup("Needle");
|
||||||
|
|
||||||
addField("maxSpeed", TypeF32, Offset( mMaxSpeed, GuiSpeedometerHud ),
|
addField("maxSpeed", TypeF32, Offset( mMaxSpeed, GuiSpeedometerHud ),
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ HoverVehicleData::~HoverVehicleData()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void HoverVehicleData::initPersistFields()
|
void HoverVehicleData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
addGroup("Physics");
|
addGroup("Physics");
|
||||||
addField( "normalForce", TypeF32, Offset(normalForce, HoverVehicleData),
|
addField( "normalForce", TypeF32, Offset(normalForce, HoverVehicleData),
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,7 @@ void VehicleData::unpackData(BitStream* stream)
|
||||||
|
|
||||||
void VehicleData::initPersistFields()
|
void VehicleData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("Particle Effects");
|
addGroup("Particle Effects");
|
||||||
|
|
@ -1108,6 +1109,7 @@ void Vehicle::consoleInit()
|
||||||
|
|
||||||
void Vehicle::initPersistFields()
|
void Vehicle::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField( "disableMove", TypeBool, Offset(mDisableMove, Vehicle),
|
addField( "disableMove", TypeBool, Offset(mDisableMove, Vehicle),
|
||||||
"When this flag is set, the vehicle will ignore throttle changes." );
|
"When this flag is set, the vehicle will ignore throttle changes." );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ VehicleBlocker::~VehicleBlocker()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void VehicleBlocker::initPersistFields()
|
void VehicleBlocker::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField("dimensions", TypePoint3F, Offset(mDimensions, VehicleBlocker));
|
addField("dimensions", TypePoint3F, Offset(mDimensions, VehicleBlocker));
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ bool WheeledVehicleTire::preload(bool server, String &errorStr)
|
||||||
|
|
||||||
void WheeledVehicleTire::initPersistFields()
|
void WheeledVehicleTire::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
INITPERSISTFIELD_SHAPEASSET(Shape, WheeledVehicleTire, "The shape to use for the wheel.");
|
INITPERSISTFIELD_SHAPEASSET(Shape, WheeledVehicleTire, "The shape to use for the wheel.");
|
||||||
|
|
||||||
addField( "mass", TypeF32, Offset(mass, WheeledVehicleTire),
|
addField( "mass", TypeF32, Offset(mass, WheeledVehicleTire),
|
||||||
|
|
@ -233,6 +234,7 @@ WheeledVehicleSpring::WheeledVehicleSpring()
|
||||||
|
|
||||||
void WheeledVehicleSpring::initPersistFields()
|
void WheeledVehicleSpring::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addField( "length", TypeF32, Offset(length, WheeledVehicleSpring),
|
addField( "length", TypeF32, Offset(length, WheeledVehicleSpring),
|
||||||
"@brief Maximum spring length. ie. how far the wheel can extend from the "
|
"@brief Maximum spring length. ie. how far the wheel can extend from the "
|
||||||
"root hub position.\n\n"
|
"root hub position.\n\n"
|
||||||
|
|
@ -448,6 +450,7 @@ bool WheeledVehicleData::mirrorWheel(Wheel* we)
|
||||||
|
|
||||||
void WheeledVehicleData::initPersistFields()
|
void WheeledVehicleData::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addGroup("Particle Effects");
|
addGroup("Particle Effects");
|
||||||
|
|
@ -560,6 +563,7 @@ WheeledVehicle::~WheeledVehicle()
|
||||||
|
|
||||||
void WheeledVehicle::initPersistFields()
|
void WheeledVehicle::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ void Zone::consoleInit()
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
void Zone::initPersistFields()
|
void Zone::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addProtectedField("selectAll", TypeBool, Offset(mSelecting, Zone),
|
addProtectedField("selectAll", TypeBool, Offset(mSelecting, Zone),
|
||||||
&_doSelect, &defaultProtectedGetFn, "Select all in this zone", AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);
|
&_doSelect, &defaultProtectedGetFn, "Select all in this zone", AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,9 @@ VController::~VController( void )
|
||||||
// Void.
|
// Void.
|
||||||
}
|
}
|
||||||
|
|
||||||
void VController::initPersistFields( void )
|
void VController::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
addGroup( "Controller" );
|
addGroup( "Controller" );
|
||||||
addProtectedField( "Time", TypeS32, Offset( mTime, VController ), &setTime, &defaultProtectedGetFn, "Current position of the Controller (in milliseconds)." );
|
addProtectedField( "Time", TypeS32, Offset( mTime, VController ), &setTime, &defaultProtectedGetFn, "Current position of the Controller (in milliseconds)." );
|
||||||
addProtectedField( "Duration", TypeS32, Offset( mDuration, VController ), &setDuration, &defaultProtectedGetFn, "Total length of the sequence (in milliseconds)." );
|
addProtectedField( "Duration", TypeS32, Offset( mDuration, VController ), &setDuration, &defaultProtectedGetFn, "Total length of the sequence (in milliseconds)." );
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ public:
|
||||||
VController();
|
VController();
|
||||||
~VController();
|
~VController();
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// ITickable.
|
// ITickable.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,9 @@ VEvent::VEvent( void ) :
|
||||||
setLabel( "DefaultEvent" );
|
setLabel( "DefaultEvent" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void VEvent::initPersistFields( void )
|
void VEvent::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addProtectedField( "TriggerTime", TypeS32, Offset( mTriggerTime, VEvent ), &setTriggerTime, &defaultProtectedGetFn, "The time that this event is triggered." );
|
addProtectedField( "TriggerTime", TypeS32, Offset( mTriggerTime, VEvent ), &setTriggerTime, &defaultProtectedGetFn, "The time that this event is triggered." );
|
||||||
|
|
@ -403,4 +404,4 @@ void VEvent::setDuration( const S32 &pDuration )
|
||||||
|
|
||||||
// Apply Duration.
|
// Apply Duration.
|
||||||
mDuration = pDuration;
|
mDuration = pDuration;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public:
|
||||||
|
|
||||||
VEvent( void );
|
VEvent( void );
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// Controller Methods.
|
// Controller Methods.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,9 @@ VObject::~VObject( void )
|
||||||
remove();
|
remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VObject::initPersistFields( void )
|
void VObject::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
// Don't Use Parent Fields.
|
// Don't Use Parent Fields.
|
||||||
// Parent::initPersistFields();
|
// Parent::initPersistFields();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ public:
|
||||||
VObject( void );
|
VObject( void );
|
||||||
virtual ~VObject( void );
|
virtual ~VObject( void );
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// Reference Methods.
|
// Reference Methods.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,9 @@ VShapeAnimationEvent::VShapeAnimationEvent( void ) :
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
void VShapeAnimationEvent::initPersistFields( void )
|
void VShapeAnimationEvent::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField( "AnimationData", TypeRealString, Offset( mAnimationData, VShapeAnimationEvent ), "The name of the Animation Sequence to play upon triggering." );
|
addField( "AnimationData", TypeRealString, Offset( mAnimationData, VShapeAnimationEvent ), "The name of the Animation Sequence to play upon triggering." );
|
||||||
|
|
@ -151,4 +152,4 @@ F32 VShapeAnimationEvent::getAnimationPosition( const S32 &pTime )
|
||||||
const S32 loopInterp = S32( mDuration * interp ) % duration;
|
const S32 loopInterp = S32( mDuration * interp ) % duration;
|
||||||
|
|
||||||
return ( F32 )loopInterp / ( F32 )duration;
|
return ( F32 )loopInterp / ( F32 )duration;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ public:
|
||||||
|
|
||||||
VShapeAnimationEvent( void );
|
VShapeAnimationEvent( void );
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// Callback Methods.
|
// Callback Methods.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,9 @@ VShapeAnimationTrack::VShapeAnimationTrack( void ) :
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
void VShapeAnimationTrack::initPersistFields( void )
|
void VShapeAnimationTrack::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField( "ThreadIndex", TypeS32, Offset( mThreadIndex, VShapeAnimationTrack ), "The index of the Animation Thread to play." );
|
addField( "ThreadIndex", TypeS32, Offset( mThreadIndex, VShapeAnimationTrack ), "The index of the Animation Thread to play." );
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
VShapeAnimationTrack( void );
|
VShapeAnimationTrack( void );
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// Controller Methods.
|
// Controller Methods.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,9 @@ VCameraShakeEvent::VCameraShakeEvent( void ) :
|
||||||
setLabel( "CameraShakeEvent" );
|
setLabel( "CameraShakeEvent" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void VCameraShakeEvent::initPersistFields( void )
|
void VCameraShakeEvent::initPersistFields()
|
||||||
{
|
{
|
||||||
|
docsURL;
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField( "Amplitude", TypePoint3F, Offset( mAmplitude, VCameraShakeEvent ), "Amplitude of the Camera Shake event." );
|
addField( "Amplitude", TypePoint3F, Offset( mAmplitude, VCameraShakeEvent ), "Amplitude of the Camera Shake event." );
|
||||||
|
|
@ -80,4 +81,4 @@ void VCameraShakeEvent::onTrigger( const S32 &pTime, const S32 &pDelta )
|
||||||
|
|
||||||
// Shake Camera.
|
// Shake Camera.
|
||||||
VTorque::startCameraShake( duration, mFalloff, mAmplitude, mFrequency );
|
VTorque::startCameraShake( duration, mFalloff, mAmplitude, mFrequency );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
VCameraShakeEvent( void );
|
VCameraShakeEvent( void );
|
||||||
|
|
||||||
static void initPersistFields( void );
|
static void initPersistFields();
|
||||||
|
|
||||||
// Event Methods.
|
// Event Methods.
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue