コード例 #1
0
 void SaveGrid()
 {
     string[] lines = Levels.GetLinesFromGrid(editor.MapGrid, mode != Mode.Minimap ? 4 : 1, mode != Mode.Minimap,
                                              Levels.TilesOffset(Levels.GetWorldOfLevel(map), MapType()));
     File.WriteAllLines(Levels.GetLevelPath(map, MapType()), lines);
     if (Settings.Paradise && mode == Mode.Physical)
     {
         string   objectsPath = Levels.GetObjectsPath(map);
         string[] objects     = _paraPhysicalMapLogic.GetLines();
         File.WriteAllLines(objectsPath, objects);
     }
 }
コード例 #2
0
 void SaveGrid(string path, int[,] grid)
 {
     File.WriteAllLines(path, Levels.GetLinesFromGrid(grid, 4, true, 0));
 }