public S5Writing(XElement e) { this.FontPath = e.Element("Font").Element("FontName").Value; this.Text = new S5String(e.Element("String")); this.StringFrameDistance = float.Parse(e.Element("StringFrameDistance").Value); this.RGBA = XmlConverter.ToColor(e.Element("Color")); }
public Texture(XElement e) { this.TexturePath = e.Element("Texture").Value; this.TexturePosAndSize = XmlConverter.ToRectangleF(e.Element("TextureCoordinates")); this.RGBA = XmlConverter.ToColor(e.Element("Color")); }