-
Notifications
You must be signed in to change notification settings - Fork 18
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
Comments
Did not know I couldn't assign 2 people. IMO, I think we should use some relationship to an ItemStack model. |
dev.multiverseminer.com/admin @jmeyer2k |
Itemstack would be an item, an amount, a type (player, planet, etc), and a player. |
Ok lets do it. Can you handle that? On Wed, Aug 27, 2014 at 12:17 PM, Julian Meyer [email protected]
|
Yeah sure. |
@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. |
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. |
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.
The text was updated successfully, but these errors were encountered: