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

Method occ

plugins/fix-occupancy.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 df::tile_occupancy * occ(int32_t x, int32_t y, int32_t z) {
65 size_t off = get_offset(x, y, z);
66 if (off < size)
67 return &occ_buf[off];
68 return nullptr;
69 }
70 df::tile_occupancy * occ(const df::coord & pos) {
71 return occ(pos.x, pos.y, pos.z);
72 }

Callers 5

scan_buildingFunction · 0.80
scan_unitFunction · 0.80
scan_itemFunction · 0.80
fix_tileFunction · 0.80
fix_mapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected