Skip to content

Commit

Permalink
Even more diagnostics for dialogues.
Browse files Browse the repository at this point in the history
  • Loading branch information
isadorasophia committed Dec 23, 2024
1 parent 06da919 commit 425c4b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Murder.Editor/CustomEditors/CharacterEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,20 @@ public override bool RunDiagnostics()
}
}

bool hasAllDataInformation = true;
foreach ((DialogueId d, LineInfo info) in _script.Data)
{
if (info.Portrait is null && info.Event is null && info.Component is null)
{
hasAllDataInformation = false;
}
}

if (_script.Data.Count == 0 || !hasAllDataInformation)
{
GameLogger.Warning($"There are no metadata information for {_script.Name}. Is this expected?");
}

return !foundIssue;
}
}
Expand Down

0 comments on commit 425c4b2

Please sign in to comment.