hi there, i was learning socket.io and now im trying with colysues.
my state structure is something like that, e.q:
this.state = {
players: {
'someid1': {
position: {
x: 0,
y: 0,
},
destinationPosition: {
x: 0,
y: 0,
}
}
}
}
and then in my client in Unity i am clicking on ground for example in position (x:100, y:100) and send that to the server, then i want to change destinationPosition as whole object, x and y at once, is it possible with json-patch ?
Right now i have to change x and y separately and then in my client read that property again separately but i want to get them at once (i want to receive position = {x: 100, y: 100} object in my unity client).
Chers!