.NET Client Reference
Class Achievements
Namespace: PlayerIOClient
Language: C# / .NET
The Player.IO Achievements service
Properties | |||
---|---|---|---|
public Achievement[] |
The list of all achievements; the values of Progress and ProgressGoal will indicate whether the achievement is started/pending/complete. |
||
Methods | |||
public void |
Add a handler to the OnComplete event |
||
public Achievement |
This method gets the specified achievement |
||
public Dictionary<string, Achievement[]> |
Load achievements for the specified users. |
||
public void |
Add or subtract from the current progress of an achievement. |
||
public Achievement |
Add or subtract from the current progress of an achievement. |
||
public void |
Add or subtract from the current progress of an achievement. |
||
public Achievement |
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement. |
||
public void |
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement. |
||
public void |
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement. |
||
public void |
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress) |
||
public Achievement |
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress) |
||
public void |
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress) |
||
public void |
Sets the progress of the specified achievement. |
||
public void |
Sets the progress of the specified achievement. |
||
public Achievement |
Sets the progress of the specified achievement. |
||
public void |
Refreshes MyAchievements |
||
public void |
Refreshes MyAchievements |
||
public void |
Refreshes MyAchievements |
Achievements.MyAchievements
public Achievement[] |
|
The list of all achievements; the values of Progress and ProgressGoal will indicate whether the achievement is started/pending/complete.
Achievements.AddOnComplete
public void |
|
Add a handler to the OnComplete event
Arguments
AchievementCompletedEventHandler | onCompleteHandler |
Achievements.Get
public Achievement |
|
This method gets the specified achievement
Arguments
string | achievementId |
The id of the achievement to get |
Achievements.Load
public Dictionary<string, Achievement[]> |
|
Load achievements for the specified users.
Arguments
String[] | userIds |
Array of userIds to load achievements for. |
Achievements.ProgressAdd
public void |
|
Add or subtract from the current progress of an achievement.
Arguments
string | achievementId |
The id of the achivement to add progress to. | |
int | progressDelta |
The delta value that will be added to the current progress of the achievement. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. | |
Callback<PlayerIOError> | errorCallback |
Callback that will be called instead of successCallback if an error occurs. |
Achievements.ProgressAdd
public Achievement |
|
Add or subtract from the current progress of an achievement.
Arguments
string | achievementId |
The id of the achievement to add progress to. | |
int | progressDelta |
The delta value that will be added to the current progress of the achievement. |
Achievements.ProgressAdd
public void |
|
Add or subtract from the current progress of an achievement.
Arguments
string | achievementId |
The id of the achievement to add progress to. | |
int | progressDelta |
The delta value that will be added to the current progress of the achievement. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. |
Achievements.ProgressComplete
public Achievement |
|
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement.
Arguments
string | achievementId |
The id of the achievement to complete. |
Achievements.ProgressComplete
public void |
|
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement.
Arguments
string | achievementId |
The id of the achievement to complete. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. |
Achievements.ProgressComplete
public void |
|
Complete the specified achievement, by setting the progress to the maximum (ProgressGoal) of the achievement.
Arguments
string | achievementId |
The id of the achivement to complete. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. | |
Callback<PlayerIOError> | errorCallback |
Callback that will be called instead of successCallback if an error occurs. |
Achievements.ProgressMax
public void |
|
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress)
Arguments
string | achievementId |
The id of the achievement to work on. | |
int | progress |
The possible new progress value that should be compared to the current progress value | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. |
Achievements.ProgressMax
public Achievement |
|
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress)
Arguments
string | achievementId |
The id of the achievement to work on. | |
int | progress |
The possible new progress value that should be compared to the current progress value |
Achievements.ProgressMax
public void |
|
Sets the current progress value to the bigger value of progress or the current value, i.e; newProgress = Max(currentProgress,progress)
Arguments
string | achievementId |
The id of the achivement to work on. | |
int | progress |
The possible new progress value that should be compared to the current progress value | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. | |
Callback<PlayerIOError> | errorCallback |
Callback that will be called instead of successCallback if an error occurs. |
Achievements.ProgressSet
public void |
|
Sets the progress of the specified achievement.
Arguments
string | achievementId |
The id of the achievement to add progress to. | |
int | progress |
The new progress value for the achievement. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. |
Achievements.ProgressSet
public void |
|
Sets the progress of the specified achievement.
Arguments
string | achievementId |
The id of the achivement to add progress to. | |
int | progress |
The new progress value for the achievement. | |
Callback<Achievement> | successCallback |
Callback that will be called with the updated Achievement. | |
Callback<PlayerIOError> | errorCallback |
Callback that will be called instead of successCallback if an error occurs. |
Achievements.ProgressSet
public Achievement |
|
Sets the progress of the specified achievement.
Arguments
string | achievementId |
The id of the achievement to add progress to. | |
int | progress |
The new progress value for the achievement. |
Achievements.Refresh
public void |
|
Refreshes MyAchievements
Achievements.Refresh
public void |
|
Refreshes MyAchievements
Arguments
Callback | successCallback |
Callback that will be called when the refresh is complete. |
Achievements.Refresh
public void |
|
Refreshes MyAchievements
Arguments
Callback | successCallback |
Callback that will be called when the refresh is complete. | |
Callback<PlayerIOError> | errorCallback |
Callback that will be called instead of successCallback if an error occurs. |