-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Expose Tweens #966
Comments
@AristurtleDev and other Devs/Mods, This request seems pretty straight forward. If the requestor @bootzin just needs to know if the tweens are finished, then I think A or B should solve that without exposing the behavior of the private member It appears a public variable This variable I would assume was intended to be the count of active tweens (unsure?) Options off the top of my head: B) change C) Expose the private List of Tween Thoughts from anyone? |
It does look like As for exposing the private member, this can be debatable. I personally prefer design to show intent over just exposing everything and letting the end user make their own mistakes. For instance, Given we're on .NET 8 now, and all the new wonderful things with pulbic Span<Tween> ActiveTweens => CollectionMarshal.AsSpan(_activeTweens); This is a zero allocation return of the underlying collection from the list as a cc: @craftworkgames/monogame-extended |
Hi
I was wondering if it would be possible to expose the Tween list used inside the Tweener. Would be useful to know, for instance, when all tweens had finished processing
The text was updated successfully, but these errors were encountered: