private EmberCell UnsetLightCell(int x, int y)
        {
            var cell = _grid.GetCell(x, y);

            cell.LightProperties.EmitsLight = false;
            _grid.SetCell(cell);
            return(cell);
        }
Esempio n. 2
0
        public void CanModifyCell()
        {
            var cell      = _grid.GetCell(0, 0);
            var prevValue = cell.Walkable;

            cell.Walkable = !cell.Walkable;
            _grid.SetCell(cell);

            Assert.AreEqual(!prevValue, _grid.GetCell(0, 0).Walkable);
        }