Example #1
0
 public ushort Add(VoxelProperties props)
 {
     if (voxels.Count > ushort.MaxValue)
     {
         throw new OutOfMemoryException("No more room for voxel types!");
     }
     voxels.Add(props);
     return((ushort)(voxels.Count - 1));
 }
 public ushort Add(VoxelProperties props)
 {
     if (voxels.Count > ushort.MaxValue) throw new OutOfMemoryException("No more room for voxel types!");
     voxels.Add(props);
     return (ushort)(voxels.Count - 1);
 }