private DialogueLine ProcessNodeLine() { string line; DialogueLine LineNode = new DialogueLine(); do { line = GetValidLine(); if(line != null) { if(line[0] == '}') break; else { string[] elements = line.Split('='); switch(elements[0].ToLower()) { case "speaker_id": LineNode.SetSpeakerId(int.Parse(elements[1])); break; case "text": LineNode.SetText(elements[1]); break; default: AttemptToAddJump(elements); break; } } } } while(line != null); return LineNode; }