It would be very helpful to allow sending requests with locks to avoid dataraces.
For example, we would like to have a global counter of how many players have accessed certain part of the game. Or a system to remember how many players took a decision "yes" while how many players took a decision "no".
There could be a LockQueryRequest for summing or substracting a certain value associated with a key. For example: TitleData: { "PlayerDecisionsYes": 2, "PlayerDecisionsNo": 3, }
We could call: serverApi.LockQueryInternalDataRequest("PlayerDecisionsYes", "+1")
If we want to rollback a decision: serverApi.LockQueryInternalDataRequest("PlayerDecisionsYes", "-1")
This would allow a community voting system and other interesting features.
Thanks for your attention