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

Trigger observers when TweenCompleted event is sent #133

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

Peepo-Juice
Copy link
Contributor

This PR is very simple: trigger observers when the TweenCompleted event gets sent out. I added this right next to event.send() so it will always happen if use "with_completed_event".

However, we may want to add an equivalent to "with_completed_event" so its opt-in, i.e. "with_completed_trigger" and "with_completed_trigger_targets".

For now, this is the easiest solution to get the ball rolling on this.

@musjj
Copy link

musjj commented Nov 24, 2024

@djeedai

Any chance this can get merged soon? Observers make it a lot easier to deal with entity-based events. It looks like that the only failing check is the decreased coverage, but I don't see how that can be improved (false negative?).

src/tweenable.rs Outdated Show resolved Hide resolved
src/tweenable.rs Outdated Show resolved Hide resolved
Peepo-Juice and others added 2 commits November 26, 2024 08:45
remove global trigger, as per suggestion

Co-authored-by: musjj <[email protected]>
remove entity array as input for trigger_targets, as per suggestion

Co-authored-by: musjj <[email protected]>
src/tweenable.rs Outdated Show resolved Hide resolved
removed another global trigger

Co-authored-by: musjj <[email protected]>
src/tweenable.rs Outdated Show resolved Hide resolved
@djeedai djeedai added the enhancement New feature or request label Dec 9, 2024
@djeedai djeedai merged commit 6607f9c into djeedai:main Dec 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants