| 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 |