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

Function command_result plugin_load_world_data

plugins/add-spatter.cpp:375–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375DFhackCExport command_result plugin_load_world_data (color_ostream &out) {
376 if (find_reactions(out)) {
377 out.print("Detected spatter add reactions - enabling plugin.\n");
378 enable_hooks(true);
379 }
380 else
381 enable_hooks(false);
382
383 return CR_OK;
384}
385
386DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
387{

Callers

nothing calls this directly

Calls 3

find_reactionsFunction · 0.70
enable_hooksFunction · 0.70
printMethod · 0.45

Tested by

no test coverage detected