Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity relations #38

Open
Weldify opened this issue Jan 28, 2023 · 0 comments
Open

Entity relations #38

Weldify opened this issue Jan 28, 2023 · 0 comments

Comments

@Weldify
Copy link

Weldify commented Jan 28, 2023

Adding a way for entities to have relations would make the engine a lot more flexible, so here's my idea:

Each entity should have a Parent property and a Children property. Setting the parent of entity A to entity B will add entity A to B's list of children.

This is really simple and scalable, LINQ will also make working with this really pleasant! Provided entities in this engine will be lightweight, even entity "components" don't have to exist as you can just easily make them yourself with this system!

@xezno xezno added this to the Initial Release milestone Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants