static ItemKind() { OFF_HAND = new ItemKind("OFF_HAND", "Off hand"); MAIN_HAND = new ItemKind("MAIN_HAND", "Main hand"); HEAD_GEAR = new ItemKind("HEAD_GEAR", "Head gear"); TORSO = new ItemKind("TORSO", "Torso"); LEGGINGS = new ItemKind("LEGGINGS", "Leggings"); BOOTS = new ItemKind("BOOTS", "Boots"); AMMO = new ItemKind("AMMO", "Ammo"); ANY = new ItemKind("ANY", "Any"); itemKinds.Add(OFF_HAND); itemKinds.Add(MAIN_HAND); itemKinds.Add(HEAD_GEAR); itemKinds.Add(TORSO); itemKinds.Add(LEGGINGS); itemKinds.Add(BOOTS); itemKinds.Add(AMMO); itemKinds.Add(ANY); }
/// <summary> /// Converts the string format item kind read by the content loader into an ItemKind object /// </summary> public void ConvertType() { itemKind = ItemKind.FromString(temp); }