bevy/crates/bevy_ecs/macros
Tim Overbeek da57dfb62f
DeriveWorld for enums (#17496)
# Objective

Fixes #17457 

## Solution

#[derive(FromWorld)] now works with enums by specifying which variant
should be used.

## Showcase

```rust
#[Derive(FromWorld)]
enum Game {
    #[from_world]
    Playing, 
    Stopped
}
```

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
2025-01-23 04:06:00 +00:00
..
src DeriveWorld for enums (#17496) 2025-01-23 04:06:00 +00:00
Cargo.toml Bump Version after Release (#17176) 2025-01-06 00:04:44 +00:00