Git Product home page Git Product logo

stitch's People

Contributors

sayhisam1 avatar ukendio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ukendio

stitch's Issues

Add more examples

Currently the only example is tetris.

Adding more examples (even if it's just small snippets of code to docs) would be immensely helpful in introducing newer developers to Stitch.

Add way to validate entity a component attaches to

Currently there's no way to enforce that an entity should be of a specific type when a component attaches to it.

For example, you may want to attach the Equipped component only to Roblox Tools. Ideally there'd be an error if you tried to add an Equipped component to anything but a tool.

ComponentDefinition validators are key-specific

Currently, the validators property of ComponentDefinitions is a map from key to function. This means that arbitrary keys cannot be validated.

Proposed changes:

  • rename validators -> validator
  • validator is now a function that takes in the entire data dict, and returns a bool (similar to t library)

This change also has the neat side-effect of supporting t directly, since users can now pass their t typecheck directly to validator.

I'm not entirely sure what to name the argument - we may want to add support for validating the entity that a component is attached to.

Add observers to Stitch

Immutability simply isn't performant enough for large games. I am re-adding observers and events to Stitch to solve this issue.

Observers should themselves be immutable though (see Rx)

Leaving this up as an issue for discussion on how this should be implemented

Support more options in ReplicationSystem

Currently, the ReplicationSystem only supports a simple on/off flag for each component.

It'd be nice to have a way to whitelist/blacklist which clients data should be sent to.

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.