private void HasSoil(AbstractBuildingTile tile, AbstractMarketManager manager) { BlockButtons(true, false, false); SetButton(foundationButton, () => manager.PutScreenInFocus(manager.Screens.FoundationBuyScreen)); SetButton(soilButton, () => manager.PutScreenInFocus(manager.Screens.SoilManageScreen)); screenData.SetBuildingFoundationSoil(false, false, true); SetText("NoBuilding!", "NoFoundation!", tile.GetSoilType().ToString()); }
protected override SoilType GetType(AbstractBuildingTile tile) => tile.GetSoilType();
private void HasBuilding(AbstractBuildingTile tile, AbstractMarketManager manager) { BlockButtons(false, false, false); SetButton(buildingButton, () => manager.PutScreenInFocus(manager.Screens.BuildingManageScreen)); SetButton(foundationButton, () => manager.PutScreenInFocus(manager.Screens.FoundationManageScreen)); SetButton(soilButton, () => manager.PutScreenInFocus(manager.Screens.SoilManageScreen)); screenData.SetBuildingFoundationSoil(true, true, true); SetText(tile.Building.BuildingType.ToString(), tile.GetFoundationType().ToString(), tile.GetSoilType().ToString()); }
public MainScreenData GetScreenData(AbstractBuildingTile tile) { screenData.SetBuildingFoundationSoil(tile.GetBuildingType(), tile.GetFoundationType(), tile.GetSoilType()); return(screenData); }