コード例 #1
0
ファイル: FirstTimeScript.cs プロジェクト: jaynabonne/quest
 public static void AddOtherwiseScript(IScript firstTimeScript, string script, IScriptFactory scriptFactory)
 {
     // Get script after "otherwise" keyword
     script = script.Substring(9).Trim();
     string otherwise = Utility.GetScript(script);
     IScript otherwiseScript = scriptFactory.CreateScript(otherwise);
     ((FirstTimeScript)firstTimeScript).SetOtherwiseScript(otherwiseScript);
 }
コード例 #2
0
        public static void AddOtherwiseScript(IScript firstTimeScript, string script, IScriptFactory scriptFactory)
        {
            // Get script after "otherwise" keyword
            script = script.Substring(9).Trim();
            string  otherwise       = Utility.GetScript(script);
            IScript otherwiseScript = scriptFactory.CreateScript(otherwise);

            ((FirstTimeScript)firstTimeScript).SetOtherwiseScript(otherwiseScript);
        }
コード例 #3
0
 protected override void SetValue(string newValue)
 {
     m_script = m_scriptFactory.CreateScript(newValue);
 }