MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / AddBrushesForMapFile

Method AddBrushesForMapFile

neo/tools/compilers/aas/AASBuild.cpp:548–566  ·  view source on GitHub ↗

============ idAASBuild::AddBrushesForMapFile ============ */

Source from the content-addressed store, hash-verified

546============
547*/
548idBrushList idAASBuild::AddBrushesForMapFile( const idMapFile * mapFile, idBrushList brushList ) {
549 int i;
550
551 common->Printf( "[Brush Load]\n" );
552
553 brushList = AddBrushesForMapEntity( mapFile->GetEntity( 0 ), 0, brushList );
554
555 for ( i = 1; i < mapFile->GetNumEntities(); i++ ) {
556 const char *classname = mapFile->GetEntity( i )->epairs.GetString( "classname" );
557
558 if ( idStr::Icmp( classname, "func_aas_obstacle" ) == 0 ) {
559 brushList = AddBrushesForMapEntity( mapFile->GetEntity( i ), i, brushList );
560 }
561 }
562
563 common->Printf( "%6d brushes\n", brushList.Num() );
564
565 return brushList;
566}
567
568/*
569============

Callers

nothing calls this directly

Calls 5

GetNumEntitiesMethod · 0.80
PrintfMethod · 0.45
GetEntityMethod · 0.45
GetStringMethod · 0.45
NumMethod · 0.45

Tested by

no test coverage detected