Beispiel #1
0
        public BlockLight(BlockLight bl)
        {
            _blockset = bl._blockset;

            _xdim = bl._xdim;
            _ydim = bl._ydim;
            _zdim = bl._zdim;

            _lightbit = new BitArray(_blockset.XDim * 3 * _blockset.ZDim * 3 * _blockset.YDim);
            _update = new Queue<BlockKey>();
        }
Beispiel #2
0
 /// <summary>
 /// Updates internal managers if underlying data, such as TileEntities, have been modified outside of the container.
 /// </summary>
 public void Refresh()
 {
     _lightManager = new BlockLight(this);
     _fluidManager = new BlockFluid(this);
     _tileEntityManager = new BlockTileEntities(_blocks, _tileEntities);
     _tileTickManager = new BlockTileTicks(_blocks, _tileTicks);
 }