Exemplo n.º 1
0
        public GridAtom(AtomsGrid grid, int gridX, int gridY, int electrons)
            : base(grid.Contents, electrons)
        {
            if (grid == null)
            {
                throw new ArgumentNullException(nameof(grid));
            }

            _grid  = grid;
            _gridX = gridX;
            _gridY = gridY;
        }
Exemplo n.º 2
0
        public GridRenderer(AtomsGrid grid, GameSession session)
        {
            if (grid == null)
            {
                throw new ArgumentNullException(nameof(grid));
            }
            if (session == null)
            {
                throw new ArgumentNullException(nameof(session));
            }

            _grid    = grid;
            _session = session;
        }