예제 #1
0
 void SaveMap(string file)
 {
     File.WriteAllText(file, JsonMap.Save(map));
     AppendLine("Map saved.");
 }
예제 #2
0
 void LoadMap(string file)
 {
     map       = JsonMap.Load(File.ReadAllText(file));
     selection = Rect.Empty;
     AppendLine("Map loaded.");
 }