public void TestReadBlueprintFile() { BlueprintFile blueprints = new BlueprintFile(); using (var s = File.OpenRead("Resources\\Saves\\formulas.gst")) { blueprints.Read(s); } }
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()); }