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

Function get_tile_build

plugins/blueprint.cpp:1063–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063static const char * get_tile_build(color_ostream &out, const df::coord &pos, const tile_context &ctx) {
1064 if (!ctx.b || ctx.b->getType() == building_type::Stockpile) {
1065 return NULL;
1066 }
1067
1068 bool add_size = false;
1069 const char *keys = get_build_keys(pos, ctx, add_size);
1070
1071 if (!add_size)
1072 return keys;
1073 return add_expansion_syntax(ctx, keys);
1074}
1075
1076static string quotify_inner(const string &s) {
1077 if (s.find_first_of(" ,") == string::npos)

Callers

nothing calls this directly

Calls 3

get_build_keysFunction · 0.85
add_expansion_syntaxFunction · 0.85
getTypeMethod · 0.80

Tested by

no test coverage detected