private void DisplayDialog(Resource resource) { ClearView(); GffStruct gff = GffReader.Read(resource.Data); Dialog dlg = new Dialog(_game, gff); _structureTree.BeginUpdate(); try { ShowStruct(gff, _structureTree.Nodes); } finally { _structureTree.EndUpdate(); } foreach (DialogNode node in dlg.StartingNodes) { AddDialogNode(node, _dialogTree.Nodes); } }
public static GffStruct Read(Stream data) { GffReader reader = new GffReader(data); return(reader._root); }