Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tween completion systems with entity as input #128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

infmagic2047
Copy link

#111 added the ability to run one-shot systems upon tween completion. However, there was no way to distinguish between different entities that use the same system as callback. This PR changes the callback systems to take the entity ID as input instead.

I removed the old API that runs systems without inputs, as I believe it provides little additional value over the new API. The new API is also more consistent with other "with_completed" methods, which provide the entity ID in callback functions and events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant