* Get total number of industries existing in the game. * @return Number of industries currently in the game. */
| 2413 | * @return Number of industries currently in the game. |
| 2414 | */ |
| 2415 | static uint GetCurrentTotalNumberOfIndustries() |
| 2416 | { |
| 2417 | uint total = 0; |
| 2418 | for (const auto &industries : Industry::industries) { |
| 2419 | total += static_cast<uint16_t>(std::size(industries)); |
| 2420 | } |
| 2421 | return total; |
| 2422 | } |
| 2423 | |
| 2424 | |
| 2425 | /** Reset the entry. */ |
no test coverage detected