Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        public static GffStruct Read(Stream data)
        {
            GffReader reader = new GffReader(data);

            return(reader._root);
        }