示例#1
0
        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());
        }
示例#2
0
 protected override SoilType GetType(AbstractBuildingTile tile) => tile.GetSoilType();
示例#3
0
        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());
        }
示例#4
0
        public MainScreenData GetScreenData(AbstractBuildingTile tile)
        {
            screenData.SetBuildingFoundationSoil(tile.GetBuildingType(), tile.GetFoundationType(), tile.GetSoilType());

            return(screenData);
        }