Ejemplo n.º 1
0
 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"));
 }
Ejemplo n.º 2
0
 public Texture(XElement e)
 {
     this.TexturePath       = e.Element("Texture").Value;
     this.TexturePosAndSize = XmlConverter.ToRectangleF(e.Element("TextureCoordinates"));
     this.RGBA = XmlConverter.ToColor(e.Element("Color"));
 }