Exemplo n.º 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);
        }
Exemplo n.º 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;
        }