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