MCPcopy Create free account
hub / github.com/DFHack/dfhack / designation

Class designation

plugins/dig-now.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51using namespace DFHack;
52
53struct 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
69namespace std {
70 template <>

Callers 1

loadMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected