SC_UserController_UpdateUserContext()

Pushes the updated user's context to the server.

Synopsis:

#include <scoreloop/sc_user_controller.h>
 
SC_Error_t SC_UserController_UpdateUserContext(SC_UserController_h self)

Arguments:

self

SC_UserController instance handle

Library:

libscoreloopcore

Description:

Any user can be updated in this way.

Note: Only the most recent context, requested by SC_UserController_LoadUserContext, can be updated. If some other client updated the context in the meantime, a delegate callback will be called with SC_CONTEXT_VERSION_MISMATCH. SC_User_GetContext will then contain the most recent server context and SC_User_GetOldContext will contain the context that was sent with the last SC_UserController_UpdateUserContext.

Note that this is an asynchronous call and a callback will be triggered upon success or failure.

Returns:

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

See also:

SC_User

Last modified: 2013-12-23

comments powered by Disqus