urben1680

Results 11 comments of urben1680

An associated constant `bool` on the `States` trait (and it's derive) could be the simple fix here that determines what should happen if the `StateNext` resource is updated with a...

@nightactive-git Oh too bad, I did not test it as it seemed obvious to me that it would work. Sorry. This might work better, I only tested it if it...

Can you add a test that shows that `Query` is not causing UB, like via multiple mutable references to the same state? I don't really see a solution to this...

This weekend I had `bevy::ecs::world::Entry` and both `bevy::platform::collections::{hash_map::Entry, hash_set::Entry}` in the scope. The latter two are from hasbrown but the first could have a different name, like `ComponentEntry`.

What we also missed is that `Ord` needs to be transitive. This is not the case with a wrapping number however. When `a < b` and `b < c`, then...

> some utility methods like is_newer_than, etc built on it `Ordering` has these utility methods itself though, if you are fine with having to interpret greatness as recentness. > The...

I removed (`Partial`)`Ord` and introduced `cmp_age_approx`. While the type is `Copy`, I still used `&Self` for the argument to make it easier to use for places that expects an ordering...

Thinking of it this probably should have the returned ordering reversed _or_ not be called "cmp_**age**_approx". :thinking: `First` is "older" than `First + 1`.

> @urben1680 has a crate for reversible schedules that could be vastly simplified if it didn't have to work around the scheduling API's imposed execution model. To give more insight...