예제 #1
0
    public void load(CoopManagerData coopManagerData)
    {
        m_totalProduction.Level = coopManagerData.MilestoneLevels[0];
        m_ecology.Level         = coopManagerData.MilestoneLevels[1];
        m_expansion.Level       = coopManagerData.MilestoneLevels[2];
        m_anualProduction.Level = coopManagerData.MilestoneLevels[3];

        m_lastYearProduction   = coopManagerData.LastYearProduction;
        m_lastYearEcologyScore = coopManagerData.LastYearEcologyScore;
    }
예제 #2
0
    //in order: production, ecology, expansion, anualproduction
    public void save(CoopManagerData coopManagerData)
    {
        coopManagerData.MilestoneLevels.Add(m_totalProduction.Level);
        coopManagerData.MilestoneLevels.Add(m_ecology.Level);
        coopManagerData.MilestoneLevels.Add(m_expansion.Level);
        coopManagerData.MilestoneLevels.Add(m_anualProduction.Level);

        coopManagerData.LastYearProduction   = m_lastYearProduction;
        coopManagerData.LastYearEcologyScore = m_lastYearEcologyScore;
    }
예제 #3
0
 public GameSaveData()
 {
     ActionManagerData        = new ActionManagerData();
     BuildingManagerData      = new BuildingManagerData();
     TimeManagerData          = new TimeManagerData();
     CoopManagerData          = new CoopManagerData();
     UserDataManagerData      = new UserDataManagerData();
     InvestigationManagerData = new InvestigationManagerData();
     LogicManagerData         = new LogicManagerData();
     CanalManagerData         = new CanalManagerData();
     PenalizationManagerData  = new PenalizationManagerData();
     PhaseManagerData         = new PhaseManagerData();
     PlagueManagerData        = new PlagueManagerData();
     RankingManagerData       = new RankingManagerData();
     RiceObjectManagerData    = new RiceObjectManagerData();
     WeedFactoryData          = new WeedFactoryData();
     WorkerManagerData        = new WorkerManagerData();
     WorldTerrainData         = new WorldTerrainData();
     tutorialManagerData      = new TutorialManagerData();
 }