コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #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();
 }