| 51 | using namespace DFHack; |
| 52 | |
| 53 | struct designation{ |
| 54 | df::coord pos; |
| 55 | df::tile_designation type; |
| 56 | df::tile_occupancy occupancy; |
| 57 | designation() = default; |
| 58 | designation(const df::coord &c, const df::tile_designation &td, const df::tile_occupancy &to) : pos(c), type(td), occupancy(to) {} |
| 59 | |
| 60 | bool operator==(const designation &rhs) const { |
| 61 | return pos == rhs.pos; |
| 62 | } |
| 63 | |
| 64 | bool operator!=(const designation &rhs) const { |
| 65 | return !(rhs == *this); |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | namespace std { |
| 70 | template <> |