Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design and implement inventory storage. #148

Open
morgajel opened this issue Aug 26, 2014 · 7 comments
Open

Design and implement inventory storage. #148

morgajel opened this issue Aug 26, 2014 · 7 comments
Assignees

Comments

@morgajel
Copy link
Contributor

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.

@morgajel morgajel added this to the v0.4.0 release milestone Aug 26, 2014
@meyer9 meyer9 assigned meyer9 and antlong and unassigned antlong and meyer9 Aug 27, 2014
@meyer9
Copy link
Contributor

meyer9 commented Aug 27, 2014

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

@antlong
Copy link
Contributor

antlong commented Aug 27, 2014

dev.multiverseminer.com/admin @jmeyer2k

@meyer9
Copy link
Contributor

meyer9 commented Aug 27, 2014

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

@antlong
Copy link
Contributor

antlong commented Aug 27, 2014

Ok lets do it. Can you handle that?

On Wed, Aug 27, 2014 at 12:17 PM, Julian Meyer [email protected]
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
#148 (comment)
.

@meyer9
Copy link
Contributor

meyer9 commented Aug 27, 2014

Yeah sure.

@meyer9 meyer9 assigned meyer9 and unassigned antlong Aug 27, 2014
@morgajel
Copy link
Contributor Author

@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
Copy link
Contributor

meyer9 commented Aug 27, 2014

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.

@meyer9 meyer9 assigned morgajel and unassigned meyer9 Aug 28, 2014
@Belar Belar assigned Belar and morgajel and unassigned morgajel and Belar Sep 1, 2014
@Belar Belar removed the UI-related label Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants