public Item(float x, float y, ItemEffect effect, string fileName) { var strings = File.ReadAllLines("Items/" + fileName); _form = new RectangleF(x, y, float.Parse(strings[0]), float.Parse(strings[1])); _texture = int.Parse(strings[2]); _effect = effect; _name = strings[3]; }