| 104 | |
| 105 | template<typename T> |
| 106 | static bool TryFindTreeInList(std::string_view id, const T& treeList) |
| 107 | { |
| 108 | for (size_t j = 0; j < std::size(treeList); j++) |
| 109 | { |
| 110 | if (treeList[j] == id) |
| 111 | return true; |
| 112 | } |
| 113 | return false; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Randomly places a selection of preset trees on the map. Picks the right tree for the terrain it is placing it on. |