public bool SetGroupsTilesAndHarbors(Dictionary <string, string> dataSection) { _currentGame.Randomize = false; for (int i = 0; i < _currentGame.TileGroups.Count; i++) { string key = $"Group{i}Tiles"; _currentGame.TileGroups[i].RandomResourceTypeList = StaticHelpers.DeserializeList <int>(dataSection[key]); key = $"Group{i}Harbors"; _currentGame.TileGroups[i].RandomHarborTypeList = StaticHelpers.DeserializeList <int>(dataSection[key]); } return(true); }
public void Deserialize(string s) { this.Clear(); this.AddRange(StaticHelpers.DeserializeList <T>(s)); }