| 1350 | //========================================================================================================== |
| 1351 | |
| 1352 | void find() { |
| 1353 | // color_ostream_proxy out(Core::getInstance().getConsole()); |
| 1354 | embark_assist::defs::finders finder = {}; |
| 1355 | fields i = first_fields; |
| 1356 | |
| 1357 | while (true) { |
| 1358 | switch (i) { |
| 1359 | case fields::x_dim: |
| 1360 | finder.x_dim = state->plotinfo[static_cast<uint8_t>(i)]->current_value; |
| 1361 | break; |
| 1362 | |
| 1363 | case fields::y_dim: |
| 1364 | finder.y_dim = state->plotinfo[static_cast<uint8_t>(i)]->current_value; |
| 1365 | break; |
| 1366 | |
| 1367 | case fields::savagery_calm: |
| 1368 | finder.savagery[0] = |
| 1369 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1370 | break; |
| 1371 | |
| 1372 | case fields::savagery_medium: |
| 1373 | finder.savagery[1] = |
| 1374 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1375 | break; |
| 1376 | case fields::savagery_savage: |
| 1377 | finder.savagery[2] = |
| 1378 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1379 | break; |
| 1380 | |
| 1381 | case fields::good: |
| 1382 | finder.evilness[0] = |
| 1383 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1384 | break; |
| 1385 | |
| 1386 | case fields::neutral: |
| 1387 | finder.evilness[1] = |
| 1388 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1389 | break; |
| 1390 | |
| 1391 | case fields::evil: |
| 1392 | finder.evilness[2] = |
| 1393 | static_cast<embark_assist::defs::evil_savagery_values>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1394 | break; |
| 1395 | |
| 1396 | case fields::aquifer: |
| 1397 | finder.aquifer = |
| 1398 | static_cast<embark_assist::defs::aquifer_ranges>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1399 | break; |
| 1400 | |
| 1401 | case fields::min_river: |
| 1402 | finder.min_river = |
| 1403 | static_cast<embark_assist::defs::river_ranges>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1404 | break; |
| 1405 | |
| 1406 | case fields::max_river: |
| 1407 | finder.max_river = |
| 1408 | static_cast<embark_assist::defs::river_ranges>(state->plotinfo[static_cast<uint8_t>(i)]->current_value); |
| 1409 | break; |