Inventory system #6

Open
opened 2025-10-24 14:10:58 +02:00 by kazhnuz · 0 comments
Owner

conception

  • Items need an owner, and can be either in INVENTORY (field = null), in a LOCATION, in a CONTAINER or in the POSTBOX
  • An Owner is a group of character and can have different type (INDIVIDUAL, COUPLE/POLYCULES, CLAN)
  • If there is no location and belong to the "solo owner" -> Shown in inventory
  • An item (in database) have a numeric id, an itemId (a unique string denomination), a number of element, a state, and a set of custom variables, and a name
  • TODO : data structure for items

API

  • GET /player/{charId}/inventory -> get the inventory list of the character
  • GET /player/{charId}/inventory/{ownerId} -> get the current city inventory for owner (need to be owner by the character)
  • GET /player/{charId}/items/{item} -> get item data
  • DELETE /player/charId/items/item -> drop n number of item
  • POST /player/charId/items/item -> use the item

TODO API to send items

**conception** - Items need an owner, and can be either in INVENTORY (field = null), in a LOCATION, in a CONTAINER or in the POSTBOX - An Owner is a group of character and can have different type (INDIVIDUAL, COUPLE/POLYCULES, CLAN) - If there is no location and belong to the "solo owner" -> Shown in inventory - An item (in database) have a numeric id, an itemId (a unique string denomination), a number of element, a state, and a set of custom variables, and a name - TODO : data structure for items **API** - [ ] GET /player/{charId}/inventory -> get the inventory list of the character - [ ] GET /player/{charId}/inventory/{ownerId} -> get the current city inventory for owner (need to be owner by the character) - [ ] GET /player/{charId}/items/{item} -> get item data - [ ] DELETE /player/charId/items/item -> drop n number of item - [ ] POST /player/charId/items/item -> use the item TODO API to send items
kazhnuz added this to the MVP 1 milestone 2025-10-24 14:12:14 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
game-projects/lifesim#6
No description provided.