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