/// <summary> /// Standard ctor for new runtime state /// </summary> /// <param name="numGlobals">Number of global variables in the associated script</param> public RuntimeState(int numGlobals) { MemInfo = new MemoryInfo(); Globals = new object[numGlobals]; Operands = new Stack <object>(64); Calls = new Stack <StackFrame>(64); EventQueue = new C5.LinkedList <PostedEvent>(); ActiveListens = new Dictionary <int, ActiveListen>(); MiscAttributes = new Dictionary <int, object[]>(); LocalDisable = LocalDisableFlag.None; this.Reset(); }
/// <summary> /// Standard ctor for new runtime state /// </summary> /// <param name="numGlobals">Number of global variables in the associated script</param> public RuntimeState(int numGlobals) { MemInfo = new MemoryInfo(); Globals = new object[numGlobals]; Operands = new Stack<object>(64); Calls = new Stack<StackFrame>(64); EventQueue = new C5.LinkedList<PostedEvent>(); ActiveListens = new Dictionary<int, ActiveListen>(); MiscAttributes = new Dictionary<int, object[]>(); LocalDisable = LocalDisableFlag.None; this.Reset(); }
/// <summary> /// For serialization /// </summary> public RuntimeState() { LocalDisable = LocalDisableFlag.None; }
/// <summary> /// For serialization /// </summary> public RuntimeState() { LocalDisable = LocalDisableFlag.None; }