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

Function constructionEventHandler

plugins/infinite-sky.cpp:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130void doInfiniteSky(color_ostream& out, int32_t howMany);
131
132static void constructionEventHandler(color_ostream &out, void *ptr) {
133 df::construction *constr = (df::construction *)ptr;
134
135 if (constr->pos.z >= world->map.z_count_block - 2)
136 doInfiniteSky(out, 1);
137}
138
139void addBlockColumns(color_ostream& out, int32_t quantity) {
140 int32_t z_count_block = world->map.z_count_block;

Callers

nothing calls this directly

Calls 1

doInfiniteSkyFunction · 0.85

Tested by

no test coverage detected