public void createFunc(uluroVariable assignTo, string func, params object[] input) { var paramTot = input.Length; //"C011 \"YPOS\" \"R\" \"+\" C2 X .3 V YPOS N N" //C011 "resultvar" "resultType" "+" C(paramcount) X/V VAL/PARAMNAME N N string outStr = $"C011\t\"{assignTo.varName}\"\t\"{assignTo.varType}\"\t\"{func}\"\tC{paramTot.ToString()}"; for (int i = 0; i < paramTot; i++) { if (input[i].GetType() == typeof(String)) { outStr += $"\tX\t{input[i].ToString()}"; } else if (input[i].GetType() == typeof(uluroVariable)) { outStr += $"\tV\t{input[i].ToString()}"; } } //Add the magic trailing vars. outFile.WriteLine($"{outStr}\tN\tN"); }
public void createMap(uluroVariable mapThis, float xpos, float ypos, string format = "") { mapThis.createMap(xpos, ypos, format, _alignment, _fontName, _fontSize, _fontStyle); }
public void createCondition(uluroVariable param1, string test, bool isTrue) { writeCondition <uluroVariable, string>(param1, test, "", isTrue); }
public void createCondition(string param1, string test, uluroVariable param2, bool isTrue) { writeCondition <string, uluroVariable>(param1, test, param2, isTrue); }
public void createCondition(uluroVariable param1, string test, bool NOT = false) { writeCondition <uluroVariable, string>(param1, test, "", NOT); }
public void createCondition(string param1, string test, uluroVariable param2, bool NOT = false) { writeCondition <string, uluroVariable>(param1, test, param2, NOT); }