bevy/crates/bevy_ecs
Jasen Borisov 13aef05038 impl SystemParam for Option<Res<T>> / Option<ResMut<T>> (#1494)
This allows users to write systems that do not panic if a resource does not exist at runtime (such as if it has not been inserted yet).

This is a copy-paste of the impls for `Res` and `ResMut`, with an extra check to see if the resource exists.

There might be a cleaner way to do it than this check. I don't know.
2021-03-08 20:12:22 +00:00
..
macros Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
src impl SystemParam for Option<Res<T>> / Option<ResMut<T>> (#1494) 2021-03-08 20:12:22 +00:00
Cargo.toml Use rand 0.8 again (#1567) 2021-03-06 00:53:42 +00:00