MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ProcessElementLinks

Method ProcessElementLinks

PanzerChasm/server/map.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68template<class Func>
69void Map::ProcessElementLinks(
70 const MapData::IndexElement::Type element_type,
71 const unsigned int index,
72 const Func& func )
73{
74 for( const MapData::Link& link : map_data_->links )
75 {
76 const MapData::IndexElement& index_element= map_data_->map_index[ link.x + link.y * MapData::c_map_size ];
77
78 if( index_element.type == element_type && index_element.index == index )
79 func( link );
80 }
81}
82
83Map::Map(
84 const DifficultyType difficulty,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected