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

Function get_tile_dig_default

plugins/blueprint.cpp:278–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static const char * get_tile_dig_default(const df::coord &pos, df::tiletype *tt) {
279 switch (tileShape(*tt)) {
280 case df::tiletype_shape::WALL:
281 if (auto tmat = tileMaterial(*tt))
282 if (tmat == df::tiletype_material::TREE)
283 return "t";
284 return "d";
285 case df::tiletype_shape::STAIR_UP:
286 case df::tiletype_shape::STAIR_UPDOWN:
287 case df::tiletype_shape::RAMP:
288 return "z";
289 case df::tiletype_shape::SHRUB:
290 return "p";
291 default:
292 return "d";
293 }
294}
295
296static const char * get_tile_dig_designation(const df::coord &pos, const df::tile_dig_designation &tdd) {
297 switch (tdd) {

Callers 1

get_tile_dig_designationFunction · 0.85

Calls 2

tileShapeFunction · 0.85
tileMaterialFunction · 0.85

Tested by

no test coverage detected