Example #1
0
 public VoxelChunk(VoxelVolume volume, Coords coords)
 {
     Volume    = volume;
     Coords    = coords;
     Index     = Volume.Index;
     VoxelData = new UnmanagedArray3 <VoxelData>();
     Voxels    = new IndexedVoxels(this);
     LightData = new VoxelChunkLightData();
 }
Example #2
0
 public IndexedVoxels(VoxelChunk chunk)
 {
     _data  = chunk.VoxelData;
     _index = chunk.Index;
 }