public Item(uint id, string name, RareGrade g, uint expId, uint cd, string iconName) { Id = id; Name = name; RareGrade = g; ExpId = expId; Cooldown = cd; IconName = iconName; }
public static string GradeToColorString(RareGrade g) { switch (g) { case RareGrade.Common: return(R.Colors.ItemCommonColor.ToHex()); case RareGrade.Uncommon: return(R.Colors.ItemUncommonColor.ToHex()); case RareGrade.Rare: return(R.Colors.ItemRareColor.ToHex()); case RareGrade.Superior: return(R.Colors.ItemSuperiorColor.ToHex()); default: return(""); } }