MultiverseMiner / multiverseminer

Join the chat: #multiverseminer on irc.freenode.net
http://dev.multiverseminer.com
Other
42 stars 18 forks source link

Design and implement inventory storage. #148

Open morgajel opened 10 years ago

morgajel commented 10 years ago

Do we want a simple json blob in a text field that gets pulled, updated and pushed? That would be the easiest and worst way to implement.

I suspect the best alternative is an inventory association table between a player (or world or storehouse?) and items, including an amount.

meyer9 commented 10 years ago

Did not know I couldn't assign 2 people. IMO, I think we should use some relationship to an ItemStack model.

antlong commented 10 years ago

dev.multiverseminer.com/admin @jmeyer2k

meyer9 commented 10 years ago

Itemstack would be an item, an amount, a type (player, planet, etc), and a player.

antlong commented 10 years ago

Ok lets do it. Can you handle that?

On Wed, Aug 27, 2014 at 12:17 PM, Julian Meyer notifications@github.com wrote:

Itemstack would be an item, an amount, a type (player, planet, etc), and a player.

— Reply to this email directly or view it on GitHub https://github.com/MultiverseMiner/multiverseminer/issues/148#issuecomment-53599021 .

meyer9 commented 10 years ago

Yeah sure.

morgajel commented 10 years ago

@jmeyer2k I suggest an Inventory model to act as an association table between items and players; It would work the same way the Ingredients model works between Item and Item.

meyer9 commented 10 years ago

I thought of that, but the problem is that the table would get really big for not a very good reason as well as it would be more difficult to implement giving each player more than one inventory (planet inventories, storage, etc)

EDIT: oops, never mind, they would be the same size. And I guess we are sort of thinking of the same thing.