Repository navigation
I noticed a pattern. #2200
finegeometer
started this conversation in
General
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. |
0 replies
|
You're right, sort of. Both Resources as well as Relations are essentially just specialized components for their specific use case. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
After reading the min-relations RFC, I noticed a pattern.
Componentattaches some arbitrary data to an entity.Relationattaches some arbitrary data to an ordered pair of entities.Resourceattaches some arbitrary data to an empty tuple of entities!This seems to suggest that
Resource,Component, andRelationare 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.
All reactions