Replies: 2 comments 1 reply
|
So this feature was requested multiple times. I think theres actually enough demand for that ^^ I only see one major problem... This is c# and not c/c++ or rust. So we run into one huge problem, no advanced compile time statics. In flecs, if i saw that correctly, the entity relation queries are using some sort of additional descriptive meta language ( "$this") to describe what exactly is required. Thats not possible in csharp yet. While we could easily add relations, the query part would be a nightmare. So either source generation comes in handy here or some manual work. For now this can be "simulated" by using generics or just plain arrays in components :> entity.Add<(ChildOf,Parent)>();
entity.Get<ParentOf>().Childs.Add(...); |
1 reply
|
Done with : https://github.com/genaray/Arch.Extended/wiki/Relationships |
0 replies
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.
Support Entity Relationships like demonstrated here: https://ajmmertens.medium.com/building-games-in-ecs-with-entity-relationships-657275ba2c6c
This would allow to easily do hierarchies and other structured data.
All reactions