Struct SerializableVoxelIndex
- Namespace
- GridForge.Configuration
Unity-serializable topology-local voxel index.
[Serializable]
public struct SerializableVoxelIndex
- Inherited Members
Constructors
SerializableVoxelIndex(int, int, int)
Creates a serializable topology-local voxel index.
public SerializableVoxelIndex(int x, int y, int z)
Parameters
Properties
X
Gets the local X index.
public readonly int X { get; }
Property Value
Y
Gets the local Y index.
public readonly int Y { get; }
Property Value
Z
Gets the local Z index.
public readonly int Z { get; }
Property Value
Methods
FromVoxelIndex(VoxelIndex)
Creates a serializable value from a runtime voxel index.
public static SerializableVoxelIndex FromVoxelIndex(VoxelIndex index)
Parameters
indexVoxelIndexThe runtime voxel index.
Returns
- SerializableVoxelIndex
The serializable index.
ToVoxelIndex()
Converts this value to a runtime voxel index.
public readonly VoxelIndex ToVoxelIndex()
Returns
- VoxelIndex
The runtime voxel index.