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

Method LoadObjects

Editor/Objects/ObjectManager.cpp:1628–1642  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1626
1627//////////////////////////////////////////////////////////////////////////
1628void CObjectManager::LoadObjects( CObjectArchive &objectArchive,bool bSelect )
1629{
1630 XmlNodeRef objectsNode = objectArchive.node;
1631 int numObjects = objectsNode->getChildCount();
1632 for (int i = 0; i < numObjects; i++)
1633 {
1634 objectArchive.node = objectsNode->getChild(i);
1635 CBaseObject *obj = objectArchive.LoadObject( objectsNode->getChild(i) );
1636 if (obj && bSelect)
1637 SelectObject( obj );
1638 }
1639 objectArchive.ResolveObjects();
1640
1641 InvalidateVisibleList();
1642}
1643
1644//////////////////////////////////////////////////////////////////////////
1645void CObjectManager::Export( const CString &levelPath,XmlNodeRef &rootNode,bool onlyShared )

Callers

nothing calls this directly

Calls 4

ResolveObjectsMethod · 0.80
getChildCountMethod · 0.45
getChildMethod · 0.45
LoadObjectMethod · 0.45

Tested by

no test coverage detected