diff --git a/ashley/src/com/badlogic/ashley/core/Engine.java b/ashley/src/com/badlogic/ashley/core/Engine.java index fdd019d..081ed5a 100644 --- a/ashley/src/com/badlogic/ashley/core/Engine.java +++ b/ashley/src/com/badlogic/ashley/core/Engine.java @@ -234,22 +234,24 @@ public void update(float deltaTime){ ImmutableArray systems = systemManager.getSystems(); try { for (int i = 0; i < systems.size(); ++i) { - EntitySystem system = systems.get(i); - - if (system.checkProcessing()) { - system.update(deltaTime); - } - - while(componentOperationHandler.hasOperationsToProcess() || entityManager.hasPendingOperations()) { - componentOperationHandler.processOperations(); - entityManager.processPendingOperations(); - } + updateSystem(systems.get(i)) } } finally { updating = false; } } + + protected void updateSystem(EntitySystem system) { + if (system.checkProcessing()) { + system.update(deltaTime); + } + + while(componentOperationHandler.hasOperationsToProcess() || entityManager.hasPendingOperations()) { + componentOperationHandler.processOperations(); + entityManager.processPendingOperations(); + } + } protected void addEntityInternal(Entity entity) { entity.componentAdded.add(componentAdded); diff --git a/build.gradle b/build.gradle index a251860..7ab26dd 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,19 @@ subprojects { } } +group 'com.badlogicgames.ashley' +version '1.7.5' + +jar { + manifest { + attributes 'Implementation-Title': 'ashley', + 'Implementation-Version': version + } + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } +} + ext { projectGroup = "ashley" gdxVersion = "1.10.0"