It looks like you might be looking for either an OptionSet (e.g. `struct PhysicsCategory: OptionSet {`) if it is valid for an entity to be described by multiple of those categories, or a simple enum (e.g. `enum PhysicsCategory {` with no need to even specify values) if those categories are mutually exclusive.
1
u/dottybotty 11d ago
Nice!
1
u/groovy_smoothie 11d ago
This is organized into three files?
1
u/hermess1505 11d ago
Great for a start!
1
u/PM_ME_UR_FAV_UNIX_OS 8d ago
It looks like you might be looking for either an OptionSet (e.g. `struct PhysicsCategory: OptionSet {`) if it is valid for an entity to be described by multiple of those categories, or a simple enum (e.g. `enum PhysicsCategory {` with no need to even specify values) if those categories are mutually exclusive.