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

[FEAT] SystemBuilder API #64

Open
JaimeGensler opened this issue Nov 26, 2023 · 0 comments
Open

[FEAT] SystemBuilder API #64

JaimeGensler opened this issue Nov 26, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@JaimeGensler
Copy link
Owner

JaimeGensler commented Nov 26, 2023

Describe the problem this feature solves

We need to provide a way of defining systems that doesn't rely on the transformer or on handwriting system properties.

I accidentally committed some of the toying around with this I did so could be a good starting point 🤷

Describe the solution you'd like to see

A systembuilder is probably the ideal way to handle this.
For example:

const mySystem = system()
  .query([Position, Velocity])
  .res(Time)
  .build((query, time) => { /* ... */ })

Must be well typed and extensible - probably configureable by providing an object to the system() function.

const mySystem = system({mySystemParam: MySystemParam })
  .mySystemParam() // Now defined and strongly typed
  .build()
@JaimeGensler JaimeGensler added enhancement New feature or request good first issue Good for newcomers labels Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant