Exemple #1
0
        public CNodes(XmlNode _parent)
        {
            XmlNodeList nodeList;

            nodeList = _parent.SelectNodes("Node");

            foreach (XmlNode Item in nodeList)
            {
                CGameObjects gameObjects = new CGameObjects(Item);

                m_ListNodes.Add(new CNode(Convert.ToInt32(Item.Attributes["ID"].Value), Convert.ToInt32(Item.Attributes["X"].Value), Convert.ToInt32(Item.Attributes["Y"].Value), Convert.ToInt32(Item.Attributes["Width"].Value), Convert.ToInt32(Item.Attributes["Height"].Value), gameObjects.ListObjects));
            }
        }
        public CNodes(XmlNode _parent)
        {
            XmlNodeList nodeList;
            nodeList = _parent.SelectNodes("Node");

            foreach (XmlNode Item in nodeList)
            {
                CGameObjects gameObjects = new CGameObjects(Item);

                m_ListNodes.Add(new CNode(Convert.ToInt32(Item.Attributes["ID"].Value), Convert.ToInt32(Item.Attributes["X"].Value), Convert.ToInt32(Item.Attributes["Y"].Value), Convert.ToInt32(Item.Attributes["Width"].Value), Convert.ToInt32(Item.Attributes["Height"].Value), gameObjects.ListObjects));
            }
        }