amethyst / editor-core

Crate that allows an Amethyst game to communicate with an editor.
Other
44 stars 10 forks source link

Reduce amount of boilerplate systems #3

Closed mvesterli closed 6 years ago

mvesterli commented 6 years ago

Use a single system on which all synced components and resources are registered. This minimizes the amount of boilerplate code needed in order to use the editor as no additional systems need to be added.

The flip side of only using 1 system is that serialization is no longer running in parallel. But since it no longer has to depend on other systems, I think it should be able to run in parallel with the other game systems.

randomPoison commented 6 years ago

Thanks for putting this together! I think this is a great way to reduce boilerplate for users :+1: I have some ideas for future approaches that will allow us to register each component/resource type as a separate system again in order to regain parallelism, but for now I think ease-of-use is more important.

Give me a little bit to test your changes manually since I don't have CI setup, once I do that I'll get this merged :tada: