Sources/CcgDump/CryBoneDesc.cpp
//! Performs post-initialization. This step is requred to initialize the pPhysGeom of the bones
//! After the bone has been loaded but before it is first used. When the bone is first loaded, pPhysGeom
//!   is set to the value equal to the chunk id in the file where the physical geometry (BoneMesh) chunk is kept.
//! After those chunks are loaded, and chunk ids are mapped to the registered physical geometry objects,
//!   call this function to replace pPhysGeom chunk ids with the actual physical geometry object pointers.
//! RETURNS:
//    true if the corresponding physical geometry object has been found
//!	NOTE:
//!	The entries of the map that were used are deleted

Performs post-initialization. This step is requred to initialize the pPhysGeom of the bones
After the bone has been loaded but before it is first used. When the bone is first loaded, pPhysGeom
is set to the value equal to the chunk id in the file where the physical geometry (BoneMesh) chunk is kept.
After those chunks are loaded, and chunk ids are mapped to the registered physical geometry objects,
call this function to replace pPhysGeom chunk ids with the actual physical geometry object pointers.
RETURNS:
true if the corresponding physical geometry object has been found
NOTE:
The entries of the map that were used are deleted
Performs post - initialization . This step is requred to initialize the pPhysGeom of the bones After the bone has been loaded but before it is first used . When the bone is first loaded pPhysGeom is set to the value equal to the chunk id in the file where the physical geometry ( BoneMesh ) chunk is kept . After those chunks are loaded and chunk ids are mapped to the registered physical geometry objects call this function to replace pPhysGeom chunk ids with the actual physical geometry object pointers . RETURNS : true if the corresponding physical geometry object has been found NOTE : The entries of the map that were used are deleted
bool CryBoneDesc::PostInitPhysGeom (ChunkIdToPhysGeomMap& mapChunkIdToPhysGeom, int nLodLevel)
{
	phys_geometry*& pPhysGeom = m_PhysInfo[nLodLevel].pPhysGeom;
	ChunkIdToPhysGeomMap::iterator it = mapChunkIdToPhysGeom.find ((INT_PTR)pPhysGeom);
	if (it != mapChunkIdToPhysGeom.end()) 
	{
		pPhysGeom = it->second;
		mapChunkIdToPhysGeom.erase (it);
		return true;
	} 
	else
	{
		pPhysGeom = NULL;
		return false;
	}
}
bool CryBoneDesc :: PostInitPhysGeom ( ChunkIdToPhysGeomMap & mapChunkIdToPhysGeom , int nLodLevel ) { phys_geometry * & pPhysGeom = m_PhysInfo [ nLodLevel ] . pPhysGeom ; ChunkIdToPhysGeomMap :: iterator it = mapChunkIdToPhysGeom . find ( ( INT_PTR ) pPhysGeom ) ; if ( it != mapChunkIdToPhysGeom . end ( ) ) { pPhysGeom = it -> second ; mapChunkIdToPhysGeom . erase ( it ) ; return true ; } else { pPhysGeom = NULL ; return false ; } }
Performs post-initialization.
Performs post - initialization .
// remap the chunk id to the actual pointer to the geometry
