| 191 | } |
| 192 | |
| 193 | DFhackCExport command_result plugin_onupdate(color_ostream &out) { |
| 194 | if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS) { |
| 195 | int32_t designated = do_cycle(out); |
| 196 | if (0 < designated) |
| 197 | out.print("autochop: designated {} tree(s) for chopping\n", designated); |
| 198 | } |
| 199 | return CR_OK; |
| 200 | } |
| 201 | |
| 202 | static command_result do_command(color_ostream &out, vector<string> ¶meters) { |
| 203 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |