Available with tilemap plugin
@:dox(show)widthChange(current:Int, previous:Int):Void
Event when width field changes.
@:dox(show)heightChange(current:Int, previous:Int):Void
Event when height field changes.
@:dox(show)sourceChange(current:String, previous:String):Void
Event when source field changes.
new()
@:value(null)texture:Texture = null
The texture used for this image, if loaded and ready to display
@:value(-1)@serializewidth:Int = -1
The image width in points
@:value(-1)@serializeheight:Int = -1
The image height in points
@:value(null)@serializesource:String = null
The reference to the tileset image file, if any
invalidateWidth():Void
invalidateHeight():Void
invalidateSource():Void
@:dox(show)observedDirty(instance:Model, fromSerializedField:Bool):Void
Event when any observable value as changed on this instance.
@:dox(show)_modelDirty(model:Model):Void
@:dox(show)serialize():Void
Event when this object gets serialized.
@:dox(show)deserialize():Void
Event when this object gets deserialized.
@:dox(show)dispose(entity:Entity):Void
@:dox(show)destroy(entity:Entity):Void
@:value(false)observedDirty:Bool = false
Default is false, automatically set to true when any of this instance's observable variables has changed.
false
true
@componentserializer:SerializeModel
@:value(false)dirty:Bool = false
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