Prototype/Source/Prototype/Private/Task_UpdateMap.cpp
/* Merges given map data with onboard map.
*/
Merges given map data with onboard map.
Merges given map data with onboard map .
void AUSARAgent::TakeMapData(const TArray<FGridStruct> sharedMap)
{
    for (FGridStruct sharedGrid : sharedMap) {
        bool isNewGrid;
        FGridStruct* grid = sharedGrid.InsertInMap(envMap, isNewGrid);
        if (!isNewGrid) {
            grid->Combine(sharedGrid);
        }
    }
}
void AUSARAgent :: TakeMapData ( const TArray < FGridStruct > sharedMap ) { for ( FGridStruct sharedGrid : sharedMap ) { bool isNewGrid ; FGridStruct * grid = sharedGrid . InsertInMap ( envMap , isNewGrid ) ; if ( ! isNewGrid ) { grid -> Combine ( sharedGrid ) ; } } }
Merges given map data with onboard map.
Merges given map data with onboard map .