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

Function is_suspendmanager_enabled

plugins/buildingplan/buildingplan.cpp:268–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268static bool is_suspendmanager_enabled(color_ostream &out) {
269 bool suspendmanager_enabled = false;
270 Lua::CallLuaModuleFunction(out, "plugins.buildingplan", "is_suspendmanager_enabled", {},
271 1, [&](lua_State *L){
272 suspendmanager_enabled = lua_toboolean(L, -1);
273 });
274 return suspendmanager_enabled;
275}
276
277DFhackCExport command_result plugin_load_world_data (color_ostream &out) {
278 mat_cache.clear();

Callers 3

do_cycleFunction · 0.85
addPlannedBuildingFunction · 0.85

Calls 2

CallLuaModuleFunctionFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected