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

@ -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 ),