guibec / rpgcraft

RPGCraft - Minecraft / Terraria / RPGMaker mashup
MIT License
8 stars 2 forks source link

Load/Save through JSON serialization #76

Closed robinlavallee closed 5 years ago

robinlavallee commented 5 years ago

Working proof of concept. You can use the debug menu and load/save at will.

Still a few rough edges that require some love:

Design idea: I'm doing like Terraria, and unlike Minecraft, separating the character save from the world save.

Introduce https://www.newtonsoft.com/json for automatic JSon serialization. May get rid of SimpleJSon which did not support it. And can't use Unity JSON since it doesn't handle inheritence properly, and I will need it to save NPCs/Entity.

robinlavallee commented 5 years ago

Darn, missed some local changes. Let's try again.