game-arch / mmo-arch

Base Architecture for creating scalable games using microservices through Angular, Phaser, NestJS, NATS, and MySQL
33 stars 4 forks source link

Feature Request: Inventory Management #10

Open JoeyHengst opened 4 years ago

JoeyHengst commented 4 years ago

It would be nice to have an Inventory Microservice which would manage the inventory of users.

The user should be able to insert items, update items and remove items. There should be an option to distinguish items based on a type : general items , quest items etc..

This could be made as an example or perhaps integrated in this service to also manage the inventory of Guilds / Alliances

jwhenry3 commented 4 years ago

The Inventory Microsystem should only be responsible for inserting and removing item IDs from a given (character, party, guild, etc).

Anything outside of that is under the responsibility of the use case:

Since the Inventory Microservice is for querying the items the character owns, and adding/removing items by id, using it internally between use case services ensures that the security and integrity of the service is maintained.

jwhenry3 commented 4 years ago

Use case for Party Inventory: