What would be the most efficient way to update inventory data from a client? I have a grid based inventory system similar to Minecraft and I couldn’t really figure out the best way to do this.
Some methods I’ve thought of:
- Save a list of all the interactions and send it to the server to update one by one
- Send the updated inventory layout and have the server check if new layout is valid(not sure how I would do this on the server)
- Send data to server every time a new interaction has happened
When I say interaction, I mean like moving from 1,2 to 1,4 in the grid.
Here’s an example of how my inventory works:
Any help is appreciated!