Here is a sample wrapper function, to get an idea of how one looks. The rest of this chapter is devoted to demystifying it:
public void print()
return new SEWrapper()
public void wrapperFunction(SEContext se, int argc)
switch( se.seGetType(SE.ARGS,SE_.NDEX(0)) )
/* for whatever reason, need a specific number
/* Oh what the heck, just let ScriptEase convert
* whatever it is to a String.
/* let's return something because we can */
"Go away, you bother me kid.");
Before looking into the wrapper function tables, a basic overview of a wrapper function is necessary. The example above is simple but it demonstrates all that a wrapper function does. It gets its arguments, uses them to perform the body of the wrapper function, and returns a result.
THE FUNCTION HEADER
WRAPPER TABLE METHODS AND OBJECT
THE SELIBRARYMANAGER CLASS