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:
AzaezelX 2023-01-27 01:13:15 -06:00
parent a0bbe0ec18
commit f5a34308f9
382 changed files with 588 additions and 130 deletions

View file

@ -24,6 +24,7 @@ Scene::~Scene()
void Scene::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Internal");

View file

@ -97,6 +97,7 @@ AccumulationVolume::~AccumulationVolume()
void AccumulationVolume::initPersistFields()
{
docsURL;
addProtectedField("textureAsset", TypeImageAssetId, Offset(mTextureAssetId, AccumulationVolume),
&_setTexture, &defaultProtectedGetFn, "Accumulation texture.");
addProtectedField( "texture", TypeStringFilename, Offset( mTextureName, AccumulationVolume ),

View file

@ -133,6 +133,7 @@ AIPlayer::~AIPlayer()
void AIPlayer::initPersistFields()
{
docsURL;
addGroup( "AI" );
addField( "mMoveTolerance", TypeF32, Offset( mMoveTolerance, AIPlayer ),

View file

@ -107,6 +107,7 @@ CppAsset::~CppAsset()
void CppAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -111,6 +111,7 @@ CubemapAsset::~CubemapAsset()
void CubemapAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -104,6 +104,7 @@ ExampleAsset::~ExampleAsset()
void ExampleAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -95,6 +95,7 @@ GUIAsset::~GUIAsset()
void GUIAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -109,6 +109,7 @@ GameObjectAsset::~GameObjectAsset()
void GameObjectAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -155,6 +155,7 @@ void ImageAsset::consoleInit()
void ImageAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -111,6 +111,7 @@ LevelAsset::~LevelAsset()
void LevelAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -150,6 +150,7 @@ void MaterialAsset::consoleInit()
void MaterialAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -106,6 +106,7 @@ ParticleAsset::~ParticleAsset()
void ParticleAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -111,6 +111,7 @@ PostEffectAsset::~PostEffectAsset()
void PostEffectAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -105,6 +105,7 @@ ScriptAsset::~ScriptAsset()
void ScriptAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -112,6 +112,7 @@ ShapeAnimationAsset::~ShapeAnimationAsset()
void ShapeAnimationAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -165,6 +165,7 @@ void ShapeAsset::consoleInit()
void ShapeAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -147,6 +147,7 @@ SoundAsset::~SoundAsset()
void SoundAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -134,6 +134,7 @@ TerrainAsset::~TerrainAsset()
void TerrainAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -153,6 +153,7 @@ void TerrainMaterialAsset::consoleInit()
void TerrainMaterialAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -134,6 +134,7 @@ void AssetImportConfig::onRemove()
/// Engine.
void AssetImportConfig::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("General");
@ -466,6 +467,7 @@ void AssetImportObject::onRemove()
void AssetImportObject::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField("assetType", TypeRealString, Offset(assetType, AssetImportObject), "What type is the importing asset");
@ -539,6 +541,7 @@ void AssetImporter::onRemove()
void AssetImporter::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField("targetModuleId", TypeRealString, Offset(targetModuleId, AssetImporter), "The Id of the module the assets are to be imported into");

View file

@ -106,6 +106,7 @@ StateMachineAsset::~StateMachineAsset()
void StateMachineAsset::initPersistFields()
{
docsURL;
// Call parent.
Parent::initPersistFields();

View file

@ -85,6 +85,7 @@ ConsoleDocClass( CameraData,
void CameraData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -1307,6 +1308,7 @@ void Camera::unpackUpdate(NetConnection *con, BitStream *bstream)
void Camera::initPersistFields()
{
docsURL;
addGroup( "Camera" );
addProtectedField( "controlMode", TYPEID< CameraMotionMode >(), Offset( mMode, Camera ),
&_setModeField, &defaultProtectedGetFn,

View file

@ -309,6 +309,7 @@ ConvexShape::~ConvexShape()
void ConvexShape::initPersistFields()
{
docsURL;
addGroup( "Rendering" );
INITPERSISTFIELD_MATERIALASSET(Material, ConvexShape, "Default material used to render the ConvexShape surface.");

View file

@ -295,6 +295,7 @@ bool DebrisData::preload(bool server, String &errorStr)
void DebrisData::initPersistFields()
{
docsURL;
addGroup("Shapes");
addField("texture", TypeString, Offset(textureName, DebrisData),
"@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()
{
docsURL;
addGroup( "Debris" );
addField( "lifetime", TypeF32, Offset(mLifetime, Debris),

View file

@ -138,6 +138,7 @@ void DecalData::onRemove()
void DecalData::initPersistFields()
{
docsURL;
addGroup( "Decal" );
addField( "size", TypeF32, Offset( size, DecalData ),

View file

@ -74,6 +74,7 @@ RenderMeshExample::~RenderMeshExample()
//-----------------------------------------------------------------------------
void RenderMeshExample::initPersistFields()
{
docsURL;
addGroup( "Rendering" );
INITPERSISTFIELD_MATERIALASSET(Material, RenderMeshExample, "The material used to render the mesh.");
endGroup( "Rendering" );

View file

@ -68,6 +68,7 @@ RenderObjectExample::~RenderObjectExample()
//-----------------------------------------------------------------------------
void RenderObjectExample::initPersistFields()
{
docsURL;
// SceneObject already handles exposing the transform
Parent::initPersistFields();
}
@ -277,4 +278,4 @@ void RenderObjectExample::render( ObjectRenderInst *ri, SceneRenderState *state,
// Draw our triangles
GFX->drawPrimitive( GFXTriangleList, 0, 12 );
}
}

View file

@ -72,6 +72,7 @@ RenderShapeExample::~RenderShapeExample()
//-----------------------------------------------------------------------------
void RenderShapeExample::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup( "Shapes" );
INITPERSISTFIELD_SHAPEASSET(Shape, RenderShapeExample, "The path to the shape file.")

View file

@ -97,6 +97,7 @@ GuiClockHud::GuiClockHud()
void GuiClockHud::initPersistFields()
{
docsURL;
addGroup("Misc");
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." );

View file

@ -99,6 +99,7 @@ GuiCrossHairHud::GuiCrossHairHud()
void GuiCrossHairHud::initPersistFields()
{
docsURL;
addGroup("Damage");
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." );

View file

@ -112,6 +112,7 @@ GuiHealthBarHud::GuiHealthBarHud()
void GuiHealthBarHud::initPersistFields()
{
docsURL;
addGroup("Colors");
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." );

View file

@ -115,7 +115,8 @@ GuiHealthTextHud::GuiHealthTextHud()
}
void GuiHealthTextHud::initPersistFields()
{
{
docsURL;
addGroup("Colors");
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.");
@ -199,4 +200,4 @@ void GuiHealthTextHud::onRender(Point2I offset, const RectI &updateRect)
// If enabled draw the border last
if (mShowFrame)
drawUtil->drawRect(updateRect, mFrameColor.toColorI());
}
}

View file

@ -126,6 +126,7 @@ GuiShapeNameHud::GuiShapeNameHud()
void GuiShapeNameHud::initPersistFields()
{
docsURL;
addGroup("Colors");
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." );

View file

@ -387,6 +387,7 @@ ExplosionData* ExplosionData::cloneAndPerformSubstitutions(const SimObject* owne
void ExplosionData::initPersistFields()
{
docsURL;
addGroup("Shapes");
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.");
@ -980,6 +981,7 @@ void Explosion::setInitialState(const Point3F& point, const Point3F& normal, con
//--------------------------------------------------------------------------
void Explosion::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField("initialNormal", TypePoint3F, Offset(mInitialNormal, Explosion), "Initial starting Normal.");
//

View file

@ -345,6 +345,7 @@ fxFoliageReplicator::~fxFoliageReplicator()
void fxFoliageReplicator::initPersistFields()
{
docsURL;
// Add out own persistent fields.
addGroup( "Debugging" ); // MM: Added Group Header.
addField( "UseDebugInfo", TypeBool, Offset( mFieldData.mUseDebugInfo, fxFoliageReplicator ), "Culling bins are drawn when set to true." );

View file

@ -139,6 +139,7 @@ fxShapeReplicator::~fxShapeReplicator()
void fxShapeReplicator::initPersistFields()
{
docsURL;
// Add out own persistent fields.
addGroup( "Debugging" ); // MM: Added Group Header.
addField( "HideReplications", TypeBool, Offset( mFieldData.mHideReplications, fxShapeReplicator ), "Replicated shapes are hidden when set to true." );

View file

@ -540,6 +540,7 @@ IMPLEMENT_CO_NETOBJECT_V1(GroundCover);
void GroundCover::initPersistFields()
{
docsURL;
addGroup( "GroundCover General" );
INITPERSISTFIELD_MATERIALASSET(Material, GroundCover, "Material used by all GroundCover segments.");

View file

@ -262,6 +262,7 @@ LightningData::~LightningData()
//--------------------------------------------------------------------------
void LightningData::initPersistFields()
{
docsURL;
INITPERSISTFIELD_SOUNDASSET(StrikeSound, LightningData, "Sound to play when lightning STRIKES!");
@ -411,6 +412,7 @@ Lightning::~Lightning()
//--------------------------------------------------------------------------
void Lightning::initPersistFields()
{
docsURL;
addGroup( "Strikes" );
addField( "strikesPerMinute", TypeS32, Offset(strikesPerMinute, Lightning),
"@brief Number of lightning strikes to perform per minute.\n\n"

View file

@ -89,6 +89,7 @@ ParticleEmitterNodeData::~ParticleEmitterNodeData()
//-----------------------------------------------------------------------------
void ParticleEmitterNodeData::initPersistFields()
{
docsURL;
addField( "timeMultiple", TYPEID< F32 >(), Offset(timeMultiple, ParticleEmitterNodeData),
"@brief Time multiplier for particle emitter nodes.\n\n"
"Increasing timeMultiple is like running the emitter at a faster rate - single-shot "
@ -181,6 +182,7 @@ ParticleEmitterNode::~ParticleEmitterNode()
//-----------------------------------------------------------------------------
void ParticleEmitterNode::initPersistFields()
{
docsURL;
addField( "active", TYPEID< bool >(), Offset(mActive,ParticleEmitterNode),
"Controls whether particles are emitted from this node." );
addField( "emitter", TYPEID< ParticleEmitterData >(), Offset(mEmitterDatablock, ParticleEmitterNode),

View file

@ -143,6 +143,7 @@ PrecipitationData::PrecipitationData()
void PrecipitationData::initPersistFields()
{
docsURL;
INITPERSISTFIELD_SOUNDASSET(Sound, PrecipitationData, "Looping SFXProfile effect to play while Precipitation is active.");
addProtectedField( "dropTexture", TypeFilename, Offset(mDropName, PrecipitationData), &_setDropData, &defaultProtectedGetFn,
@ -367,6 +368,7 @@ IRangeValidator ValidNumDropsRange(1, 100000);
void Precipitation::initPersistFields()
{
docsURL;
addGroup("Precipitation");
addFieldV( "numDrops", TypeS32, Offset(mNumDrops, Precipitation), &ValidNumDropsRange,

View file

@ -68,6 +68,7 @@ RibbonData::RibbonData()
void RibbonData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Ribbon");
@ -205,6 +206,7 @@ Ribbon::~Ribbon()
//--------------------------------------------------------------------------
void Ribbon::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -56,6 +56,7 @@ RibbonNodeData::~RibbonNodeData()
//-----------------------------------------------------------------------------
void RibbonNodeData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -90,6 +91,7 @@ RibbonNode::~RibbonNode()
//-----------------------------------------------------------------------------
void RibbonNode::initPersistFields()
{
docsURL;
addField( "active", TYPEID< bool >(), Offset(mActive,RibbonNode),
"Controls whether ribbon is emitted from this node." );
addField( "ribbon", TYPEID< RibbonData >(), Offset(mRibbonDatablock, RibbonNode),

View file

@ -114,8 +114,9 @@ SplashData::SplashData()
//--------------------------------------------------------------------------
// Init fields
//--------------------------------------------------------------------------
void SplashData::initPersistFields()
void SplashData::initPersistFields()
{
docsURL;
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");

View file

@ -156,6 +156,7 @@ bool GameBaseData::onAdd()
void GameBaseData::initPersistFields()
{
docsURL;
addGroup("Scripting");
addField( "category", TypeCaseString, Offset(mCategory, GameBaseData ),
@ -721,6 +722,7 @@ DefineEngineMethod( GameBase, setDataBlock, bool, ( GameBaseData* data ),,
void GameBase::initPersistFields()
{
docsURL;
addGroup( "Game" );
addProtectedField( "dataBlock", TYPEID< GameBaseData >(), Offset(mDataBlock, GameBase),

View file

@ -103,6 +103,7 @@ GroundPlane::~GroundPlane()
void GroundPlane::initPersistFields()
{
docsURL;
addGroup( "Plane" );
addField( "squareSize", TypeF32, Offset( mSquareSize, GroundPlane ), "Square size in meters to which %GroundPlane subdivides its geometry." );

View file

@ -135,6 +135,7 @@ GuiObjectView::~GuiObjectView()
void GuiObjectView::initPersistFields()
{
docsURL;
addGroup( "Model" );
addField( "shapeFile", TypeStringFilename, Offset( mModelName, GuiObjectView ),

View file

@ -1301,6 +1301,7 @@ bool Item::_setRotate(void *object, const char *index, const char *data)
void Item::initPersistFields()
{
docsURL;
addGroup("Misc");
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");

View file

@ -127,6 +127,7 @@ FRangeValidator ValiDampnessRange(0.0f, 1.0f);
void LevelInfo::initPersistFields()
{
docsURL;
addGroup( "Visibility" );
addField( "nearClip", TypeF32, Offset( mNearClip, LevelInfo ), "Closest distance from the camera's position to render the world." );

View file

@ -62,6 +62,7 @@ ConsoleDocClass( LightAnimData,
void LightAnimData::initPersistFields()
{
docsURL;
addGroup( "Offset",
"The XYZ translation animation state relative to the light position." );

View file

@ -88,6 +88,7 @@ LightBase::~LightBase()
void LightBase::initPersistFields()
{
docsURL;
// We only add the basic lighting options that all lighting
// systems would use... the specific lighting system options
// are injected at runtime by the lighting system itself.

View file

@ -90,6 +90,7 @@ ConsoleDocClass( LightDescription,
void LightDescription::initPersistFields()
{
docsURL;
addGroup( "Light" );
addField( "color", TypeColorF, Offset( color, LightDescription ), "Changes the base color hue of the light." );

View file

@ -142,6 +142,7 @@ LightFlareData::~LightFlareData()
void LightFlareData::initPersistFields()
{
docsURL;
addGroup( "LightFlareData" );
addField( "overallScale", TypeF32, Offset( mScale, LightFlareData ),

View file

@ -90,6 +90,7 @@ BoxEnvironmentProbe::~BoxEnvironmentProbe()
//-----------------------------------------------------------------------------
void BoxEnvironmentProbe::initPersistFields()
{
docsURL;
// SceneObject already handles exposing the transform
Parent::initPersistFields();

View file

@ -151,6 +151,7 @@ ReflectionProbe::~ReflectionProbe()
//-----------------------------------------------------------------------------
void ReflectionProbe::initPersistFields()
{
docsURL;
addField("canDamp", TypeBool, Offset(mCanDamp, ReflectionProbe),"wetness allowed");
addGroup("Rendering");
addProtectedField("enabled", TypeBool, Offset(mEnabled, ReflectionProbe),

View file

@ -90,6 +90,7 @@ Skylight::~Skylight()
//-----------------------------------------------------------------------------
void Skylight::initPersistFields()
{
docsURL;
// SceneObject already handles exposing the transform
Parent::initPersistFields();

View file

@ -89,6 +89,7 @@ SphereEnvironmentProbe::~SphereEnvironmentProbe()
//-----------------------------------------------------------------------------
void SphereEnvironmentProbe::initPersistFields()
{
docsURL;
// SceneObject already handles exposing the transform
Parent::initPersistFields();

View file

@ -130,6 +130,7 @@ void MissionArea::inspectPostApply()
void MissionArea::initPersistFields()
{
docsURL;
addGroup("Dimensions");
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. ");
@ -215,4 +216,4 @@ DefineEngineMethod( MissionArea, postApply, void, (),,
)
{
object->inspectPostApply();
}
}

View file

@ -179,7 +179,9 @@ void MissionMarker::unpackUpdate(NetConnection * con, BitStream * stream)
}
}
void MissionMarker::initPersistFields() {
void MissionMarker::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -281,6 +283,7 @@ void WayPoint::unpackUpdate(NetConnection * con, BitStream * stream)
void WayPoint::initPersistFields()
{
docsURL;
addGroup("Misc");
addField("markerName", TypeCaseString, Offset(mName, WayPoint), "Unique name representing this waypoint");
endGroup("Misc");
@ -468,6 +471,7 @@ void SpawnSphere::advanceTime( F32 timeDelta )
void SpawnSphere::initPersistFields()
{
docsURL;
addGroup( "Spawn" );
addField( "spawnClass", TypeRealString, Offset(mSpawnClass, SpawnSphere),
"Object class to create (eg. Player, AIPlayer, Debris etc)" );
@ -611,6 +615,7 @@ void CameraBookmark::unpackUpdate(NetConnection * con, BitStream * stream)
void CameraBookmark::initPersistFields()
{
docsURL;
//addGroup("Misc");
//addField("name", TypeCaseString, Offset(mName, CameraBookmark));
//endGroup("Misc");

View file

@ -40,6 +40,7 @@ NotesObject::~NotesObject()
//-----------------------------------------------------------------------------
void NotesObject::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField("Note", TypeCommand, Offset(mNote, NotesObject), "");

View file

@ -61,6 +61,7 @@ void PathCameraData::consoleInit()
void PathCameraData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -201,6 +202,7 @@ void PathCamera::onEditorDisable()
void PathCamera::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -637,4 +639,4 @@ DefineEngineMethod(PathCamera, popFront, void, (),, "Removes the knot at the fro
"@endtsexample\n")
{
object->popFront();
}
}

View file

@ -44,6 +44,7 @@ bool PathShapeData::preload(bool server, String &errorStr)
void PathShapeData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}
@ -146,6 +147,7 @@ PathShapeData::PathShapeData()
void PathShape::initPersistFields()
{
docsURL;
addField( "Path", TYPEID< SimObjectRef<SimPath::Path> >(), Offset( mSimPath, PathShape ),
"@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()")
{
return object->getState();
}
}

View file

@ -148,6 +148,7 @@ void PhysicalZone::consoleInit()
void PhysicalZone::initPersistFields()
{
docsURL;
addGroup("Misc");
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.");

View file

@ -110,6 +110,7 @@ bool PhysicsDebrisData::preload( bool server, String &errorStr )
void PhysicsDebrisData::initPersistFields()
{
docsURL;
addGroup( "Shapes" );
addProtectedField( "shapeFile", TypeShapeFilename, Offset( mShapeName, PhysicsDebrisData ), &_setShapeData, &defaultProtectedGetFn,
@ -332,6 +333,7 @@ PhysicsDebris::~PhysicsDebris()
void PhysicsDebris::initPersistFields()
{
docsURL;
Con::addVariable( "$pref::PhysicsDebris::lifetimeScale", TypeF32, &smLifetimeScale,
"@brief Scales how long %PhysicsDebris will live before being removed.\n"
"@note A value of 0 will disable PhysicsDebris entirely.");

View file

@ -54,7 +54,8 @@ PhysicsForce::~PhysicsForce()
}
void PhysicsForce::initPersistFields()
{
{
docsURL;
Parent::initPersistFields();
}

View file

@ -87,6 +87,7 @@ PhysicsShapeData::~PhysicsShapeData()
void PhysicsShapeData::initPersistFields()
{
docsURL;
addGroup("Shapes");
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()
{
{
docsURL;
addGroup( "PhysicsShape" );
addField( "playAmbient", TypeBool, Offset( mPlayAmbient, PhysicsShape ),

View file

@ -99,6 +99,7 @@ PointLight::~PointLight()
void PointLight::initPersistFields()
{
docsURL;
addGroup( "Light" );
addField( "radius", TypeF32, Offset( mRadius, PointLight ), "Controls the falloff of the light emission" );

View file

@ -147,6 +147,7 @@ Portal::Portal()
void Portal::initPersistFields()
{
docsURL;
addGroup( "Zoning" );
addProtectedField( "frontSidePassable", TypeBool, Offset( mPassableSides[ FrontSide ], Portal ),

View file

@ -81,6 +81,7 @@ Prefab::~Prefab()
void Prefab::initPersistFields()
{
docsURL;
addGroup( "Prefab" );
addProtectedField( "filename", TypePrefabFilename, Offset( mFilename, Prefab ),

View file

@ -232,6 +232,7 @@ ProjectileData::ProjectileData(const ProjectileData& other, bool temp_clone) : G
void ProjectileData::initPersistFields()
{
docsURL;
addGroup("Shapes");
addProtectedField("projectileShapeName", TypeShapeFilename, Offset(mProjectileShapeName, ProjectileData), &_setProjectileShapeData, &defaultProtectedGetFn,
"@brief File path to the model of the projectile.\n\n", AbstractClassRep::FIELD_HideInInspectors);
@ -647,6 +648,7 @@ Projectile::~Projectile()
//--------------------------------------------------------------------------
void Projectile::initPersistFields()
{
docsURL;
addGroup("Physics");
addProtectedField("initialPosition", TypePoint3F, Offset(mInitialPosition, Projectile), &_setInitialPosition, &defaultProtectedGetFn,

View file

@ -88,6 +88,7 @@ ProximityMineData::ProximityMineData()
void ProximityMineData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Sounds");
INITPERSISTFIELD_SOUNDASSET(ArmSound, ProximityMineData, "Arming sound for this proximity mine.");

View file

@ -512,6 +512,7 @@ void RigidShapeData::unpackData(BitStream* stream)
void RigidShapeData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup( "Particle Effects" );
@ -1685,6 +1686,7 @@ void RigidShape::consoleInit()
void RigidShape::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -40,6 +40,7 @@ ScopeAlwaysShape::ScopeAlwaysShape()
void ScopeAlwaysShape::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -174,6 +174,7 @@ void SFXEmitter::consoleInit()
void SFXEmitter::initPersistFields()
{
docsURL;
addGroup( "Media" );
INITPERSISTFIELD_SOUNDASSET(Sound, SFXEmitter, "");

View file

@ -1033,6 +1033,7 @@ ShapeBase::~ShapeBase()
void ShapeBase::initPersistFields()
{
docsURL;
addProtectedField( "skin", TypeRealString, Offset(mAppliedSkinName, ShapeBase), &_setFieldSkin, &_getFieldSkin,
"@brief The skin applied to the shape.\n\n"

View file

@ -629,6 +629,7 @@ S32 ShapeBaseImageData::lookupState(const char* name)
void ShapeBaseImageData::initPersistFields()
{
docsURL;
addGroup("Shapes");
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);

View file

@ -95,6 +95,7 @@ SpotLight::~SpotLight()
void SpotLight::initPersistFields()
{
docsURL;
addGroup( "Light" );
addField( "range", TypeF32, Offset( mRange, SpotLight ) );

View file

@ -108,6 +108,7 @@ StaticShapeData::StaticShapeData(const StaticShapeData& other, bool temp_clone)
void StaticShapeData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField("noIndividualDamage", TypeBool, Offset(noIndividualDamage, StaticShapeData), "Deprecated\n\n @internal");
addField("dynamicType", TypeS32, Offset(dynamicTypeField, StaticShapeData),
@ -193,6 +194,7 @@ StaticShape::~StaticShape()
void StaticShape::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -370,6 +370,7 @@ void Trigger::consoleInit()
void Trigger::initPersistFields()
{
docsURL;
addField("polyhedron", TypeTriggerPolyhedron, Offset(mTriggerPolyhedron, Trigger),
"@brief Defines a non-rectangular area for the trigger.\n\n"
"Rather than the standard rectangular bounds, this optional parameter defines a quadrilateral "

View file

@ -176,6 +176,7 @@ FRangeValidator speedValidator(0.0f, AnimSpeedMax);
void TSStatic::initPersistFields()
{
docsURL;
addGroup("Shape");
INITPERSISTFIELD_SHAPEASSET(Shape, TSStatic, "Model to use for this TSStatic");

View file

@ -464,6 +464,7 @@ AITurretShape::~AITurretShape()
void AITurretShape::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -300,6 +300,7 @@ TurretShape::~TurretShape()
void TurretShape::initPersistFields()
{
docsURL;
addField("respawn", TypeBool, Offset(mRespawn, TurretShape),
"@brief Respawn the turret after it has been destroyed.\n\n"
"If true, the turret will respawn after it is destroyed.\n");

View file

@ -175,6 +175,7 @@ bool FlyingVehicleData::preload(bool server, String &errorStr)
void FlyingVehicleData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Physics");
@ -806,6 +807,7 @@ void FlyingVehicle::unpackUpdate(NetConnection *con, BitStream *stream)
void FlyingVehicle::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -108,6 +108,7 @@ GuiSpeedometerHud::GuiSpeedometerHud()
void GuiSpeedometerHud::initPersistFields()
{
docsURL;
addGroup("Needle");
addField("maxSpeed", TypeF32, Offset( mMaxSpeed, GuiSpeedometerHud ),

View file

@ -174,6 +174,7 @@ HoverVehicleData::~HoverVehicleData()
//--------------------------------------------------------------------------
void HoverVehicleData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Physics");
addField( "normalForce", TypeF32, Offset(normalForce, HoverVehicleData),

View file

@ -274,6 +274,7 @@ void VehicleData::unpackData(BitStream* stream)
void VehicleData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Particle Effects");
@ -1108,6 +1109,7 @@ void Vehicle::consoleInit()
void Vehicle::initPersistFields()
{
docsURL;
addField( "disableMove", TypeBool, Offset(mDisableMove, Vehicle),
"When this flag is set, the vehicle will ignore throttle changes." );

View file

@ -59,6 +59,7 @@ VehicleBlocker::~VehicleBlocker()
//--------------------------------------------------------------------------
void VehicleBlocker::initPersistFields()
{
docsURL;
addField("dimensions", TypePoint3F, Offset(mDimensions, VehicleBlocker));
Parent::initPersistFields();
}

View file

@ -112,6 +112,7 @@ bool WheeledVehicleTire::preload(bool server, String &errorStr)
void WheeledVehicleTire::initPersistFields()
{
docsURL;
INITPERSISTFIELD_SHAPEASSET(Shape, WheeledVehicleTire, "The shape to use for the wheel.");
addField( "mass", TypeF32, Offset(mass, WheeledVehicleTire),
@ -233,6 +234,7 @@ WheeledVehicleSpring::WheeledVehicleSpring()
void WheeledVehicleSpring::initPersistFields()
{
docsURL;
addField( "length", TypeF32, Offset(length, WheeledVehicleSpring),
"@brief Maximum spring length. ie. how far the wheel can extend from the "
"root hub position.\n\n"
@ -448,6 +450,7 @@ bool WheeledVehicleData::mirrorWheel(Wheel* we)
void WheeledVehicleData::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addGroup("Particle Effects");
@ -560,6 +563,7 @@ WheeledVehicle::~WheeledVehicle()
void WheeledVehicle::initPersistFields()
{
docsURL;
Parent::initPersistFields();
}

View file

@ -85,6 +85,7 @@ void Zone::consoleInit()
#ifdef TORQUE_TOOLS
void Zone::initPersistFields()
{
docsURL;
addProtectedField("selectAll", TypeBool, Offset(mSelecting, Zone),
&_doSelect, &defaultProtectedGetFn, "Select all in this zone", AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);

View file

@ -60,8 +60,9 @@ VController::~VController( void )
// Void.
}
void VController::initPersistFields( void )
void VController::initPersistFields()
{
docsURL;
addGroup( "Controller" );
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)." );

View file

@ -152,7 +152,7 @@ public:
VController();
~VController();
static void initPersistFields( void );
static void initPersistFields();
// ITickable.

View file

@ -40,8 +40,9 @@ VEvent::VEvent( void ) :
setLabel( "DefaultEvent" );
}
void VEvent::initPersistFields( void )
void VEvent::initPersistFields()
{
docsURL;
Parent::initPersistFields();
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.
mDuration = pDuration;
}
}

View file

@ -48,7 +48,7 @@ public:
VEvent( void );
static void initPersistFields( void );
static void initPersistFields();
// Controller Methods.

View file

@ -42,8 +42,9 @@ VObject::~VObject( void )
remove();
}
void VObject::initPersistFields( void )
void VObject::initPersistFields()
{
docsURL;
// Don't Use Parent Fields.
// Parent::initPersistFields();

View file

@ -66,7 +66,7 @@ public:
VObject( void );
virtual ~VObject( void );
static void initPersistFields( void );
static void initPersistFields();
// Reference Methods.

View file

@ -38,8 +38,9 @@ VShapeAnimationEvent::VShapeAnimationEvent( void ) :
//-----------------------------------------------------------------------------
void VShapeAnimationEvent::initPersistFields( void )
void VShapeAnimationEvent::initPersistFields()
{
docsURL;
Parent::initPersistFields();
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;
return ( F32 )loopInterp / ( F32 )duration;
}
}

View file

@ -46,7 +46,7 @@ public:
VShapeAnimationEvent( void );
static void initPersistFields( void );
static void initPersistFields();
// Callback Methods.

View file

@ -38,8 +38,9 @@ VShapeAnimationTrack::VShapeAnimationTrack( void ) :
//-----------------------------------------------------------------------------
void VShapeAnimationTrack::initPersistFields( void )
void VShapeAnimationTrack::initPersistFields()
{
docsURL;
Parent::initPersistFields();
addField( "ThreadIndex", TypeS32, Offset( mThreadIndex, VShapeAnimationTrack ), "The index of the Animation Thread to play." );

View file

@ -43,7 +43,7 @@ public:
VShapeAnimationTrack( void );
static void initPersistFields( void );
static void initPersistFields();
// Controller Methods.

View file

@ -39,8 +39,9 @@ VCameraShakeEvent::VCameraShakeEvent( void ) :
setLabel( "CameraShakeEvent" );
}
void VCameraShakeEvent::initPersistFields( void )
void VCameraShakeEvent::initPersistFields()
{
docsURL;
Parent::initPersistFields();
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.
VTorque::startCameraShake( duration, mFalloff, mAmplitude, mFrequency );
}
}

View file

@ -43,7 +43,7 @@ public:
VCameraShakeEvent( void );
static void initPersistFields( void );
static void initPersistFields();
// Event Methods.

Some files were not shown because too many files have changed in this diff Show more