Class
MainWorld
View sourceConstructor label for the app’s main world.
MainWorld is a label, not a World instance. Use it with
App#setWorld to create a world under this label and with
App#defaultWorld to select it as the app’s default. The
CorePlugin uses this label for the app’s main world.
If you configure an app without CorePlugin, create the world with
App#setWorld before selecting it with App#defaultWorld;
selecting a label does not create a world.
Examples
import { App, MainWorld } from 'wima'
const app = new App()
.setWorld(MainWorld)
.defaultWorld(MainWorld)
const mainWorld = app.getWorld(MainWorld)
const defaultWorld = app.getWorld()