public TempCase(Script script, List<object> allow, ScriptExecutable executable, Executable_Block block) { m_Script = script; this.Allow = allow; this.Executable = executable; this.Block = block; }
public ScorpioScriptFunction(Script script, List<String> listParameters, ScriptExecutable scriptExecutable, bool bParams) { this.m_Script = script; this.m_ListParameters = listParameters.ToArray(); this.m_ScriptExecutable = scriptExecutable; this.m_ParameterCount = listParameters.Count; this.m_Params = bParams; }
public TempCondition(Script script, CodeObject allow, ScriptExecutable executable, Executable_Block block) { m_Script = script; this.Allow = allow; this.Executable = executable; this.Block = block; }
public ScriptContext(Script script, ScriptExecutable scriptExecutable, ScriptContext parent, Executable_Block block) { m_script = script; m_parent = parent; m_scriptExecutable = scriptExecutable; m_variableDictionary.Clear(); m_block = block; m_InstructionCount = m_scriptExecutable != null ? m_scriptExecutable.Count : 0; }
private ScriptExecutable m_ScriptExecutable; //函数执行命令 #endregion Fields #region Constructors public ScorpioScriptFunction(Script script, List<String> listParameters, ScriptExecutable scriptExecutable, bool bParams) { this.m_Script = script; this.m_ListParameters = new List<string>(listParameters); this.m_ScriptExecutable = scriptExecutable; this.m_ParameterCount = listParameters.Count; this.m_Params = bParams; this.m_ParamsArray = bParams ? script.CreateArray() : null; }
public ScriptContext(Script script, ScriptExecutable scriptExecutable, ScriptContext parent, Executable_Block block) { m_script = script; m_parent = parent; m_block = block; m_variableDictionary = new Dictionary<String, ScriptObject>(); if (scriptExecutable != null) { m_scriptInstructions = scriptExecutable.ScriptInstructions; m_InstructionCount = m_scriptInstructions.Length; } }
public ScriptContext(Script script, ScriptExecutable scriptExecutable, ScriptContext parent, Executable_Block block) { m_script = script; m_parent = parent; m_block = block; m_variableDictionary = new Dictionary <String, ScriptObject>(); if (scriptExecutable != null) { m_scriptInstructions = scriptExecutable.ScriptInstructions; m_InstructionCount = m_scriptInstructions.Length; } }
private ScriptObject Execute(ScriptExecutable executable) { if (executable == null) { return(null); } Reset(); ScriptInstruction[] scriptInstructions = executable.ScriptInstructions; int iInstruction = 0; int iInstructionCount = scriptInstructions.Length; while (iInstruction < iInstructionCount && !IsExecuted) { m_scriptInstruction = scriptInstructions[iInstruction++]; ExecuteInstruction(); } return(m_returnObject); }
private ScriptObject Execute(ScriptExecutable executable) { if (executable == null) { return(null); } Reset(); int iInstruction = 0; int iInstructionCount = executable.Count; while (iInstruction < iInstructionCount) { m_scriptInstruction = executable[iInstruction++]; ExecuteInstruction(); if (IsOver) { break; } } return(m_returnObject); }
private ScriptObject Execute(ScriptExecutable executable) { if (executable == null) { return(null); } this.Reset(); ScriptInstruction[] scriptInstructions = executable.ScriptInstructions; int num = 0; int length = scriptInstructions.Length; while (num < length) { this.m_scriptInstruction = scriptInstructions[num++]; this.ExecuteInstruction(); if (this.IsExecuted) { break; } } return(this.m_returnObject); }
private bool m_Over = false; //函数是否已经结束 public ScriptContext(Script script, ScriptExecutable scriptExecutable) : this(script, scriptExecutable, null, Executable_Block.None) { }
public ScriptContext(Script script, ScriptExecutable scriptExecutable, ScriptContext parent) : this(script, scriptExecutable, parent, Executable_Block.None) { }
private ScriptObject Execute(ScriptExecutable executable) { if (executable == null) return null; Reset(); ScriptInstruction[] scriptInstructions = executable.ScriptInstructions; int iInstruction = 0; int iInstructionCount = scriptInstructions.Length ; while (iInstruction < iInstructionCount) { m_scriptInstruction = scriptInstructions[iInstruction++]; ExecuteInstruction(); if (IsExecuted) break; } return m_returnObject; }
public CodeObject[] Allow; //判断条件 public TempCase(Script script, List<CodeObject> allow, ScriptExecutable executable) { this.Allow = allow != null ? allow.ToArray() : new CodeObject[0]; this.Executable = executable; }
public ScriptExecutable Executable; //指令列表 #endregion Fields #region Constructors public TempCondition(Script script, CodeObject allow, ScriptExecutable executable, Executable_Block block) { this.Allow = allow; this.Executable = executable; this.Context = new ScriptContext(script, executable, null, block); }
public CodeCallBlock(ScriptExecutable executable) { this.Executable = executable; }
public ScriptExecutable Executable; //指令列表 #endregion Fields #region Constructors public TempCase(Script script, List<object> allow, ScriptExecutable executable, Executable_Block block) { this.Allow = allow; this.Executable = executable; this.Context = new ScriptContext(script, executable, null, block); }
public void BeginExecutable(Executable_Block block) { m_scriptExecutable = new ScriptExecutable(block); m_Executables.Push(m_scriptExecutable); }
public void EndExecutable() { m_Executables.Pop(); m_scriptExecutable = (m_Executables.Count > 0) ? m_Executables.Peek() : null; }
public void SetContextExecutable(ScriptExecutable blockExecutable) { BlockExecutable = blockExecutable; BlockContext = new ScriptContext(m_Script, blockExecutable, null, Executable_Block.For); }
public ScriptContext(Script script, ScriptExecutable scriptExecutable, Executable_Block block) : this(script, scriptExecutable, null, block) { }