public static Place HasPlace(Place.GridRef gridRef) { try { return(places.First(p => p.gridRefX == gridRef.x && p.gridRefZ == gridRef.z)); } catch (InvalidOperationException) { return(null); } }
public static Place GetPlaceAt(Place.GridRef gridRef) { return(places.Where(p => p.PlaceGridRef == gridRef) as Place); }