addPlugin method
Installs plugin, letting it register systems, resources, and event
subscriptions. Returns this for chaining. Bevy's app.add_plugin(...).
Implementation
World addPlugin(EcsPlugin plugin) {
assert(
!_disposed,
'World.addPlugin: cannot be called after dispose. Construct a fresh '
'World.',
);
plugin.build(this);
return this;
}