mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Eliminate DefineConsoleMethod
This commit is contained in:
parent
e718841467
commit
76908eae3c
77 changed files with 483 additions and 483 deletions
|
|
@ -629,25 +629,25 @@ void Material::StageData::getFeatureSet( FeatureSet *outFeatures ) const
|
|||
}
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, flush, void, (),,
|
||||
DefineEngineMethod( Material, flush, void, (),,
|
||||
"Flushes all material instances that use this material." )
|
||||
{
|
||||
object->flush();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, reload, void, (),,
|
||||
DefineEngineMethod( Material, reload, void, (),,
|
||||
"Reloads all material instances that use this material." )
|
||||
{
|
||||
object->reload();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, dumpInstances, void, (),,
|
||||
DefineEngineMethod( Material, dumpInstances, void, (),,
|
||||
"Dumps a formatted list of the currently allocated material instances for this material to the console." )
|
||||
{
|
||||
MATMGR->dumpMaterialInstances( object );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, getAnimFlags, const char*, (U32 id), , "" )
|
||||
DefineEngineMethod( Material, getAnimFlags, const char*, (U32 id), , "" )
|
||||
{
|
||||
char * animFlags = Con::getReturnBuffer(512);
|
||||
|
||||
|
|
@ -688,19 +688,19 @@ DefineConsoleMethod( Material, getAnimFlags, const char*, (U32 id), , "" )
|
|||
return animFlags;
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Material, getFilename, const char*, (),, "Get filename of material")
|
||||
DefineEngineMethod(Material, getFilename, const char*, (),, "Get filename of material")
|
||||
{
|
||||
SimObject *material = static_cast<SimObject *>(object);
|
||||
return material->getFilename();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, isAutoGenerated, bool, (),,
|
||||
DefineEngineMethod( Material, isAutoGenerated, bool, (),,
|
||||
"Returns true if this Material was automatically generated by MaterialList::mapMaterials()" )
|
||||
{
|
||||
return object->isAutoGenerated();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Material, setAutoGenerated, void, (bool isAutoGenerated), ,
|
||||
DefineEngineMethod( Material, setAutoGenerated, void, (bool isAutoGenerated), ,
|
||||
"setAutoGenerated(bool isAutoGenerated): Set whether or not the Material is autogenerated." )
|
||||
{
|
||||
object->setAutoGenerated(isAutoGenerated);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue