bevy/crates/bevy_ecs/src/system
dis-da-moe 8853bef6df implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633)
# Objective

- Fixes #5432 
- Fixes #6680

## Solution

- move code responsible for generating the `impl TypeUuid` from `type_uuid_derive` into a new function, `gen_impl_type_uuid`.
- this allows the new proc macro, `impl_type_uuid`, to call the code for generation.
- added struct `TypeUuidDef` and implemented `syn::Parse` to allow parsing of the input for the new macro.
- finally, used the new macro `impl_type_uuid` to implement `TypeUuid` for the standard library (in `crates/bevy_reflect/src/type_uuid_impl.rs`).
- fixes #6680 by doing a wrapping add of the param's index to its `TYPE_UUID`

Co-authored-by: dis-da-moe <84386186+dis-da-moe@users.noreply.github.com>
2023-02-16 17:09:44 +00:00
..
commands Add a SystemParam primitive for deferred mutations; allow #[derive]ing more types of SystemParam (#6817) 2023-02-06 21:57:57 +00:00
exclusive_function_system.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
exclusive_system_param.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
function_system.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
mod.rs Allow piping run conditions (#7547) 2023-02-07 22:22:16 +00:00
query.rs add UnsafeWorldCell abstraction (#6404) 2023-01-27 00:12:13 +00:00
system.rs Allow piping run conditions (#7547) 2023-02-07 22:22:16 +00:00
system_param.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
system_piping.rs Allow piping run conditions (#7547) 2023-02-07 22:22:16 +00:00