Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions ashley/src/com/badlogic/ashley/core/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,22 +234,24 @@ public void update(float deltaTime){
ImmutableArray<EntitySystem> 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);
Expand Down
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
}

Comment on lines +15 to +27
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be part of the PR.

ext {
projectGroup = "ashley"
gdxVersion = "1.10.0"
Expand Down