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

Function get_tile_dig_job

plugins/blueprint.cpp:320–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static const char * get_tile_dig_job(df::tile_designation *td, df::job *job) {
321 switch (job->job_type) {
322 case df::job_type::DigChannel:
323 return "h";
324 case df::job_type::Dig:
325 return "d";
326 case df::job_type::CarveUpwardStaircase:
327 return "u";
328 case df::job_type::CarveDownwardStaircase:
329 return "j";
330 case df::job_type::CarveUpDownStaircase:
331 return "i";
332 case df::job_type::CarveRamp:
333 return "r";
334 case df::job_type::FellTree:
335 return "t";
336 case df::job_type::GatherPlants:
337 return "p";
338 case df::job_type::RemoveStairs:
339 return "z";
340 default:
341 return NULL;
342 }
343}
344
345static const char * get_tile_dig(color_ostream &out, const df::coord &pos, const tile_context &) {
346 df::tile_designation *td = Maps::getTileDesignation(pos);

Callers 1

get_tile_digFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected