Waridley / bevy-enum-components

Mutually-exclusive Bevy components derived from enums

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bevy-enum-components

Mutually-exclusive Bevy components derived from enums.

Each variant is stored as a separate component, but the current variant can only be changed via EntityCommands. Structs are generated for querying for particular variants, eliminating the need to match on the enum if a system should only run for entities with a particular variant.

Usage

see the Avatar example

About

Mutually-exclusive Bevy components derived from enums

License:Apache License 2.0


Languages

Language:Rust 100.0%