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