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); }
public RAController() { string dir = Directory.GetCurrentDirectory(); ImportedFunctions.AddDllDirectory(dir); }
public void executeAutomatedRoutine(string filepath, float speed, int loops) { ImportedFunctions.executeAutomatedRoutine(filepath, speed, loops); }
public void recordActivity(string filepath) { ImportedFunctions.recordActivity(filepath); }
public void interruptInterpreterSequence(int[] macroKeys) { ImportedFunctions.interruptInterpreterSequence(macroKeys); }
public void watchForStartSequence(int[] macroKeys) { ImportedFunctions.watchForStartSequence(macroKeys); }
public double calculateRuntime(string filePath) { return(ImportedFunctions.calculateRuntime(filePath)); }