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

Function get_building_custom_name

library/modules/Gui.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308static string get_building_custom_name(df::building_workshopst * bld) {
309 if (bld->type != df::workshop_type::Custom)
310 return "";
311 if (auto bld_def = vector_get(world->raws.buildings.workshops, bld->custom_type))
312 return bld_def->code + '/';
313 return "";
314}
315
316static string get_building_custom_name(df::building_furnacest * bld) {
317 if (bld->type != df::furnace_type::Custom)

Callers 1

Calls 1

vector_getFunction · 0.85

Tested by

no test coverage detected