Esempio n. 1
0
    public ScenarioSave(ScenarioController s)
    {
        openedVictory = s.openedVictory;
        timeDelta     = s.timeDelta;

        HousingLevels = s.HousingLevels;

        Prosperity = s.Prosperity;

        level    = CampaignManager.currentLevel;
        campaign = CampaignManager.currentCampaign;

        goals = s.goals;
    }
Esempio n. 2
0
    public void Load(ScenarioSave s)
    {
        openedVictory = s.openedVictory;
        timeDelta     = s.timeDelta;

        HousingLevels = s.HousingLevels;

        Prosperity = s.Prosperity;

        goals = s.goals;

        if (CampaignManager.currentLevel == -1)
        {
            CampaignManager.currentLevel    = s.level;
            CampaignManager.currentCampaign = s.campaign;
        }
    }