mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
add a bool filter to getMethodSigs so it can also return script commands
example code reminder note:
//MainMenuGui.getPrototypeList();
//MainMenuGui.getPrototypeDef("onAdd");
function simObject::getPrototypeList(%this)
{
%methodArray = %this.getMethodSigs();
%methodCount = %methodArray.count();
for (%i=0;%i<%methodCount;%i++)
{
%methodDef = getRecord(%methodArray.getValue(%i),0);
%methodName = strreplace(%methodDef,"::"," ");
%methodName = getWord(strreplace(%methodName,"("," "),2);
warn(%methodName);
}
}
function simObject::getPrototypeDef(%this, %funcName)
{
%methodArray = %this.getMethodSigs();
%methodCount = %methodArray.count();
for (%i=0;%i<%methodCount;%i++)
{
%methodDef = %methodArray.getValue(%i);
%methodName = strreplace(%methodDef,"::"," ");
%methodName = getWord(strreplace(%methodName,"("," "),2);
if (%funcName $= %methodName)
warn(%methodDef);
}
}
|
||
|---|---|---|
| .github | ||
| Engine | ||
| My Projects | ||
| Templates | ||
| Tools | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| CMakeLists.txt | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE.md | ||
| README.md | ||
Torque3D
MIT Licensed Open Source version of Torque3D from GarageGames
More Information
Extras: Torque3D Resources | Awesome Torque3D
Pre-compiled Version
In addition to GitHub we also have a couple of pre-packaged files for you to download if you would prefer to not compile the code yourself. They are available from the Torque3D Binaries repo.
Legacy Links
- Legacy Repository
- GarageGames forum
- GarageGames professional services
- Project Manager repository
- Offline documentation repository