Exemple #1
0
        public void TestReadTransferStash()
        {
            TransferStashFile stash = new TransferStashFile();

            using (var s = File.OpenRead("Resources\\Saves\\transfer.gst"))
            {
                stash.Read(s);
            }
        }
Exemple #2
0
        private void LoadTransferStashAsCharacter(string grimDawnSavesDirectory, Action <string> stateChangeCallback)
        {
            var transferStashFile = Path.Combine(grimDawnSavesDirectory, "transfer.gst");

            stateChangeCallback("Loading " + transferStashFile);
            var transferStash = new TransferStashFile();

            using (var s = File.OpenRead(transferStashFile))
            {
                transferStash.Read(s);
            }

            _characters.Add(transferStash.ToCharacterFile());
        }