MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_load_site_data

Function command_result plugin_load_site_data

plugins/autolabor/autolabor.cpp:716–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714static int32_t cycle_timestamp = 0; // world->frame_counter at last cycle
715
716DFhackCExport command_result plugin_load_site_data (color_ostream &out) {
717 cycle_timestamp = 0;
718 cleanup_state();
719 init_state();
720 return CR_OK;
721}
722
723DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
724{

Callers

nothing calls this directly

Calls 2

cleanup_stateFunction · 0.70
init_stateFunction · 0.70

Tested by

no test coverage detected