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

Method BlockGrid

plugins/3dveins.cpp:217–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 std::vector<T> buf;
216public:
217 BlockGrid(df::coord size) : dim(size) {
218 buf.resize(dim.x * dim.y * dim.z);
219 }
220 BlockGrid(df::coord2d size, int zdepth = 1)
221 : dim(df::coord(size.x, size.y, zdepth))
222 {

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected