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

Method isAnyCloth

library/modules/Materials.cpp:382–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382bool MaterialInfo::isAnyCloth() const
383{
384 using namespace df::enums::material_flags;
385
386 return material && (
387 material->flags.is_set(THREAD_PLANT) ||
388 material->flags.is_set(SILK) ||
389 material->flags.is_set(YARN)
390 );
391}
392
393bool MaterialInfo::matches(const df::job_material_category& cat) const
394{

Callers

nothing calls this directly

Calls 1

is_setMethod · 0.80

Tested by

no test coverage detected