file: EntityBuilder.aus

class: EntityBuilder

[24:7] extends: FxObj

Wraps FXGL's EntityBuilder (com.almasb.fxgl.dsl.EntityBuilder), the fluent setup over a fresh Entity() used by every FXGL sample's EntityFactory @Spawns methods. Originally skipped per the no-builders rule, then pulled into scope because several FXGL DSL surfaces hand a builder back to the caller and the new Entity() + setter alternative becomes painful at scale. Construct via fxgl.entityBuilder() (empty) or fxgl.entityBuilder(spawnData) (from a SpawnData wrapper). Type-overloaded Kotlin methods become distinct Aussom names (atVec2, atPoint2D, etc.) because Aussom cannot pick between two same-arity object signatures.

Methods