Esempio n. 1
0
 public SpecialItem(ItemTypeSpriteEnum itemType, int quantity, string longName, string shortName) :
     base(quantity, longName, shortName, (int)itemType)
 {
     ItemType = itemType;
 }
Esempio n. 2
0
        public static ItemTypeEnum GetItemOffset(ItemTypeSpriteEnum itemTypeSpriteEnum)
        {
            ItemTypeEnum itemType = (ItemTypeEnum)Enum.Parse(typeof(ItemTypeEnum), itemTypeSpriteEnum.ToString());

            return(itemType);
        }