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

Method set_mode

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

Source from the content-addressed store, hash-verified

119 labor_mode mode() { return (labor_mode) config.ival(0); }
120
121 void set_mode(labor_mode mode) { config.ival(0) = mode; }
122
123 int minimum_dwarfs() { return config.ival(1); }
124 void set_minimum_dwarfs(int minimum_dwarfs) { config.ival(1) = minimum_dwarfs; }

Callers 5

GetWorldInfoFunction · 0.80
CopyBuildingsFunction · 0.80
GetUnitListInsideFunction · 0.80
reset_laborFunction · 0.80
autolaborFunction · 0.80

Calls 1

ivalMethod · 0.80

Tested by

no test coverage detected