MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setFile

Method setFile

Engine/source/terrain/terrData.cpp:347–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347bool TerrainBlock::setFile( const FileName &terrFileName )
348{
349 if ( mTerrainAsset && mTerrainAsset->getTerrainFilePath() == StringTable->insert(terrFileName) )
350 return mFile != NULL;
351
352 Resource<TerrainFile> file = ResourceManager::get().load( terrFileName );
353 if( !file )
354 return false;
355
356 setFile( file );
357 setMaskBits( FileMask | HeightMapChangeMask );
358
359 return true;
360}
361
362void TerrainBlock::setFile(const Resource<TerrainFile>& terr)
363{

Callers 1

terrImport.cppFile · 0.45

Calls 11

getTerrainFilePathMethod · 0.80
preloadMaterialsMethod · 0.80
getFunction · 0.50
errorfFunction · 0.50
insertMethod · 0.45
loadMethod · 0.45
removeMethod · 0.45
saveMethod · 0.45
getChecksumMethod · 0.45
setMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected