MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ToVector

Method ToVector

src/openrct2/entity/PatrolArea.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 std::vector<TileCoordsXY> PatrolArea::ToVector() const
123 {
124 std::vector<TileCoordsXY> result;
125 for (const auto& area : Areas)
126 {
127 for (const auto& pos : area.SortedTiles)
128 {
129 result.push_back(pos);
130 }
131 }
132 return result;
133 }
134
135 const PatrolArea& GetMergedPatrolArea(const StaffType type)
136 {

Callers 3

ReadWriteEntityMethod · 0.80
tiles_getMethod · 0.80
ShiftMapFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected