public virtual INativeFunction getNativeFunction(VSMXNativeObject @object, string name, int numberOfArguments) { BaseNativeObject nativeObject = @object.Object; INativeFunction nativeFunction = getNativeFunctionInterface(nativeObject, name, numberOfArguments); return(nativeFunction); }
public static VSMXNativeObject create(VSMXInterpreter interpreter) { Timer timer = new Timer(interpreter); VSMXNativeObject @object = new VSMXNativeObject(interpreter, timer); timer.Object = @object; return(@object); }
public virtual VSMXBaseObject createVSMXObject(VSMXInterpreter interpreter, VSMXBaseObject parent, RCOEntry entry) { VSMXNativeObject @object = new VSMXNativeObject(interpreter, this); Object = @object; entry.vsmxBaseObject = @object; if (!string.ReferenceEquals(entry.label, null)) { name = entry.label; @object.setPropertyValue("name", new VSMXString(interpreter, entry.label)); parent.setPropertyValue(entry.label, @object); } if (entry.parent != null && entry.parent.vsmxBaseObject is VSMXNativeObject) { Parent = ((VSMXNativeObject) entry.parent.vsmxBaseObject).Object; } return @object; }
public static VSMXNativeObject create(VSMXInterpreter interpreter) { GlobalVariables globalVariables = new GlobalVariables(interpreter); VSMXNativeObject @object = new VSMXNativeObject(interpreter, globalVariables); globalVariables.Object = @object; @object.setPropertyValue("undefined", VSMXUndefined.singleton); @object.setPropertyValue("Array", new VSMXArray(interpreter)); @object.setPropertyValue("Object", new VSMXObject(interpreter, null)); @object.setPropertyValue("timer", Timer.create(interpreter)); @object.setPropertyValue("x", new VSMXNumber(interpreter, 0)); @object.setPropertyValue("y", new VSMXNumber(interpreter, 0)); @object.setPropertyValue("width", new VSMXNumber(interpreter, Screen.width)); @object.setPropertyValue("height", new VSMXNumber(interpreter, Screen.height)); return(@object); }