| 565 | } |
| 566 | |
| 567 | DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) |
| 568 | { |
| 569 | // initialize labor infos table from default table |
| 570 | if (ARRAY_COUNT(default_labor_infos) != ENUM_LAST_ITEM(unit_labor) + 1) |
| 571 | return CR_FAILURE; |
| 572 | |
| 573 | // Fill the command list with your commands. |
| 574 | commands.push_back(PluginCommand( |
| 575 | "labormanager", |
| 576 | "Automatically manage dwarf labors.", |
| 577 | labormanager)); |
| 578 | |
| 579 | generate_labor_to_skill_map(); |
| 580 | |
| 581 | labor_mapper = new JobLaborMapper(); |
| 582 | |
| 583 | init_state(); |
| 584 | |
| 585 | return CR_OK; |
| 586 | } |
| 587 | |
| 588 | DFhackCExport command_result plugin_shutdown(color_ostream &out) |
| 589 | { |
nothing calls this directly
no test coverage detected