Giter Club home page Giter Club logo

entity_component's People

Contributors

annekitsune avatar tgolsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tgolsson erikwdev

entity_component's Issues

More robust approach to filtering/grouping

First off, I'd just like to thank you for the awesome job you've done here.
I just recently learned about the ECS pattern, and having such a simple, straight to the point, zero-bullshit API, means that I can worry about learning the pattern rather than just reading documentation.

And so far it's also been a great foundation to build upon. It's all very transparent, and I've found it easy to extend it with my own abstractions.
My only issue is that the join! macro is super fragile. In fact so much that I ended up just working with the bitsets directly.
It's like the one dirty spot on an otherwise shiny surface, and it also feels a bit out of place with everything else being so transparent and extensible.

Perhaps something nice could be done with a derive macro or something, so instead of doing all your joining business "on the spot", somehow tie filtering to the type system, and make it possible to create reusable groups?
This could potentially be used not just for systems, but also as a convenient way to spawn entities with common sets of components.
I imagine it would be easier to maintain, and that it would feel more like the rest of the API.

I realize you haven't worked on this project for a while, but let me know what you think. Perhaps I'll take a crack at it when I find the time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.