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

Implement export and import to JSON #25

Open
adngdb opened this issue Feb 21, 2017 · 0 comments
Open

Implement export and import to JSON #25

adngdb opened this issue Feb 21, 2017 · 0 comments
Labels

Comments

@adngdb
Copy link
Owner

adngdb commented Feb 21, 2017

One of the biggest advantages of using the Entity System is that it makes saving and loading very easy, since all the state is in components.

Eventually there should be ways to save to and load from databases like MySQL of Postgres directly, but as a first step, having a way to export all the data of a manager into a JSON structure would be nice.

Features:

  • function export() - returns a JSON document containing all the states of all components, and the list of all entities
  • function import(source) - takes a JSON document like the one created by export and imports it into a manager

JSON format to be decided.

@adngdb adngdb added the feature label Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant