当前位置: 首页>>代码示例>>C#>>正文


C# GlobalState.setDocumentation方法代码示例

本文整理汇总了C#中GlobalState.setDocumentation方法的典型用法代码示例。如果您正苦于以下问题:C# GlobalState.setDocumentation方法的具体用法?C# GlobalState.setDocumentation怎么用?C# GlobalState.setDocumentation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobalState的用法示例。


在下文中一共展示了GlobalState.setDocumentation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Parse


//.........这里部分代码省略.........
            }
        }

        foreach (XmlElement el in scenes)
        {
            new SceneSubParser_(chapter).ParseElement(el);
        }

        foreach (XmlElement el in slidescenes)
        {
            //TODO: subparser
            new CutsceneSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in videoscenes)
        {
            //TODO: subparser
            new CutsceneSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in books)
        {
            //TODO: subparser
            new BookSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in objects)
        {
            //TODO: subparser
            new ItemSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in players)
        {
            //TODO: subparser
            new PlayerSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in characters)
        {
            //TODO: subparser
            new CharacterSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in treeconversations)
        {
            //TODO: subparser
            new TreeConversationSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in graphconversations)
        {
            //TODO: subparser
            new GraphConversationSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in globalstates)
        {
            string id = el.GetAttribute("id");
            currentGlobalState = new GlobalState(id);
            currentString = string.Empty;
            chapter.addGlobalState(currentGlobalState);
            //TODO: subparser
            new ConditionSubParser_(currentGlobalState, chapter).ParseElement(el);
            currentGlobalState.setDocumentation(el.InnerText);
        }
        foreach (XmlElement el in macros)
        {
            string id = el.GetAttribute("id");
            currentMacro = new Macro(id);
            currentString = string.Empty;
            chapter.addMacro(currentMacro);
            //TODO: subparser
            new EffectSubParser_(currentMacro, chapter).ParseElement(el);
            currentMacro.setDocumentation(el.InnerText);
        }
        foreach (XmlElement el in timers)
        {
            //TODO: subparser
            new TimerSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in atrezzoobjects)
        {
            //TODO: subparser
            new AtrezzoSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in assessment)
        {
            //TODO: subparser
            new AssessmentSubParser_(chapter).ParseElement(el);
        }
        foreach (XmlElement el in adaptation)
        {
            //TODO:
            new AdaptationSubParser_(chapter).ParseElement(el);
        }
        // In the end of the document, if the chapter has no initial scene
        if (chapter.getTargetId() == null)
        {
            // Set it to the first scene
            if (chapter.getScenes().Count > 0)
                chapter.setTargetId(chapter.getScenes()[0].getId());

            // Or to the first cutscene
            else if (chapter.getCutscenes().Count > 0)
                chapter.setTargetId(chapter.getCutscenes()[0].getId());
        }
    }
开发者ID:Synpheros,项目名称:eAdventure4Unity,代码行数:101,代码来源:ChapterHandler_.cs


注:本文中的GlobalState.setDocumentation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。