public void ProcessWidth(BGLayer bgl, XmlNode xnNode)
 {
     bgl.Width = Parse(out i, xnNode.InnerText);
 }
 /// <summary>
 /// Processes a StartPos node for its values and returns a Point.
 /// </summary>
 /// <param name="xnNode">A StartPos node to evaluate.</param>
 public void ProcessStartPos(BGLayer bgl, XmlNode xnNode)
 {
     XmlElement xe = (XmlElement)xnNode;
     Point p = new Point(0, 0);
     ProcessXPos(p, xe.GetElementsByTagName("xPos")[0]);
     ProcessYPos(p, xe.GetElementsByTagName("yPos")[0]);
     bgl.Position = p;
 }
 public void ProcessSpeedMod(BGLayer bgl, XmlNode xnNode)
 {
     bgl.RelativeSpeed = Parse(out i, xnNode.InnerText);
 }
 public void ProcessLayerNumber(BGLayer bgl, XmlNode xnNode)
 {
     bgl.LayerNumber = Parse(out i, xnNode.InnerText);
 }
 public BGLayer ProcessLayer(XmlNode xnNode)
 {
     XmlElement xe = (XmlElement)xnNode;
     BGLayer bgl = new BGLayer();
     ProcessLayerNumber(bgl, xe.GetElementsByTagName("layerNumber")[0]);
     ProcessStartPos(bgl, xe.GetElementsByTagName("startPos")[0]);
     ProcessWidth(bgl, xe.GetElementsByTagName("width")[0]);
     ProcessHeight(bgl, xe.GetElementsByTagName("height")[0]);
     ProcessSpeedMod(bgl, xe.GetElementsByTagName("speedmod")[0]);
     return bgl;
 }
 public void ProcessHeight(BGLayer bgl, XmlNode xnNode)
 {
     bgl.Height = Parse(out i, xnNode.InnerText);
 }