CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Public Member Functions | List of all members

Description

API functions related to the achievements.

Public Member Functions

GamerAchievements Domain (string domain)
 Changes the domain affected by the next operations. You should typically use it this way: gamer.Achievements.Domain("private").List(...); More...
 
Promise< AchievementDefinitionAssociateData (string achName, Bundle data)
 Allows to store arbitrary data for a given achievement and the current player (appears in the 'gamerData' node of achievements). More...
 
Promise< Dictionary< string, AchievementDefinition > > List ()
 Fetches information about the status of the achievements configured for this game. More...
 

Member Function Documentation

◆ AssociateData()

Promise<AchievementDefinition> CotcSdk.GamerAchievements.AssociateData ( string  achName,
Bundle  data 
)

Allows to store arbitrary data for a given achievement and the current player (appears in the 'gamerData' node of achievements).

Returns
Promise resolved when the operation has completed. The attached value contains the updated definition of the achievement.
Parameters
achNameName of the achievement to update.
dataData to associate with the achievement, merged with the current data (that is, existing keys are not affected)

◆ Domain()

GamerAchievements CotcSdk.GamerAchievements.Domain ( string  domain)

Changes the domain affected by the next operations. You should typically use it this way: gamer.Achievements.Domain("private").List(...);

Parameters
domainDomain on which to scope the next operations.
Returns
This object for operation chaining.

◆ List()

Promise<Dictionary<string, AchievementDefinition> > CotcSdk.GamerAchievements.List ( )

Fetches information about the status of the achievements configured for this game.

Returns
Promise resolved when the operation has completed. The attached value is the list of achievements with their current state.