spawn method

EntityCommands spawn([
  1. SceneDashBundle? bundle
])

Reserves an entity and queues bundle.

Implementation

EntityCommands spawn([SceneDashBundle? bundle]) {
  final entity = _world.entities.spawn();
  if (bundle != null) {
    _push(_opBundle, entity, bundle, Object);
  }
  return EntityCommands(this, entity);
}