Static methods

@:value({ varsToBring : null })staticinitHaxeModuleCode(parent:FunkinLua, code:String, ?varsToBring:Any):Void

Constructor

@:value({ manualRun : false, varsToBring : null })new(?parent:Dynamic, ?file:String, ?varsToBring:Any, manualRun:Bool = false)

Variables

Methods

Inherited Variables

Defined by Iris

@:value(null)config:IrisConfig = null

Config file, set when creating a new Iris instance.

read onlyname:String

Current script name, from config.name.

Inherited Methods

Defined by Iris

execute():Dynamic

Executes this script and returns the interp's run result.

exists(field:String):Bool

Checks the existance of a field or method within your script.

Parameters:

field

The field to check if exists.

get(field:String):Dynamic

Returns a field from the script.

Parameters:

field

The field that needs to be looked for.

@:value({ force : false })parse(force:Bool = false):Expr

If you want to override the script, you should do parse(true);

just parse(); otherwise, forcing may fix some behaviour depending on your implementation.

@:value({ allowOverride : true })set(name:String, value:Dynamic, allowOverride:Bool = true):Void

Sets a new field to the script

Parameters:

name

The name of your new field, scripts will be able to use the field with the name given.

value

The value for your new field.

allowOverride

If set to true, when setting the new field, we will ignore any previously set fields of the same name.