Example #1
0
        public void loadGame()
        {
            IFormatter formatter = new BinaryFormatter();
            Stream     stream    = new FileStream("IsaacsCoolSerial.bin",
                                                  FileMode.Open,
                                                  FileAccess.Read,
                                                  FileShare.Read);

            world = (GameWorld.World)formatter.Deserialize(stream);
            stream.Close();
            world.setUpAfterGameLoad();
            GC.Collect();
        }