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

Function setSpecial

plugins/buildingplan/buildingplan.cpp:1056–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056static void setSpecial(color_ostream &out, df::building_type type, int16_t subtype, int32_t custom, string special, bool val) {
1057 DEBUG(control,out).print("entering setSpecial\n");
1058 BuildingTypeKey key(type, subtype, custom);
1059 auto &filters = get_item_filters(out, key);
1060 filters.setSpecial(special, val);
1061 Lua::CallLuaModuleFunction(out, "plugins.buildingplan", "signal_reset");
1062}
1063
1064static int getSpecials(lua_State *L) {
1065 color_ostream *out = Lua::GetOutput(L);

Callers

nothing calls this directly

Calls 4

get_item_filtersFunction · 0.85
CallLuaModuleFunctionFunction · 0.85
setSpecialMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected