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