Exemple #1
0
        public void SaveToDisk(string file)
        {
            Dictionary <string, byte[]> data = new Dictionary <string, byte[]>();

            WriteObjectDataToTable(data);
            PersistableDiskObject.SaveToDisk(data, file);
        }
Exemple #2
0
        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);
        }