I noticed a pattern. #2200
Replies: 2 comments 1 reply
-
Resources are internally represented as components for inaccessible "entities". With min-relations components will be represented as relations I believe. |
Beta Was this translation helpful? Give feedback.
-
You're right, sort of. Both Resources as well as Relations are essentially just specialized components for their specific use case. |
Beta Was this translation helpful? Give feedback.
-
After reading the min-relations RFC, I noticed a pattern.
Component
attaches some arbitrary data to an entity.Relation
attaches some arbitrary data to an ordered pair of entities.Resource
attaches some arbitrary data to an empty tuple of entities!This seems to suggest that
Resource
,Component
, andRelation
are all special cases of a single more general concept, which is not implemented in Bevy.I'm not sure if this observation is useful, but it is interesting.
Beta Was this translation helpful? Give feedback.
All reactions