Esempio n. 1
0
        public static string EnumToString(this ItemColorType type)
        {
            switch (type)
            {
            case ItemColorType.Gray: return("9da2a6");

            case ItemColorType.LightGreen: return("4ab200");

            case ItemColorType.DarkGreen: return("0b8000");

            case ItemColorType.LightBlue: return("13b1bf");

            case ItemColorType.DarkBlue: return("2952cc");

            case ItemColorType.Purple: return("a82ee5");

            case ItemColorType.LightRed: return("e5457a");

            case ItemColorType.DarkRed: return("b21212");

            case ItemColorType.Gold: return("e5BF00");

            case ItemColorType.Brown: return("593c00");

            default: throw new ArgumentOutOfRangeException();
            }
        }
Esempio n. 2
0
 public Item(string _name, string _fileName, string _godItemTypes, string _itemColorType, string _mapTypes)
 {
     this.name          = _name;
     this.fileName      = _fileName;
     this.godItemType   = CreateGodItemTypeListFromString(_godItemTypes);
     this.itemColorType = ItemColorTypeFromString(_itemColorType);
     this.mapTypes      = CreateMapTypesListFromString(_mapTypes);
 }
Esempio n. 3
0
 /// <summary>
 /// Creates an instance of an Item
 /// </summary>
 /// <param name="_name">Name of the Item</param>
 /// <param name="_godItemType">The type Gods that are allowed to use this Item</param>
 /// <param name="_itemColorType">The damage color of the Item. Can be Damage/Hybrid/Defense/NoColor</param>
 /// <param name="_mapType">The maps the Item are allowed</param>
 public Item(string _name, string _fileName, GodType _godItemType, ItemColorType _itemColorType, MapTypes _mapType)
 {
     this.name        = _name;
     this.fileName    = _fileName;
     this.godItemType = new List <GodType>()
     {
         _godItemType
     };
     this.itemColorType = _itemColorType;
     this.mapTypes      = new List <MapTypes>()
     {
         _mapType
     };
 }