-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
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 entitiesfunction import(source)
- takes a JSON document like the one created byexport
and imports it into a manager
JSON format to be decided.