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

Function get_building_size

plugins/blueprint.cpp:681–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681static pair<uint32_t, uint32_t> get_building_size(const df::building *b) {
682 return pair<uint32_t, uint32_t>(b->x2 - b->x1 + 1, b->y2 - b->y1 + 1);
683}
684
685static const char * if_pretty(const tile_context &ctx, const char *c) {
686 return ctx.pretty ? c : NULL;

Callers 1

add_expansion_syntaxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected