public interface ArtemisPlugin
Modifier and Type | Method and Description |
---|---|
void |
setup(WorldConfigurationBuilder b)
Register your plugin.
|
void setup(WorldConfigurationBuilder b)
WorldConfigurationBuilder.dependsOn(java.lang.Class...)
as it can handle repeated dependencies,
as opposed to WorldConfigurationBuilder.with(int, com.artemis.BaseSystem...)
, which will throw an exception upon attempting to
add a pre-existing class.
Artemis will consider abstract plugin dependencies fulfilled when a concrete subclass has been registered
beforehand.
To create a common API with different implementations (like logging-api and logging-libgdx) create a superclass
plugin that is abstract, and one subclass for each implementation.b
- builder to register your dependencies with.Copyright © 2019. All rights reserved.