EntityEvent cannot be derived for enums
Open
A-ECS
C-Bug
D-Macros
D-Modest
S-Ready-For-Implementation
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version and features
0.17.2
## What you did
Porting to 0.17, where I previously had an `Event` used as an entity event for an enum.
```rust
#[derive(EntityEvent)]
enum A {}
```
## What went wrong
> EntityEvent can only be derived for structs.
Contributor guide
Research direction
Start at the EntityEvent derive entry point and reproduce the reported diagnostic with `#[derive(EntityEvent)] enum A {}`. Compare the enum case with the currently supported struct case and add coverage for the intended enum behavior. Done means the enum no longer produces the reported struct-only error and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100