public static void loadFarmInformation() { #region Farm Layouts FarmLayouts.Add(new Layout { Name = "Standard", Image = "images/farms/standard.jpg", Icon = "images/farms/standardIcon.png" }); FarmLayouts.Add(new Layout { Name = "Riverland", Image = "images/farms/riverland.jpg", Icon = "images/farms/riverlandIcon.png" }); FarmLayouts.Add(new Layout { Name = "Forest", Image = "images/farms/forest.jpg", Icon = "images/farms/forestIcon.png" }); FarmLayouts.Add(new Layout { Name = "Hill-Top", Image = "images/farms/hilltop.jpg", Icon = "images/farms/hilltopIcon.png" }); FarmLayouts.Add(new Layout { Name = "Wilderness", Image = "images/farms/wilderness.jpg", Icon = "images/farms/wildernessIcon.png" }); #endregion TerrainObjects.Add(new Terrain { Name = "Grass", Image = "images/terrain/grass.png" }); TerrainObjects.Add(new Terrain { Name = "Amaranth", Image = "images/shippeditems/Amaranth.png" }); Resolutions.Add(50); Resolutions.Add(75); Resolutions.Add(100); }
public static Layout getLayout(string layoutName) { return(FarmLayouts.Where(n => n.Name == layoutName).FirstOrDefault()); }