Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void TestDialogue()
- {
- var dialogue = GameDialogue.DialogueList;
- for (var i = 0; i < dialogue.Count; i++)
- {
- var current = dialogue[i];
- var ouputs = current.OutputIds;
- var currentOutputCount = current.OutputIds.Count;
- for (var j = 0; j < ouputs.Count; j++)
- {
- var nextConnection = GameDialogue.ConnectionList.FirstOrDefault(c => c.Source.PinRef == ouputs[j]);
- if (nextConnection == null) continue;
- var nextDialogue = dialogue.FirstOrDefault(d => d.Id == nextConnection.Target.IdRef);
- var nextOutputCount = nextDialogue.OutputIds.Count;
- if (nextOutputCount == currentOutputCount)
- {
- //Insert breakpoint here
- var problemDialogue = current.DisplayText;
- var problemRetort = nextDialogue.DisplayText;
- }
- }
- }
- }
- private static void ExportDialogue()
- {
- const string fileName = "dialogue-output.xml";
- FlatRedBall.IO.FileManager.XmlSerialize(GameDialogue, fileName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement