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

Function doInfiniteSky

plugins/infinite-sky.cpp:252–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void doInfiniteSky(color_ostream &out, int32_t quantity) {
253 addBlockColumns(out, quantity);
254
255 for (auto& invasion : plotinfo->invasions.list) {
256 updateInvasionMap(out, world->map.z_count, invasion->map);
257 }
258 for (auto& entity : world->entities.all) {
259 for (auto& map : entity->plot_invasion_map) {
260 if (map->site_id != plotinfo->site_id)
261 continue;
262 updateInvasionMap(out, world->map.z_count, map->map);
263 }
264 }
265}
266
267struct infinitesky_options {
268 // whether to display help

Callers 2

constructionEventHandlerFunction · 0.85
infiniteSkyFunction · 0.85

Calls 2

addBlockColumnsFunction · 0.85
updateInvasionMapFunction · 0.85

Tested by

no test coverage detected