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

Method getKey

plugins/buildingplan/defaultitemfilters.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace DFHack;
15
16BuildingTypeKey DefaultItemFilters::getKey(PersistentDataItem &filter_config) {
17 return BuildingTypeKey(
18 (df::building_type)filter_config.get_int(FILTER_CONFIG_TYPE),
19 filter_config.get_int(FILTER_CONFIG_SUBTYPE),
20 filter_config.get_int(FILTER_CONFIG_CUSTOM));
21}
22
23static int get_max_quality(const df::job_item *jitem) {
24 if (jitem->flags2.bits.building_material ||

Callers

nothing calls this directly

Calls 1

BuildingTypeKeyClass · 0.85

Tested by

no test coverage detected