SC_Client_CreateLocalAchievementsController()

Creates an achievements controller, which is used to manage Achievements locally.

Synopsis:

#include <scoreloop/sc_client.h>
 
SC_Error_t SC_Client_CreateLocalAchievementsController(SC_Client_h self, SC_LocalAchievementsController_h *pAchievementsController, SC_RequestControllerCompletionCallback_t callback, void *cookie)

Arguments:

self

Opaque handle for the current client instance.

pAchievementsController

Opaque handle for the controller that will be created.

callback

Handle to be registered for callback

cookie

This will be passed back to the controller's callback and using this, users can use the same callback for multiple controllers if they wish to.

Library:

libscoreloopcore

Description:

This method creates an instance of SC_LocalAchievementsController. The controller can be used to retrieve lists of achievements from the server or to set an Award as being achieved for a user and to synchronize information stored locally with that on the server.

Returns:

SC_Error_t A return code (A value of SC_OK indicates success, any other value indicates an error. For more error codes see here).

Last modified: 2013-12-23

comments powered by Disqus