Skip to content

Commit

Permalink
server/runtime_go: add missing argument to LeaderboardRecordWrite doc (
Browse files Browse the repository at this point in the history
  • Loading branch information
syhpoon authored Jun 20, 2023
1 parent a0afbf2 commit 71a620d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/runtime_go_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,7 @@ func (n *RuntimeGoNakamaModule) LeaderboardRecordsList(ctx context.Context, id s
// @param score(type=int640) The score to submit.
// @param subscore(type=int640) A secondary subscore parameter for the submission.
// @param metadata(type=map[string]interface{}) The metadata you want associated to this submission. Some good examples are weather conditions for a racing game.
// @param overrideOperator(type=*int) An override operator for the new record. The accepted values include: 0 (no override), 1 (best), 2 (set), 3 (incr), 4 (decr). Passing nil is the same as passing a pointer to 0 (no override), which uses the default leaderboard operator.
// @return record(*api.LeaderboardRecord) The newly created leaderboard record.
// @return error(error) An optional error value if an error occurred.
func (n *RuntimeGoNakamaModule) LeaderboardRecordWrite(ctx context.Context, id, ownerID, username string, score, subscore int64, metadata map[string]interface{}, overrideOperator *int) (*api.LeaderboardRecord, error) {
Expand Down

0 comments on commit 71a620d

Please sign in to comment.