Available on all targets
@:value([])staticerrorHandlers:Array<(error:String, line:Int, char:Int) ‑> Void> = []
@:value([])statictraceHandlers:Array<(v:Dynamic, pos:PosInfos) ‑> Void> = []
@:value(new Logger())staticread onlylog:Logger = new Logger()
new(content:String)
read onlycontent:String
read onlyprogram:Expr
read onlyinterp:Interp
read onlymodule:ScriptModule
@:keepentity:Entity
@:value(null)read onlyinitializerName:String = null
run():Void
getEntityById(itemId:String):Entity
getModule(itemId:String):ScriptModule
get(name:String):Dynamic
call(name:String, ?args:Array<Dynamic>):Dynamic
callScriptMethod(name:String, numArgs:Int, ?arg1:Dynamic, ?arg2:Dynamic, ?arg3:Dynamic):Dynamic
@:dox(show)dispose(entity:Entity):Void
@:dox(show)destroy(entity:Entity):Void
read onlyhasData:Bool
data:Dynamic
@:value(null)id:String = null
read onlydestroyed:Bool
read onlydisposed:Bool
@:value(null)read onlyautoruns:Array<Autorun> = null
@editablecomponents:ReadOnlyMap<String, Component>
Public components mapping. Contain components created separately with component() or macro-based components as well.
component()
scriptContent:ScriptContent
Available with script plugin
script:Script
dispose():Void
Schedules destroy, at the end of the current frame.
unbindEvents():Void
Remove all events handlers from this entity.
autorun(run:() ‑> Void, ?afterRun:() ‑> Void):Autorun
Creates a new Autorun instance with the given callback associated with the current entity.
Autorun
Parameters:
run
The run callback
Returns:
The autorun instance
tween(?easing:Easing, duration:Float, fromValue:Float, toValue:Float, update:(Float, Float) ‑> Void):Tween
className():String
inlineclearComponents():Void
component<C>(?name:String, ?component:Null<C>):C
hasComponent(name:String):Bool
removeComponent(name:String):Void