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

Function matches

library/include/modules/Materials.h:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 df::craft_material_class getCraftClass();
149
150 bool matches(const MaterialInfo& mat) const
151 {
152 if (!mat.isValid()) return true;
153 return (type == mat.type) &&
154 (mat.index == -1 || index == mat.index);
155 }
156
157 bool matches(const df::job_material_category& cat) const;
158 bool matches(const df::dfhack_material_category& cat) const;

Callers 3

matchesMethod · 0.50
matchesMethod · 0.50
linked_list_removeFunction · 0.50

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected