Esempio n. 1
0
 public void load(WeedFactoryData weedFactoryData)
 {
     foreach (KeyValuePair <int, List <uint> > weed in weedFactoryData.CurrentWeed)
     {
         _currentWeed.Add(weed.Key, new HashSet <uint>());
         foreach (uint value in weed.Value)
         {
             _currentWeed[weed.Key].Add(value);
         }
     }
 }
Esempio n. 2
0
 public void save(WeedFactoryData weedFactoryData)
 {
     //weedFactoryData.CurrentWeed.Clear();
     foreach (KeyValuePair <int, HashSet <uint> > weed in _currentWeed)
     {
         weedFactoryData.CurrentWeed.Add(weed.Key, new List <uint>());
         foreach (uint value in weed.Value)
         {
             weedFactoryData.CurrentWeed[weed.Key].Add(value);
         }
     }
 }
Esempio n. 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();
 }