Exemple #1
0
    public void GetArchivedMaps()
    {
        StreamReader reader = new StreamReader(pathToArchives);
        string       line;

        savedMaps = new List <MapEditorSave>();
        while ((line = reader.ReadLine()) != null)
        {
            MapEditorSave newSave = JsonUtility.FromJson <MapEditorSave>(line);
            savedMaps.Add(newSave);
        }
        reader.Close();
        LoadMap(0);
    }
Exemple #2
0
 public void SaveCurrentMap(int index)
 {
     savedMaps[index] = new MapEditorSave(mapSize, tiles);
 }