コード例 #1
0
    IEnumerator run_imported_function(ImportedFunctions func)
    {
        switch (func.functionName.ToLower())
        {
        case "babl_menu":
        {
            stack.Pop();
            int start = stack.Pop();                    //stack.at(stack.stackptr-2);//Not sure if this is correct for all conversations but lets try it anyway!
            yield return(StartCoroutine(babl_menu(start)));

            break;
        }

        case "babl_fmenu":
        {
            stack.Pop();
            int start     = stack.Pop();                // stack.at(stack.stackptr-2);//Not sure if this is correct for all conversations but lets try it anyway!
            int flagstart = stack.Pop();                //  stack.at(stack.stackptr-3);
            yield return(StartCoroutine(babl_fmenu(start, flagstart)));

            break;
        }

        case "get_quest":
        {
            stack.Pop();
            int index = stack.at(stack.Pop());
            //int index= stack.at( stack.at( stack.stackptr-2 ) );
            result_register = get_quest(0, index);
            break;
        }

        case "set_quest":
        {
            int val   = stack.Pop();
            int index = stack.at(stack.Pop());          //stack.at( stack.at( stack.stackptr-5 ) );
            //stack.at( stack.at( stack.stackptr-4 ) ) ;
            set_quest(0, val, index);                   //Or the other way around.
            break;
        }

        case "print":
        {
            say_op(stack.Pop());
            break;
        }

        default:

            Debug.Log("unimplemented function " + func.functionName);
            break;
        }
        yield return(0);
    }
コード例 #2
0
        public RAController()
        {
            string dir = Directory.GetCurrentDirectory();

            ImportedFunctions.AddDllDirectory(dir);
        }
コード例 #3
0
 public void executeAutomatedRoutine(string filepath, float speed, int loops)
 {
     ImportedFunctions.executeAutomatedRoutine(filepath, speed, loops);
 }
コード例 #4
0
 public void recordActivity(string filepath)
 {
     ImportedFunctions.recordActivity(filepath);
 }
コード例 #5
0
 public void interruptInterpreterSequence(int[] macroKeys)
 {
     ImportedFunctions.interruptInterpreterSequence(macroKeys);
 }
コード例 #6
0
 public void watchForStartSequence(int[] macroKeys)
 {
     ImportedFunctions.watchForStartSequence(macroKeys);
 }
コード例 #7
0
 public double calculateRuntime(string filePath)
 {
     return(ImportedFunctions.calculateRuntime(filePath));
 }