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

Method getType

library/modules/Materials.cpp:646–662  ·  view source on GitHub ↗

type of material only so we know which vector to retrieve This is completely worthless now

Source from the content-addressed store, hash-verified

644// type of material only so we know which vector to retrieve
645// This is completely worthless now
646std::string Materials::getType(const t_material& mat)
647{
648 MaterialInfo mi(mat.mat_type, mat.mat_index);
649 switch (mi.mode)
650 {
651 case MaterialInfo::Builtin:
652 return "builtin";
653 case MaterialInfo::Inorganic:
654 return "inorganic";
655 case MaterialInfo::Creature:
656 return "creature";
657 case MaterialInfo::Plant:
658 return "plant";
659 default:
660 return "unknown";
661 }
662}

Callers 15

findRefMethod · 0.80
removeRefMethod · 0.80
decodeMethod · 0.80
setOwnerMethod · 0.80
getOuterContainerRefMethod · 0.80
getContainedItemsMethod · 0.80
getPositionMethod · 0.80
detachItemFunction · 0.80
get_war_multiplierFunction · 0.80

Calls

no outgoing calls

Tested by 1

estimate_undergroundFunction · 0.64