Beispiel #1
0
 public bool IsBuildDesignation(Voxel v)
 {
     return(BuildDesignations.SelectMany(room => room.VoxelOrders).Any(buildDesignation => buildDesignation.Voxel.Equals(v)));
 }
Beispiel #2
0
 public BuildVoxelOrder GetBuildDesignation(VoxelHandle v)
 {
     return(BuildDesignations.SelectMany(room => room.VoxelOrders).FirstOrDefault(buildDesignation => buildDesignation.Voxel == v));
 }
Beispiel #3
0
 public BuildVoxelOrder GetBuildDesignation(Voxel v)
 {
     return(BuildDesignations.SelectMany(room => room.VoxelOrders).FirstOrDefault(buildDesignation => (buildDesignation.Voxel.Position - v.Position).LengthSquared() < 0.1f));
 }
Beispiel #4
0
 public bool IsBuildDesignation(VoxelHandle v)
 {
     return(BuildDesignations.SelectMany(room => room.VoxelOrders).Any(buildDesignation => buildDesignation.Voxel == v));
 }