Esempio n. 1
0
        public bool SetSkyLight(int x, int y, int z, int light)
        {
            IChunk chunk = _chunkCache.GetChunk(new ChunkCoord(x >> 4, z >> 4));
            bool   r     = chunk.SetSkyLight(x & 15, y, z & 15, light);

            chunk.IsModified = true;
            RelightCheck();
            return(r);
        }
Esempio n. 2
0
 private void SetUpperVoxels(IChunk chunk)
 {
     for (int x = 0; x < Chunk.Width; x++)
     {
         for (int z = 0; z < Chunk.Depth; z++)
         {
             for (int y = chunk.MaxHeight + 1; y < Chunk.Height; y++)
             {
                 chunk.SetSkyLight(new Coordinates3D(x, y, z), 15);
             }
         }
     }
 }
Esempio n. 3
0
 private void SetUpperVoxels(IChunk chunk)
 {
     for (int x = 0; x < Chunk.Width; x++)
     for (int z = 0; z < Chunk.Depth; z++)
     for (int y = chunk.MaxHeight + 1; y < Chunk.Height; y++)
         chunk.SetSkyLight(new Coordinates3D(x, y, z), 15);
 }