Skip to content
Daan van Yperen edited this page Sep 29, 2015 · 18 revisions

World is an isolated container for your entities, systems and components.

Creating World

WorldConfiguration config = new WorldConfigurationBuilder()
	.dependsOn(MyPlugin.class)
	.with(
		new MySystemA(),
		new MySystemB(),
		new MySystemC(),
	).build();

World world = new World(config);

See WorldConfigurationBuilder

Upon world instantiation, all systems initialized and injected. Instance entities and assets via your systems and managers.

Processing World

Call the following piece of code each frame to .

world.setDelta(delta);
world.process();

Filling your world

See Entity, Component

Clone this wiki locally