From 031e8b99bb9543ff2d36e0f1e7c322c3d68ad238 Mon Sep 17 00:00:00 2001 From: Ben C Date: Mon, 23 May 2022 10:57:17 -0400 Subject: [PATCH] Reduce redundancy in schema generation code --- SchemaExporter/SchemaExporter.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SchemaExporter/SchemaExporter.cs b/SchemaExporter/SchemaExporter.cs index 52e0aaa4..e186007d 100644 --- a/SchemaExporter/SchemaExporter.cs +++ b/SchemaExporter/SchemaExporter.cs @@ -22,14 +22,11 @@ public static class SchemaExporter FlattenInheritanceHierarchy = true, AllowReferencesWithProperties = true }; - Console.WriteLine("Outputting Body Schema"); var bodySchema = new Schema("Celestial Body Schema", $"{folderName}/body_schema", settings); bodySchema.Output(); - Console.WriteLine("Outputting Star System Schema"); var systemSchema = new Schema("Star System Schema", $"{folderName}/star_system_schema", settings); systemSchema.Output(); - Console.WriteLine("Outputting Translation Schema"); var translationSchema = new Schema("Translation Schema", $"{folderName}/translation_schema", settings); translationSchema.Output(); @@ -51,6 +48,7 @@ public static class SchemaExporter public void Output() { + Console.WriteLine($"Outputting {_title}"); File.WriteAllText($"{_outFileName}.json", ToString()); }