Idea

autreras avatar image
autreras suggested

Database writing lock

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

Title DataIn-Game Economycommunity
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

No Comments

·

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.