Exemplo n.º 1
0
        public Game_System copy()
        {
            // Hey maybe make this not awful and actually copy the values //Yeti
            Game_System result = new Game_System();

            using (MemoryStream ms = new MemoryStream())
            {
                BinaryWriter writer = new BinaryWriter(ms);
                write(writer);
                writer.Flush();

                ms.Position = 0;
                using (BinaryReader reader = new BinaryReader(ms))
                    result.read(reader, Global.RUNNING_VERSION);
            }
            return(result);
        }
Exemplo n.º 2
0
 internal static void read_game_system(System.IO.BinaryReader reader)
 {
     Game_System = new Game_System();
     Game_System.read(reader);
 }