file: GameWorld.aus

class: GameWorld

[20:7] extends: FxObj

Wraps FXGL's GameWorld, the container for every entity in a scene. Aussom users add entities directly (for ad-hoc spawning) or register an EntityFactory and call spawn(name, data) to produce entities from a factory method. addWorldListener observes entity-level add and remove events. GameWorld is usually obtained via fxgl.getGameWorld in chunk 6; direct construction is supported for tests and standalone use.

Methods