private ScenarioManager(GmsModel gms, PlayerModel playerModel, IEnumerable <string> imgPath) { this.imageManager = new ImageManager(imgPath); foreach (var item in gms.Map) { Scenarios.Add(new Scenario(item, playerModel, imageManager)); } }
public static void SaveMap(GmsModel gms) { File.WriteAllText(@"C:\_TempFoloder\1.data", JsonConvert.SerializeObject(gms)); }