method
Prefab.spawn
Prefab.spawn(name: s) -> entity
Spawns the prefab whose name matches the string, with all its presets, and returns the new entity — or -1 when no prefab has that name. Set what varies per spawn afterwards through Prop.of(entity).
Example
# doc-check: skip — illustrative let e = Prefab.spawn(name: roster.roll()) Position.of(e).x = tile.x * 16