public static AnimatedTileTemplate ParseXML(XmlNode animatedTileXML) { AnimatedTileTemplate animatedTileTemplate = new AnimatedTileTemplate(); animatedTileTemplate.FrameCount = uint.Parse(animatedTileXML.Attributes["frameCount"].Value); animatedTileTemplate.SheetIndex = uint.Parse(animatedTileXML.Attributes["sheetIndex"].Value); animatedTileTemplate.Width = uint.Parse(animatedTileXML.Attributes["width"].Value); animatedTileTemplate.Height = uint.Parse(animatedTileXML.Attributes["height"].Value); animatedTileTemplate.TileSetName = animatedTileXML.Attributes["tileset"].Value; return(animatedTileTemplate); }
public static AnimatedTileTemplate ParseXML(XmlNode animatedTileXML) { AnimatedTileTemplate animatedTileTemplate = new AnimatedTileTemplate(); animatedTileTemplate.FrameCount = uint.Parse(animatedTileXML.Attributes["frameCount"].Value); animatedTileTemplate.SheetIndex = uint.Parse(animatedTileXML.Attributes["sheetIndex"].Value); animatedTileTemplate.Width = uint.Parse(animatedTileXML.Attributes["width"].Value); animatedTileTemplate.Height = uint.Parse(animatedTileXML.Attributes["height"].Value); animatedTileTemplate.TileSetName = animatedTileXML.Attributes["tileset"].Value; return animatedTileTemplate; }