@@ -56,14 +56,17 @@ type LeaderboardsSystem interface {
5656 // GetLeaderboard returns a specified leaderboard with scores.
5757 GetLeaderboard (ctx context.Context , logger runtime.Logger , nk runtime.NakamaModule , userID , leaderboardID , ownerID string , limit int32 , cursor string ) (* Leaderboard , error )
5858
59- // Create creates a new leaderboard.
60- Create (ctx context.Context , logger runtime.Logger , nk runtime.NakamaModule , userID , id , sortOrder , operator , resetSchedule string , authoritative bool , regions []string ) error
59+ // CreateLeaderboard creates a new leaderboard.
60+ CreateLeaderboard (ctx context.Context , logger runtime.Logger , nk runtime.NakamaModule , userID , id , sortOrder , operator , resetSchedule string , authoritative bool , regions []string ) error
6161
62- // UpdateScore updates a leaderboard score .
63- UpdateScore (ctx context.Context , logger runtime.Logger , db * sql. DB , nk runtime.NakamaModule , userID , leaderboardID , ownerID , username string , score , subscore int64 , metadata map [ string ] any , operator Operator , conditionalMetadataUpdate bool ) ( * Leaderboard , error )
62+ // DeleteLeaderboard deletes an existing leaderboard .
63+ DeleteLeaderboard (ctx context.Context , logger runtime.Logger , nk runtime.NakamaModule , userID , id string ) error
6464
65- // DeleteScore deletes a leaderboard score.
66- DeleteScore (ctx context.Context , logger runtime.Logger , db * sql.DB , nk runtime.NakamaModule , userID , leaderboardID , ownerID string ) error
65+ // UpdateLeaderboard updates the user's score in the specified event leaderboard.
66+ UpdateLeaderboard (ctx context.Context , logger runtime.Logger , db * sql.DB , nk runtime.NakamaModule , userID , leaderboardID , ownerID , username string , score , subscore int64 , metadata map [string ]any , operator Operator , conditionalMetadataUpdate bool ) (* Leaderboard , error )
67+
68+ // DeleteLeaderboardScore deletes a leaderboard score.
69+ DeleteLeaderboardScore (ctx context.Context , logger runtime.Logger , db * sql.DB , nk runtime.NakamaModule , userID , leaderboardID , ownerID string ) error
6770
6871 // SetOnBeforeUpdateScore sets a custom function which will run before a leaderboard score is updated.
6972 SetOnBeforeUpdateScore (fn OnLeaderboardUpdateScore )
0 commit comments