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; }
//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; }
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(); }