file: Component.aus

class: Component

[22:7] extends: FxObj

Wraps an AussomComponent (subclass of FXGL Component) so Aussom users can define entity behaviors with onAdded / onUpdate / onRemoved callbacks. Attach the resulting Component to an Entity via entity.addComponent. Example: c = new Component(); c.onUpdate(::tick); entity.addComponent(c); public tick(tpf) { ... }

Methods