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

Method matches

plugins/buildingplan/itemfilter.cpp:144–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144bool ItemFilter::matches(df::dfhack_material_category mask) const {
145 return mask.whole & mat_mask.whole;
146}
147
148bool ItemFilter::matches(DFHack::MaterialInfo &material) const {
149 for (auto &mat : materials)

Callers 6

cache_matchedFunction · 0.45
setMaterialMaskFilterFunction · 0.45
setMaterialFilterFunction · 0.45
getMaterialFilterFunction · 0.45
matchesMaskFunction · 0.45
matchesFiltersFunction · 0.45

Calls 5

matchesMaskFunction · 0.85
MaterialInfoClass · 0.50
matchesClass · 0.50
printMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected