MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / OnSelectAssignedObjects

Method OnSelectAssignedObjects

Editor/EntityProtLibDialog.cpp:505–526  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

503
504//////////////////////////////////////////////////////////////////////////
505void CEntityProtLibDialog::OnSelectAssignedObjects()
506{
507 CEntityPrototype *pItem = GetSelectedPrototype();
508 if (!pItem)
509 return;
510
511 CBaseObjectsArray objects;
512 GetIEditor()->GetObjectManager()->GetObjects( objects );
513 for (int i = 0; i < objects.size(); i++)
514 {
515 CBaseObject *pObject = objects[i];
516 if (pObject->IsKindOf(RUNTIME_CLASS(CProtEntityObject)))
517 {
518 CProtEntityObject *protEntity = (CProtEntityObject*)pObject;
519 if (protEntity->GetPrototype() != pItem)
520 continue;
521 if (pObject->IsHidden() || pObject->IsFrozen())
522 continue;
523 GetIEditor()->GetObjectManager()->SelectObject( pObject );
524 }
525 }
526}
527
528//////////////////////////////////////////////////////////////////////////
529void CEntityProtLibDialog::OnNotifyTreeRClick(NMHDR* pNMHDR, LRESULT* pResult)

Callers

nothing calls this directly

Calls 7

GetIEditorFunction · 0.85
GetObjectsMethod · 0.45
GetObjectManagerMethod · 0.45
sizeMethod · 0.45
IsHiddenMethod · 0.45
IsFrozenMethod · 0.45
SelectObjectMethod · 0.45

Tested by

no test coverage detected