Skip to main content

idmangler_lib/types/
itemtype.rs

1use crate::macros::numbered_enum;
2
3numbered_enum! {
4    /// Enum for encoding the type of an item the idstring represents
5    #[repr(u8)]
6    pub enum ItemType {
7        Gear = 0,
8        Tome = 1,
9        Charm = 2,
10        CraftedGear = 3,
11        CraftedConsu = 4,
12    }
13
14    #[error("Invalid item type id:`{0}`")]
15    etype BadItemType;
16}