v2 / vlib / v / fmt / tests / enum_attributes_keep.vv
16 lines · 14 sloc · 445 bytes · 757929392e0e7a75fc1272116460981e589737d5
Raw
1// CollisionType is an enum that categorizes entities for the purpose of collision detection, used in Collider ECS component.
2// The flag attribute allows for multiple EntityType values to be combined, enabling entities to be categorized as multiple types.
3@[flag]
4pub enum CollisionType {
5 obstacle
6 chicken
7 egg
8}
9
10// Another descriptive comment with a linebreak separated from the next enum decl.
11
12@[flag]
13pub enum Direction {
14 left
15 right
16}
17