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

Method decode

library/modules/Materials.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68using df::global::plotinfo;
69
70bool MaterialInfo::decode(df::item* item)
71{
72 if (!item)
73 return decode(-1);
74 else
75 return decode(item->getActualMaterial(), item->getActualMaterialIndex());
76}
77
78bool MaterialInfo::decode(const df::material_vec_ref& vr, int idx)
79{

Callers

nothing calls this directly

Calls 3

decodeFunction · 0.50
findFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected