CottonMC / CottonECS

MIT License
0 stars 1 forks source link

More component holders and autoserialization #2

Open Ansraer opened 5 years ago

Ansraer commented 5 years ago

Just some thoughts I had while reading Falkreon PR: IMO we need to support chunk, world, and maybe dimension (could be a sub thing of world) component holders. Another feature that I would like to see is some form of auto serialization so that data is saved and loaded whenever the world is closed or opened.

falkreon commented 5 years ago

I support autoserialization for anything added via registerExtraComponent. I strongly suggest not autosaving builtins because at least in my case, those will be wrappers (I'll be manually saving the originals those wrap), and at least at this moment there's no way to override autosave behavior!