dominion-dev / dominion-ecs-java

Insanely fast ECS (Entity Component System) for Java
https://dominion-dev.github.io
MIT License
288 stars 17 forks source link

Support for optional, not, relationships etc #184

Closed pfeodrippe closed 10 months ago

pfeodrippe commented 11 months ago

Hi, great lib! I’m using it for my Clojure small game and it has been a breeze :D

Do you think that we could support optional, not, relationships (as in https://ajmmertens.medium.com/building-games-in-ecs-with-entity-relationships-657275ba2c6c) in Dominion?

Keep the good work o/

pfeodrippe commented 11 months ago

Oh yeah, forgot, not is already supported by without, but I guess you understood what I have meant o/

pfeodrippe commented 11 months ago

One other stuff, I guess it's feasible to get all the components in the world, right? Using the nodes and such

enricostara commented 10 months ago

Hi @pfeodrippe ,

to get all the dominion entities yo can use the Dominion.findAllEntities() method.

Please open a new issue if anything else is unclear, thanks!

pfeodrippe commented 10 months ago

Hi @pfeodrippe ,

to get all the dominion entities yo can use the Dominion.findAllEntities() method.

Please open a new issue if anything else is unclear, thanks!

Hi Enrico, thanks!

So a component is an entity in Dominion?

For the original question (optional, not etc), do you know if it’s feasible?