staticimplement(funk:FunkinLua):Void
staticinitHaxeModule(parent:FunkinLua):Void
@:value({ varsToBring : null })staticinitHaxeModuleCode(parent:FunkinLua, code:String, ?varsToBring:Any):Void
@:value({ manualRun : false, varsToBring : null })new(?parent:Dynamic, ?file:String, ?varsToBring:Any, manualRun:Bool = false)
filePath:String
modFolder:String
origin:String
parentLua:FunkinLua
returnValue:Dynamic
@:value(null)config:IrisConfig = null
Config file, set when creating a new Iris instance.
Iris
read onlyname:String
Current script name, from config.name.
config.name
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.
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
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.