MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / findItemByObjectId

Method findItemByObjectId

Engine/source/gui/controls/guiTreeViewCtrl.cpp:5326–5339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5324}
5325
5326S32 GuiTreeViewCtrl::findItemByObjectId(S32 iObjId)
5327{
5328 for (S32 i = 0; i < mItems.size(); i++)
5329 {
5330 if ( !mItems[i] )
5331 continue;
5332
5333 SimObject* pObj = mItems[i]->getObject();
5334 if( pObj && pObj->getId() == iObjId )
5335 return mItems[i]->mId;
5336 }
5337
5338 return -1;
5339}
5340
5341//------------------------------------------------------------------------------
5342DefineEngineMethod( GuiTreeViewCtrl, findItemByObjectId, S32, (S32 objectId), ,

Callers 15

GuiEditorTreeViewFunction · 0.80
forestEditorGui.csFile · 0.80
ForestEditorGuiFunction · 0.80
MeshRoadEditorGuiFunction · 0.80
RoadEditorGuiFunction · 0.80
TerrainMaterialDlgFunction · 0.80
EWCreatorWindowFunction · 0.80
RiverEditorGuiFunction · 0.80
GuiEditorTreeViewFunction · 0.80
forestEditorGui.csFile · 0.80
ForestEditorGuiFunction · 0.80
MeshRoadEditorGuiFunction · 0.80

Calls 3

sizeMethod · 0.45
getObjectMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected