public void setup(WorldConfigurationBuilder b) { b.dependsOn(WorldConfigurationBuilder.Priority.HIGH, SuperMapper.class); } }
public void setup(WorldConfigurationBuilder b) { b.dependsOn(WorldConfigurationBuilder.Priority.HIGH, SuperMapper.class); } }
/** * Specify dependency on systems/plugins. * <p/> * Managers track priority separate from system priority, and are always added before systems. * <p> * Artemis will consider abstract plugin dependencies fulfilled when a concrete subclass has been registered * beforehand. * * @param types required systems. * @return this */ public final WorldConfigurationBuilder dependsOn(Class... types) { return dependsOn(Priority.NORMAL, types); }
/** * Specify dependency on systems/plugins. * <p/> * Managers track priority separate from system priority, and are always added before systems. * <p> * Artemis will consider abstract plugin dependencies fulfilled when a concrete subclass has been registered * beforehand. * * @param types required systems. * @return this */ public final WorldConfigurationBuilder dependsOn(Class... types) { return dependsOn(Priority.NORMAL, types); }
@Override public void setup(WorldConfigurationBuilder b) { b.register(new ProfilerInvocationStrategy()); b.dependsOn(WorldConfigurationBuilder.Priority.LOWEST + 1000,ProfilerSystem.class); } }
@Override public void setup(WorldConfigurationBuilder b) { b.register(new ExtendedComponentMapperFieldResolver()); b.dependsOn(ExtendedComponentMapperManager.class); } }
@Override public void setup(WorldConfigurationBuilder b) { b.register(new ExtendedComponentMapperFieldResolver()); b.dependsOn(ExtendedComponentMapperManager.class); } }
@Override public void setup(WorldConfigurationBuilder b) { b.register(new ProfilerInvocationStrategy()); b.dependsOn(WorldConfigurationBuilder.Priority.LOWEST + 1000,ProfilerSystem.class); } }
protected World createWorld() { return new World(new WorldConfigurationBuilder() // keeps components available until all listeners have been called. // Use this if your systems need to access components to clean up after removal. .alwaysDelayComponentRemoval(true) // Describes dependencies on plugins. You can find more example plugins commented out in build.gradle. .dependsOn( //EntityLinkManager.class, //OperationsPlugin.class, ProfilerPlugin.class, FluidEntityPlugin.class) .with( // put your own systems here! With the default InvocationStrategy they are called in order each frame. new ExampleSystem() ).build()); }