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);
            }
        }
        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);
            }
        }