Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow optional count parameter in nk.TournamentRecordWrite to update 'num_score' field #1021

Open
tmrtrn opened this issue May 8, 2023 · 0 comments

Comments

@tmrtrn
Copy link

tmrtrn commented May 8, 2023

Currently, Nakama's nk.TournamentRecordWrite function increases the 'num_score' field by one for each call, which is the desired behavior in many cases. However, we have a specific requirement where we need to be able to provide a custom value to update the 'num_score' field with a specific increment.

In our application, we collect user scores on the client side and we send the aggregated scores in a single request to the server. This approach ensures efficient communication and reduces unnecessary overhead.

We propose enhancing the nk.TournamentRecordWrite function to accept an optional count parameter that allows us to specify the desired increment for the 'num_score' field. By including this count parameter in the request, we can update the 'num_score' field in a single call while accurately reflecting the aggregated scores provided by the client.

We appreciate your consideration of this feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants