| BrainCloudServiceClientGlobalStatistics_IncrementGlobalStats Method |
[This is preliminary documentation and is subject to change.]
Atomically increment (or decrement) global statistics.
Global statistics are defined through the brainCloud portal.
Namespace:
Ruyi.SDK.BrainCloudApi
Assembly:
ServiceGenerated (in ServiceGenerated.dll) Version: 0.9.3.3995 (0.9.3.3995)
Syntax public string GlobalStatistics_IncrementGlobalStats(
string jsonData,
int clientIndex
)
Parameters
- jsonData
- Type: SystemString
The JSON encoded data to be sent to the server as follows:
{
stat1: 10,
stat2: -5.5,
}
would increment stat1 by 10 and decrement stat2 by 5.5.
For the full statistics grammer see the api.braincloudservers.com site.
There are many more complex operations supported such as:
{
stat1:INC_TO_LIMIT#9#30
}
which increments stat1 by 9 up to a limit of 30. - clientIndex
- Type: SystemInt32
@BrainCloud_clientIndex_desc
Return Value
Type:
String[Missing <returns> documentation for "M:Ruyi.SDK.BrainCloudApi.BrainCloudService.Client.GlobalStatistics_IncrementGlobalStats(System.String,System.Int32)"]
See Also