diff --git a/game/Assets/Scripts/Dialogue/DialogueDatabase.cs b/game/Assets/Scripts/Dialogue/DialogueDatabase.cs index c23fa36..4b3d504 100644 --- a/game/Assets/Scripts/Dialogue/DialogueDatabase.cs +++ b/game/Assets/Scripts/Dialogue/DialogueDatabase.cs @@ -62,14 +62,18 @@ public static partial class DialogueDatabase } Debug.Log($":: importing dialogue"); - var sb = new StringBuilder(); + var sbFile = new StringBuilder(); + var sbLog = new StringBuilder(); + var lines = 0; foreach (var row in values) { - Debug.Log($"{row[0]} {row[1]}"); - sb.AppendLine($"{row[0]},{row[1]},"); + sbLog.AppendLine($"{row[0]} {row[1]}"); + sbFile.AppendLine($"{row[0]},{row[1]},"); + lines++; } + Debug.Log($":: imported {lines} lines of dialogue\n{sbLog}"); - File.WriteAllText(EDITOR_DialogueFile, sb.ToString()); + File.WriteAllText(EDITOR_DialogueFile, sbFile.ToString()); if (!File.Exists(EDITOR_DialogueFile)) { Debug.LogError($":: import failed: file doesn't exist: {EDITOR_DialogueFile}");