Skip to content

Mutually-exclusive Bevy components derived from enums

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Waridley/bevy-enum-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages