public Texture(XElement e) { this.TexturePath = e.Element("Texture").Value; this.TexturePosAndSize = XmlConverter.ToRectangleF(e.Element("TextureCoordinates")); this.RGBA = XmlConverter.ToColor(e.Element("Color")); }