MCPcopy Create free account
hub / github.com/DFHack/dfhack / preliminary_world_match

Function preliminary_world_match

plugins/embark-assistant/matcher.cpp:2656–2671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2654 //=======================================================================================
2655
2656 uint32_t preliminary_world_match(embark_assist::defs::world_tile_data *survey_results,
2657 embark_assist::defs::finders *finder,
2658 embark_assist::defs::match_results *match_results) {
2659// color_ostream_proxy out(Core::getInstance().getConsole());
2660 uint32_t count = 0;
2661 for (uint16_t i = 0; i < world->worldgen.worldgen_parms.dim_x; i++) {
2662 for (uint16_t k = 0; k < world->worldgen.worldgen_parms.dim_y; k++) {
2663 match_results->at(i).at(k).preliminary_match =
2664 world_tile_match(survey_results, i, k, finder);
2665 if (match_results->at(i).at(k).preliminary_match) count++;
2666 match_results->at(i).at(k).contains_match = false;
2667 }
2668 }
2669
2670 return count;
2671 }
2672
2673 //=======================================================================================
2674

Callers 1

findMethod · 0.85

Calls 1

world_tile_matchFunction · 0.85

Tested by

no test coverage detected