Пример #1
0
    public void CreateBuilding(string name)
    {
        Building building = buildings.Find(x => x.Name == name);

        if (building.BuildingTypeId == "Production")
        {
            placedBuildings.Add(buildingService.GetViewById(building.Id));
        }
        CalculateRemainingRessources(building);
    }