Open alice-i-cecile opened 3 years ago
I'm very glad that you found it useful! Take whatever you need from the repo.
Because you're integrating it directly into Bevy you could consider using it as a wholesale replacement for the current schedule, a notion I wrote up about here: https://github.com/maplant/bevy-tick-timers/blob/master/about-tick-timers.org#a-timer-based-approach-for-scheduling
I think that the effort and amount of changes would probably make it not worthwhile, however it does have the nice property that single use timers can take self: Box<Self>
and thus can move items out of their struct without mem::replace
, while timers that continuously rerun still take &mut self
.
Let me know if you need any help from me!
What problem does this solve or what need does it fill?
From the bevy_tick_timers crate.
There are three arguments for moving this in-tree IMO:
What solution would you like?
Borrow from @maplant's solid foundation and create a Bevy drop-in-replacement for ordinary real-time timers.
What alternative(s) have you considered?
Continue to rely on a third-party library. I've argued above why I think this is inferior.
Additional context
None.