public void SaveToDisk(string file) { Dictionary <string, byte[]> data = new Dictionary <string, byte[]>(); WriteObjectDataToTable(data); PersistableDiskObject.SaveToDisk(data, file); }
public static GameMap LoadFromDisk(string p) { GameMap map = new GameMap(); Dictionary <string, byte[]> th = PersistableDiskObject.LoadFromDisk(p); if (th == null) { return(null); } map.ReadObjectDataFromTable(th); return(map); }