Spelunking-Studios / The-Caverns-Original

An exploration ARPG game made in python with pygame
2 stars 1 forks source link

Add serialization for inventories #18

Open https123456789 opened 1 year ago

https123456789 commented 1 year ago

Add a set of methods to the inventory system API for serialization of a item registry.

Ideas

For serializing:

def serialize(self) -> String

And then to deserialize:

def deserialize(self, source: String) -> Inventory

This is planned to done (see this comment), but I wanted to make an issue to sort of remind me.

LGgameLAB commented 1 year ago

Me likey. I'm leaving this entirely up to you.

https123456789 commented 1 year ago

Okay, I was planning on doing it anyway :sweat_smile:. Glad you like the idea though.