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

Method setMaterials

plugins/buildingplan/itemfilter.cpp:136–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void ItemFilter::setMaterials(const set<DFHack::MaterialInfo> &materials) {
137 this->materials = materials;
138}
139
140static bool matchesMask(DFHack::MaterialInfo &mat, df::dfhack_material_category mat_mask) {
141 return mat_mask.whole ? mat.matches(mat_mask) : true;

Callers 3

scanAvailableItemsFunction · 0.80
setMaterialMaskFilterFunction · 0.80
setMaterialFilterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected