Codename LogoCodename Logo

funkin.backend.scripting.HScript

APIWiki

Static methods

Constructor

View in GitHub

new(path:String)

Variables

code:String = null

expr:Expr

interp:Interp

parser:Parser

Methods

Inherited Variables

Defined by Script

extension:String

Script Extension

fileName:String

Script name (with extension)

path:String = null

Path to the script.

remappedNames:Map<String, String> = []

Inherited Methods

Defined by Script

View in GitHub

call(func:String, ?parameters:Array<Dynamic>):Dynamic

Calls the function func defined in the script.

Parameters:

func

Name of the function

parameters

(Optional) Parameters of the function.

Returns:

Result (if void, then null)

View in GitHub

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.

View in GitHub

load():Void

Loads the script