public static SerialDict <string, string> getTileset(string name) { SerialDict <string, string> tileset = new SerialDict <string, string>(); tileset = (SerialDict <string, string>)Filer.loadFromFile(tileset.GetType(), storageLocation + "XML/Tilesets/" + name); return(tileset); }
/* public static List<string> getHighScores(Level level) * { * List<string> higscores = new List<string>(); * * } */ public static void saveLevel(Level level) { Filer.saveToFile(level, storageLocation + "xml/Levels/" + level.LevelName); }
public static void saveTileset(SerialDict <string, string> tileSet, string file) { Filer.saveToFile(tileSet, file); }
public static Level loadLevel(string levelName) { Level level = (Level)Filer.loadFromFile(typeof(Level), storageLocation + "xml/levels/" + levelName); return(level); }