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

Method bld

plugins/fix-occupancy.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 df::building ** bld(int32_t x, int32_t y, int32_t z) {
75 size_t off = get_offset(x, y, z);
76 if (off < size)
77 return &bld_buf[off];
78 return nullptr;
79 }
80 df::building ** bld(const df::coord & pos) {
81 return bld(pos.x, pos.y, pos.z);
82 }

Callers 3

scan_buildingFunction · 0.80
fix_tileFunction · 0.80
fix_mapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected