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

Function get_constructed_track_str

plugins/blueprint.cpp:623–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623static const char * get_constructed_track_str(df::tiletype *tt,
624 const char * base) {
625 TileDirection dir = tileDirection(*tt);
626 if (!dir.whole)
627 return "~";
628
629 ostringstream str;
630 str << base;
631 if (dir.north) str << "N";
632 if (dir.south) str << "S";
633 if (dir.east) str << "E";
634 if (dir.west) str << "W";
635
636 return cache(str);
637}
638
639static const char * get_constructed_wall_str(df::coord pos) {
640 df::construction *c = Constructions::findAtTile(pos);

Callers 2

get_constructed_ramp_strFunction · 0.85

Calls 2

tileDirectionFunction · 0.85
cacheFunction · 0.85

Tested by

no test coverage detected