Esempio n. 1
0
        public static SaveGame FromFile(string path)
        {
            var sg = new SaveGame();

            using (var stream = new MemoryStream(FlCodec.ReadFile(path)))
            {
                sg.ParseAndFill(path, stream);
            }
            return(sg);
        }
Esempio n. 2
0
        public static SaveGame FromFile(string path)
        {
            var sg  = new SaveGame();
            var str = System.Text.Encoding.ASCII.GetString(FlCodec.ReadFile(path));

            using (var stream = new MemoryStream(FlCodec.ReadFile(path)))
            {
                sg.ParseAndFill(path, stream);
            }
            return(sg);
        }