Giter VIP home page Giter VIP logo

ent-comp's Issues

Add systems and storage back to the object prototype?

I've been using the noa package for a while and recently decided to switch to using a fork so I could update the dependencies. When I updated ent-comp, it seems that storage, systems and renderSystems are no longer accessible from the outside.

I'm mostly using it to quickly check states of different entities in the Chrome console, which is much faster than having to use the API calls for every single component type. (I simply type noa in the console and have access to everything).

So I was wondering if you could possibly add them back to the object through this.storage, etc. (seeing that this.components is still available) or provide another way to quickly get all of this data.

Add TypeScript?

So idk if you really need it since you seem to be doing everything in JS, but I've rewritten ent-comp in TypeScript. I could submit a Pull Request if you wanted to add it in.

I've also added/modified some things, so it might not be the best idea to merge it as is.
For example, I removed multi-components because I thought that you can just have array inside the component's state (and they were forcing me to check for Array.isArray every time due to TypeScript's strict typing nature). I've also upgraded everything to ES modules, added cleaner JSDoc, and added some extra functionality like getAllComponents().

So yeah, if you want to incorporate some/all of the new stuff I can make a pull request, if not, that's totally fine.

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.