public void save(InvestigationManagerData investigationManagerData) { foreach (Investigation i in m_invest.Values) { InvestigationData invData = new InvestigationData(); invData.ID = i.getID(); invData.Investigating = i.isInvestigating(); invData.Purchased = i.isPurchased(); investigationManagerData.InvestigationData.Add(invData); } }
public void load(InvestigationManagerData investigationManagerData) { foreach (InvestigationData invData in investigationManagerData.InvestigationData) { m_invest[invData.ID].setInvestigating(invData.Investigating); m_invest[invData.ID].setPurchased(invData.Purchased); if (invData.Purchased) { doInvestigatedEffect(invData.ID); } } }
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(); }