HaxeScript
| Kind | class |
| Package | psychlua |
| Full name | psychlua.HaxeScript |
| Source | source/psychlua/HaxeScript.hx |
Standalone HScript file runner. Unlike psychlua.HScript, this does not
require a Lua parent and can host menu/state scripts at data/states/.
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
parser | Parser | yes | new Parser() | #if HSCRIPT_ALLOWED |
interp | Interp | no | — | #if HSCRIPT_ALLOWED |
scriptName | String | no | '' | — |
closed | Bool | no | false | — |
sandboxed | Bool | no | false | — |
securityModName | String | no | null | — |
securityAllowlist | Array<String> | no | [] | — |
parent | Dynamic | no | null | — |
Public methods
new (constructor)
function new(scriptName:String, ?parent:Dynamic, ?scriptCode:String)
| Parameter | Type | Default |
|---|---|---|
scriptName | String | — |
parent (optional) | Dynamic | — |
scriptCode (optional) | String | — |
call
function call(funcToRun:String, ?funcArgs:Array<Dynamic>):Dynamic
| Parameter | Type | Default |
|---|---|---|
funcToRun | String | — |
funcArgs (optional) | Array<Dynamic> | — |
set
function set(name:String, value:Dynamic):Void
| Parameter | Type | Default |
|---|---|---|
name | String | — |
value | Dynamic | — |
allowClassAccess
function allowClassAccess(className:String):Bool
| Parameter | Type | Default |
|---|---|---|
className | String | — |
stop
function stop():Void
Internals
Private / internal members
| Method |
|---|
function seedLibraries():Void |
function variablesMap():Map<String, Dynamic> |
function report(text:String, ?color:FlxColor):Void |