mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
remove auto-documentation experiment
This commit is contained in:
parent
ace18d0246
commit
41cb2e63cf
|
|
@ -138,22 +138,9 @@ void Sun::onRemove()
|
|||
removeFromScene();
|
||||
Parent::onRemove();
|
||||
}
|
||||
const char * getDocsLink(const char* filename, U32 lineNumber)
|
||||
{
|
||||
Vector<String> fileStringSplit;
|
||||
String::String(filename).split("source", fileStringSplit);
|
||||
String fileString = fileStringSplit.last();
|
||||
String fileLineString = fileString + String::String("#L") + String::ToString(lineNumber);
|
||||
String URL = String::String("<a:https://github.com/TorqueGameEngines/Torque3D/blob/development/Engine/source/") + fileLineString + String::String(">docs</a>");
|
||||
|
||||
return (new String(URL))->c_str();
|
||||
}
|
||||
|
||||
#define doDocsLink getDocsLink(__FILE__,__LINE__)
|
||||
|
||||
void Sun::initPersistFields()
|
||||
{
|
||||
addProtectedField("docs", TypeBool, NULL, &defaultProtectedNotSetFn, &defaultProtectedGetFn, doDocsLink);
|
||||
addGroup( "Orbit" );
|
||||
|
||||
addField( "azimuth", TypeF32, Offset( mSunAzimuth, Sun ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue