예제 #1
0
 public IndexedVoxels(VoxelChunk chunk)
 {
     _data  = chunk.VoxelData;
     _index = chunk.Index;
 }
예제 #2
0
 public Enumerator(VoxelTypeIndex index)
 {
     _index  = index;
     _cursor = -1;
 }
예제 #3
0
 public VoxelData(VoxelType type, VoxelTypeIndex index)
     : this(new Voxel(type, 0), index)
 {
 }
예제 #4
0
 public VoxelData(VoxelType type, ushort data, VoxelTypeIndex index)
     : this(new Voxel(type, data), index)
 {
 }
예제 #5
0
 public VoxelData(Voxel voxel, VoxelTypeIndex index)
 {
     TypeIndex = index[voxel.Type];
     Data      = voxel.Data;
 }
예제 #6
0
 public Voxel(VoxelData data, VoxelTypeIndex index)
 {
     Type = index[data.TypeIndex];
     Data = data.Data;
 }