Пример #1
0
        private IceBlock CreateIceBlock(XElement node)
        {
            IceBlock newBlock = new IceBlock();

            newBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));
            newBlock.Texture       = TextureManager.Textures[node.Attribute("texture").Value];

            return(newBlock);
        }
Пример #2
0
        private IceBlock CreateIceBlock(XElement node)
        {
            IceBlock newBlock = new IceBlock();
            newBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y"));
            newBlock.Texture = TextureManager.Textures[node.Attribute("texture").Value];

            return newBlock;
        }