Exemplo n.º 1
0
        public ObjectGroup(XmlNode node)
        {
            this.name = node.Attributes["name"].Value;
            this.objects = new List<MapObject>();

            XmlNodeList objectList = node.SelectNodes("object");

            foreach (XmlNode objectNode in objectList) {
                MapObject mapObject = new MapObject(objectNode);
                objects.Add(mapObject);
            }
        }
Exemplo n.º 2
0
        public ObjectGroup(XmlNode node)
        {
            this.name = node.Attributes["name"].Value;
            //this.width = int.Parse(node.Attributes["width"].Value);
            //this.height = int.Parse(node.Attributes["height"].Value);
            this.objects = new List<MapObject>();

            XmlNodeList objectList = node.SelectNodes("object");

            foreach (XmlNode objectNode in objectList) {
                MapObject mapObject = new MapObject(objectNode);
                objects.Add(mapObject);
            }
        }