Create components for a container entity. Returns an object suitable for spreading into spawn().
Optional
const group = ecs.spawn({ ...createContainerComponents(new Container(), { x: 0, y: 0 }),}); Copy
const group = ecs.spawn({ ...createContainerComponents(new Container(), { x: 0, y: 0 }),});
Create components for a container entity. Returns an object suitable for spreading into spawn().