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

Function spectate_addToHistory

plugins/spectate.cpp:612–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610};
611
612static void spectate_addToHistory(color_ostream &out, int32_t unit_id) {
613 DEBUG(control,out).print("entering spectate_addToHistory; unit_id={}\n", unit_id);
614 if (!df::unit::find(unit_id)) {
615 WARN(control,out).print("unit with id {} not found; not adding to history\n", unit_id);
616 return;
617 }
618 unit_history.add_to_history(out, unit_id);
619}
620
621DFHACK_PLUGIN_LUA_FUNCTIONS {
622 DFHACK_LUA_FUNCTION(spectate_setSetting),

Callers

nothing calls this directly

Calls 3

add_to_historyMethod · 0.80
findFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected