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

Function get_tile_dig_designation

plugins/blueprint.cpp:296–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static const char * get_tile_dig_designation(const df::coord &pos, const df::tile_dig_designation &tdd) {
297 switch (tdd) {
298 case df::tile_dig_designation::Default:
299 if (auto tt = Maps::getTileType(pos))
300 return get_tile_dig_default(pos, tt);
301 return NULL;
302 case df::tile_dig_designation::UpDownStair:
303 return "i";
304 case df::tile_dig_designation::Channel:
305 return "h";
306 case df::tile_dig_designation::Ramp:
307 return "r";
308 case df::tile_dig_designation::DownStair:
309 if (auto tt = Maps::getTileType(pos))
310 if (tileShape(*tt) == tiletype_shape::STAIR_UP)
311 return "i";
312 return "j";
313 case df::tile_dig_designation::UpStair:
314 return "u";
315 default:
316 return NULL;
317 }
318}
319
320static const char * get_tile_dig_job(df::tile_designation *td, df::job *job) {
321 switch (job->job_type) {

Callers 1

get_tile_digFunction · 0.85

Calls 3

getTileTypeFunction · 0.85
get_tile_dig_defaultFunction · 0.85
tileShapeFunction · 0.85

Tested by

no test coverage detected