开发者

Using OpenFeint to get current Achievement progression

开发者 https://www.devze.com 2023-02-02 10:43 出处:网络
So I\'m settin开发者_开发百科g my achievement like so: int currentPercentage = ... // Work out current percentage of progression to update too

So I'm settin开发者_开发百科g my achievement like so:

int currentPercentage = ... // Work out current percentage of progression to update too
[[OFAchievement achievement: ACHIEVEMENT_ID] updateProgressionComplete: currentPercentage andShowNotification: YES];

But is there anyway to get the currentProgression from the OF servers?

This would be useful to know so I can update the progression by a percentage rather than storing values locally to do this.

Thanks


you can do this by calling :

[OFAchievementService getPercentComplete:achievementId forUser:[OpenFeint lastLoggedInUserId]];


Make the following call:

double ofAchievementProgress = [[OFAchievement achievement:achievementId] percentComplete];
0

精彩评论

暂无评论...
验证码 换一张
取 消