diff --git a/server/runtime_go_nakama.go b/server/runtime_go_nakama.go index 1296a9a4e..78a9b29e8 100644 --- a/server/runtime_go_nakama.go +++ b/server/runtime_go_nakama.go @@ -2445,7 +2445,6 @@ func (n *RuntimeGoNakamaModule) LeaderboardRecordsList(ctx context.Context, id s } } - var limitWrapper *wrapperspb.Int32Value if limit < 0 || limit > 10000 { return nil, nil, "", "", errors.New("expects limit to be 0-10000") @@ -2905,6 +2904,7 @@ func (n *RuntimeGoNakamaModule) TournamentRecordsList(ctx context.Context, tourn // @param score(type=int64) The score to submit. // @param subscore(type=int64, optional=true) A secondary subscore parameter for the submission. // @param metadata(type=map[string]interface{}, optional=true) 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 result(*api.LeaderboardRecord) The newly created leaderboard record. // @return error(error) An optional error value if an error occurred. func (n *RuntimeGoNakamaModule) TournamentRecordWrite(ctx context.Context, id, ownerID, username string, score, subscore int64, metadata map[string]interface{}, overrideOperator *int) (*api.LeaderboardRecord, error) {