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

Method decode

library/modules/Items.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 ITEM(FOOD, food, itemdef_foodst)
137
138bool ItemTypeInfo::decode(df::item_type type_, int16_t subtype_) {
139 type = type_;
140 subtype = subtype_;
141 custom = Items::getSubtypeDef(type_, subtype_);
142
143 return isValid();
144}
145
146bool ItemTypeInfo::decode(df::item *ptr) {
147 if (ptr)

Callers 3

get_item_type_strFunction · 0.45
getItemBaseValueMethod · 0.45
printJobDetailsMethod · 0.45

Calls 3

getTypeMethod · 0.80
isValidFunction · 0.50
decodeFunction · 0.50

Tested by

no test coverage detected