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

Function write_meta_blueprint

plugins/blueprint.cpp:1515–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515static void write_meta_blueprint(color_ostream &out,
1516 map<string, ofstream*> &output_files,
1517 const blueprint_options &opts,
1518 const vector<string> & meta_phases,
1519 int32_t ordinal) {
1520 string fname;
1521 get_filename(fname, out, opts, meta_phases.front(), ordinal);
1522 ofstream &ofile = *output_files[fname];
1523
1524 ofile << "#meta label(";
1525 for (string phase : meta_phases) {
1526 ofile << phase;
1527 if (phase != meta_phases.back())
1528 ofile << "_";
1529 }
1530 ofile << ")" << endl;
1531
1532 for (string phase : meta_phases) {
1533 ofile << "/" << phase << endl;
1534 }
1535}
1536
1537static void ensure_building(const df::coord &pos, tile_context &ctx) {
1538 if (ctx.b)

Callers 1

do_transformFunction · 0.85

Calls 1

get_filenameFunction · 0.85

Tested by

no test coverage detected