SC_LocalAchievementsController_SetAchievedValueForAwardIdentifier()

This method sets the status of the given award as being "achieved".

Synopsis:

#include <scoreloop/sc_local_achievements_controller.h>
 
SC_Error_t SC_LocalAchievementsController_SetAchievedValueForAwardIdentifier(SC_LocalAchievementsController_h self, const char *awardIdentifier, SC_Bool_t *pGetAchieved)

Arguments:

self

SC_LocalAchievementsController instance handle

awardIdentifier

The unique identifier for the award, (chosen by the developer).

pGetAchieved

Returns SC_TRUE if the status of the award has been successfully set to achieved, otherwise SC_FALSE.

Library:

libscoreloopcore

Description:

This method:
  • sets the value of the award equal to its achievingValue
  • sets the achieved property of the award equal to SC_TRUE

Returns:

SC_Error_t A return code (A value of SC_OK indicates success, any other value indicates an error).

Last modified: 2013-12-21

comments powered by Disqus