public void TestReadBlueprintFile()
        {
            BlueprintFile blueprints = new BlueprintFile();

            using (var s = File.OpenRead("Resources\\Saves\\formulas.gst"))
            {
                blueprints.Read(s);
            }
        }
Exemplo n.º 2
0
        private void LoadBlueprintsAsCharacter(string grimDawnSavesDirectory, Action <string> stateChangeCallback)
        {
            var recipesFilePath = Path.Combine(grimDawnSavesDirectory, formulasFilename);

            stateChangeCallback("Loading " + recipesFilePath);
            var recipes = new BlueprintFile();

            using (var s = File.OpenRead(recipesFilePath))
            {
                recipes.Read(s);
            }

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