| 67 | |
| 68 | template<typename T> |
| 69 | std::vector<T*> BuildListManual(const CoordsXY& pos) |
| 70 | { |
| 71 | std::vector<T*> res; |
| 72 | |
| 73 | TileElement* element = MapGetFirstElementAt(pos); |
| 74 | if (element == nullptr) |
| 75 | return res; |
| 76 | |
| 77 | do |
| 78 | { |
| 79 | if constexpr (!std::is_same_v<T, TileElement>) |
| 80 | { |
| 81 | auto* el = element->as<T>(); |
| 82 | if (el) |
| 83 | res.push_back(el); |
| 84 | } |
| 85 | else |
| 86 | { |
| 87 | res.push_back(element); |
| 88 | } |
| 89 | |
| 90 | } while (!(element++)->isLastForTile()); |
| 91 | |
| 92 | return res; |
| 93 | } |
| 94 | |
| 95 | template<typename T> |
| 96 | std::vector<T*> BuildListByView(const CoordsXY& pos) |
nothing calls this directly
no test coverage detected