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

Function print_job

plugins/workflow.cpp:1641–1665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1639}
1640
1641static void print_job(color_ostream &out, ProtectedJob *pj)
1642{
1643 if (!pj)
1644 return;
1645
1646 df::job *job = pj->isLive() ? pj->actual_job : pj->job_copy;
1647
1648 Job::printJobDetails(out, job);
1649
1650 if (job->job_type == job_type::MeltMetalObject &&
1651 isOptionEnabled(CF_AUTOMELT))
1652 {
1653 if (meltable_count <= 0)
1654 out.color(COLOR_CYAN);
1655 else if (pj->want_resumed && !pj->isActuallyResumed())
1656 out.color(COLOR_YELLOW);
1657 else
1658 out.color(COLOR_GREEN);
1659 out << " Meltable: " << meltable_count << " objects." << endl;
1660 out.reset_color();
1661 }
1662
1663 for (size_t i = 0; i < pj->constraints.size(); i++)
1664 print_constraint(out, pj->constraints[i], true, " ");
1665}
1666
1667static command_result workflow_cmd(color_ostream &out, vector <string> & parameters)
1668{

Callers 1

workflow_cmdFunction · 0.85

Calls 7

print_constraintFunction · 0.85
isLiveMethod · 0.80
isActuallyResumedMethod · 0.80
isOptionEnabledFunction · 0.70
colorMethod · 0.45
reset_colorMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected