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