public ScriptContext(ScriptFile file) { this.file = file; localTable = new ScriptLinkTable(); localValMap = new Dictionary <string, object>(); functions = new Dictionary <string, ScriptFunction>(); triggers = new Dictionary <string, ScriptTrigger>(); returnValueMap = new Dictionary <string, object>(); }
public ScriptGlobalVariableMap() { globalVariableMap = new Dictionary <string, object>(); globalVariableMap = new Dictionary <string, object>(); globalVariableMap.Add("reg0", "0"); globalVariableMap.Add("reg1", "0"); globalVariableMap.Add("reg2", "0"); globalVariableMap.Add("reg3", "0"); globalVariableMap.Add("reg4", "0"); globalVariableTable = ScriptValueRegister.Instance.GlobalValueTable; }
public ScriptValueRegister() { globalValueTable = new ScriptLinkTable(); for (int i = 0; i < 5; i++) { ScriptLinkTableNode vect = new ScriptLinkTableNode(); vect.Name = "vect" + (i + 1); ScriptLinkTableNode vectX = new ScriptLinkTableNode(); ScriptLinkTableNode vectY = new ScriptLinkTableNode(); ScriptLinkTableNode vectZ = new ScriptLinkTableNode(); vectX.Name = vect.Name + "_X"; vectY.Name = vect.Name + "_Y"; vectZ.Name = vect.Name + "_Z"; vect.NextNodes.Add(vectX); vect.NextNodes.Add(vectY); vect.NextNodes.Add(vectZ); GlobalValueTable.AddRecord(vect); } }