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

Class offset

plugins/suspendmanager.cpp:194–197  ·  view source on GitHub ↗

using offset = std::tuple woud be preferable However, tuple has non-public members and therefore tuples cannot be template arguments.

Source from the content-addressed store, hash-verified

192// using offset = std::tuple<int,int,int> woud be preferable
193// However, tuple has non-public members and therefore tuples cannot be template arguments.
194struct offset {
195 int x,y,z;
196 constexpr offset(int _x, int _y, int _z) : x(_x), y(_y), z(_z) {};
197};
198
199inline coord operator+(coord pos, offset off) {
200 return coord(pos.x + off.x, pos.y + off.y, pos.z + off.z);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected