ResetParentCurrency
Resets the player's parent currency back to zero.
Service | Operation |
---|---|
virtualCurrency | RESET_PARENT_VC |
Method Parameters
Parameter | Description |
---|---|
leveName | Name of the parent level. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var levelName = "master";
var virtualCurrencyProxy = bridge.getVirtualCurrencyServiceProxy();
var postResult = virtualCurrencyProxy.resetParentCurrency(levelName);
if (postResult.status == 200) {
// Success!
}
var levelName = "master";
var virtualCurrencyProxy = bridge.getVirtualCurrencyServiceProxy();
var postResult = virtualCurrencyProxy.resetParentCurrency(levelName);
if (postResult.status == 200) {
// Success!
}
JSON Response
{
"status" : 200,
"data" : null
}