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

Function ItemTypeInfo

library/include/modules/Items.h:69–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 public:
68 ItemTypeInfo(df::item_type type_ = df::enums::item_type::NONE, int16_t subtype_ = -1) { decode(type_, subtype_); }
69 template<class T> ItemTypeInfo(T *ptr) { decode(ptr); }
70
71 bool isValid() const { return (type != df::enums::item_type::NONE) && (subtype == -1 || custom); }
72

Callers 1

Items.hFile · 0.85

Calls 1

decodeFunction · 0.70

Tested by

no test coverage detected