Now that Magma is in its own module, I'm taking the Jint module in a slightly different direction. There won't be as many methods provided to Jint scripts as were provided to Magma scripts. This is because Javascript running in Jint has improved access to C# types. For example, under Jint you can use a Generic Collection of any type by passing the typename as an argument when assigning the class to a variable. Then you can instance the class with the new operator, and manipulate the list with its native C# methods and properties.
So, there is no need for ParamsList, which is just a wrapper around the System.Collections.Generic.List class. Javascript plugins running under Jint can directly use any of these classes.
Continued....
JavaScript:
var ListOfObj = System.Collections.Generic.List(System.Object);
var list = new ListOfObj();
list.Add(foo);
list.Add(bar);
list.Add(baz);
list.Add(bum);
Plugin.Log("Jint", "There are " + list.Count + " things.");
Continued....
Last edited by a moderator: