Skip to content

[FEAT] SystemBuilder API #64

@JaimeGensler

Description

@JaimeGensler

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions