public void onGoodUnequipped(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onVirtualGoodUnEquipped:" + message); EquippableVG vg = (EquippableVG)StoreInfo.GetItemByItemId(message); Events.OnGoodUnEquipped(vg); }
public void onRestoreTransactions(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactions:" + message); bool success = Convert.ToBoolean(int.Parse(message)); Events.OnRestoreTransactions(success); }
public void onItemDetailsRetrieved(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onItemDetailsRetrieved"); string[] vars = Regex.Split(message, "#SOOM#"); Events.OnItemDetailsRetrieved(new MarketItemDetails(vars[0], vars[1], vars[2], vars[3]), Boolean.Parse(vars[4])); }
public void onMarketRefund(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketRefund:" + message); PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message); Events.OnMarketPurchaseStarted(pvi); }
public void onGoodUpgrade(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodUpgrade:" + message); string[] vars = Regex.Split(message, "#SOOM#"); VirtualGood vg = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]); UpgradeVG vgu = (UpgradeVG)StoreInfo.GetItemByItemId(vars[1]); Events.OnGoodUpgrade(vg, vgu); }
public void onGoodBalanceChanged(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodBalanceChanged:" + message); string[] vars = Regex.Split(message, "#SOOM#"); VirtualGood vg = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]); int balance = int.Parse(vars[1]); int amountAdded = int.Parse(vars[2]); Events.OnGoodBalanceChanged(vg, balance, amountAdded); }
public void onStoreControllerInitialized() { ExampleLocalStoreInfo.Init(); // some usage examples for add/remove currency // some examples if (ExampleLocalStoreInfo.VirtualCurrencies.Count > 0) { try { StoreInventory.GiveItem(ExampleLocalStoreInfo.VirtualCurrencies [0].ItemId, 4000); StoreUtils.LogDebug("SOOMLA ExampleEventHandler", "Currency balance:" + StoreInventory.GetItemBalance(ExampleLocalStoreInfo.VirtualCurrencies [0].ItemId)); } catch (VirtualItemNotFoundException ex) { StoreUtils.LogError("SOOMLA ExampleEventHandler", ex.Message); } } }
public void onClosingStore(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onClosingStore"); Events.OnClosingStore(); }
public void onBillingNotSupported(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onBillingNotSupported"); Events.OnBillingNotSupported(); }
public void onUnexpectedErrorInStore(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore"); Events.OnUnexpectedErrorInStore(); }
public void onRestoreTransactionsStarted(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsStarted"); Events.OnRestoreTransactionsStarted(); }
public void onIabServiceStopped(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onIabServiceStopped"); Events.OnIabServiceStopped(); }
public void onItemDetailsRetrievedFailedEvent(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY ItemDetailsRetrievedFailedEvent"); Events.OnItemDetailsRetrievedFailed(); }
public void onStoreControllerInitialized(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onStoreControllerInitialized"); Events.OnStoreControllerInitialized(); }