NateTheGreatt / bitECS

Flexible, minimal, data-oriented ECS library for Typescript
Mozilla Public License 2.0
944 stars 84 forks source link

suggestion: bring back defineSystem #44

Closed sebovzeoueb closed 3 years ago

sebovzeoueb commented 3 years ago

I feel that the new way of defining systems as a function that returns world is anthithetical to one of my favourite things about bitECS: the lack of boilerplate code.

To this end, I suggest you bring back defineSystem, and make that add the world return instead of the user having to add it on every system themself.

Pls close if you don't agree, just my opinion!

NateTheGreatt commented 3 years ago

i've decided to leave defineSystem in as a legacy feature for now