本文整理汇总了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());
}
}