Loading...
Searching...
No Matches
AccelByte.Server.ServerAchievement Class Reference
Inheritance diagram for AccelByte.Server.ServerAchievement:

Public Member Functions

void UnlockAchievement (string userId, string achievementCode, ResultCallback callback)
 Unlock specific achievement.
void BulkUnlockAchievement (string userId, string[] achievementCodes, ResultCallback< BulkUnlockAchievementResponse[]> callback)
 Unlock multiple achievements via achievementCode for the current user.

Additional Inherited Members

Properties inherited from AccelByte.Core.WrapperBase
Utils.AccelByteIdValidator IdValidator [get]

Member Function Documentation

◆ BulkUnlockAchievement()

void AccelByte.Server.ServerAchievement.BulkUnlockAchievement ( string userId,
string[] achievementCodes,
ResultCallback< BulkUnlockAchievementResponse[]> callback )
inline

Unlock multiple achievements via achievementCode for the current user.

Parameters
userIdUser id of user to unlock achievements for.
achievementCodesArray of achievement codes to be unlocked.
callbackReturns a Result via callback that contains an array of BulkUnlockAchievementResponse when completed.

◆ UnlockAchievement()

void AccelByte.Server.ServerAchievement.UnlockAchievement ( string userId,
string achievementCode,
ResultCallback callback )
inline

Unlock specific achievement.

Parameters
userIdThe id of the user who will receive achievement.
achievementCodeThe achievement code which will be unlock.
callbackReturns a Result via callback when completed.