private void LoadDefaultRecipe()
 {
     var db = GameDatabase.Instance;
     var configNode = db.GetConfigNodes("OSE_DefaultRecipe").LastOrDefault();
     if (configNode != null)
     {
         var recipeNode = configNode.GetNode("RESOURCES");
         var recipe = new Recipe(recipeNode);
         Status = "Loading DefaultRecipe";
         print("[OSE] - Loading DefaultRecipe");
         WorkshopRecipeDatabase.DefaultPartRecipe = recipe;
     }
 }
 private IEnumerator LoadPartRecipes()
 {
     var db = GameDatabase.Instance;
     var nodes = db.GetConfigNodes("PART");
     foreach (var partNode in nodes)
     {
         var partName = partNode.GetValue("name").Replace('_', '.');
         if (partNode.HasNode("OSE_PartRecipe"))
         {
             var recipeNode = partNode.GetNode("OSE_PartRecipe");
             var recipe = new Recipe(recipeNode);
             Status = "Loading PartRecipe for " + partName;
             print("[OSE] - Loading PartRecipe for " + partName);
             WorkshopRecipeDatabase.PartRecipes[partName] = recipe;
         }
         yield return null;
     }
 }
 private IEnumerator LoadResourceRecipes()
 {
     var db = GameDatabase.Instance;
     var nodes = db.GetConfigNodes("OSE_ResourceRecipe");
     foreach (var configNode in nodes)
     {
         var resourceName = configNode.GetValue("name");
         var recipeNode = configNode.GetNode("RESOURCES");
         var recipe = new Recipe(recipeNode);
         Status = "Loading ResourceRecipe " + resourceName;
         print("[OSE] - Loading ResourceRecipe " + resourceName);
         WorkshopRecipeDatabase.ResourceRecipes[resourceName] = recipe;
         yield return null;
     }
 }