private IEnumerable <ShrineCell> ShrineCells() => HexList.Items.Cast <HexItem>().Where(o => TileHelper.GetTileType(o) == TileType.Shrine).Select(o => new ShrineCell { Row = Grid.GetRow(o), Col = Grid.GetColumn(o), Content = (o.Content as TextBlock)?.Text, PrestigeMultiplier = TileHelper.GetPrestigeMultiplier(o), FoodMultiplier = TileHelper.GetFoodMultiplier(o), FoodCartMultiplier = TileHelper.GetFoodCartMultiplier(o), WoodMultiplier = TileHelper.GetWoodMultiplier(o), WoodCartMultiplier = TileHelper.GetWoodCartMultiplier(o), ScienceMultiplier = TileHelper.GetScienceMultiplier(o), AllCartMultiplier = TileHelper.GetAllCartMultiplier(o), ForagingHutMultiplier = TileHelper.GetForagingHutMultiplier(o) });
internal IEnumerable <HexCell> CellsOfType(TileType t) => HexList.Items.Cast <HexItem>().Where(o => TileHelper.GetTileType(o) == t).Select(o => new HexCell { Row = Grid.GetRow(o), Col = Grid.GetColumn(o) });