addSystem method

World addSystem(
  1. System system
)

Adds system to the schedule. Runs every update in registration order. Returns this for chaining.

Implementation

World addSystem(System system) {
  assert(
    !_disposed,
    'World.addSystem: cannot be called after dispose. '
    'Construct a fresh World.',
  );
  _systems.add(system);
  system.init(this);
  return this;
}