Constructor

new(path:String)

Variables

@:value([])additionalDefaultVariables:Map<String, Dynamic> = []

@:value(null)parent:Dynamic = null

@:value([])scripts:Array<Script> = []

Methods

add(script:Script):Void

event<T>(func:String, event:T):T

Sends an event to every single script, and returns the event.

Parameters:

func

Function to call

event

Event (will be the first parameter of the function)

Returns:

(modified by scripts)

insert(pos:Int, script:Script):Void

remove(script:Script):Void

Inherited Variables

Defined by Script

fileName:String

Script name (with extension)

@:value(null)path:String = null

Path to the script.

Inherited Methods

Defined by Script

error(text:String, ?additionalInfo:Dynamic):Void

Shows an error from this script.

Parameters:

text

Text of the error (ex: Null Object Reference).

additionalInfo

Additional information you could provide.

onLoad():Void