Example #1
0
    public void onGoodUnequipped(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onVirtualGoodUnEquipped:" + message);

        EquippableVG vg = (EquippableVG)StoreInfo.GetItemByItemId(message);

        Events.OnGoodUnEquipped(vg);
    }
Example #2
0
    public void onRestoreTransactions(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactions:" + message);

        bool success = Convert.ToBoolean(int.Parse(message));

        Events.OnRestoreTransactions(success);
    }
Example #3
0
    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]));
    }
Example #4
0
    public void onMarketRefund(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketRefund:" + message);

        PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message);

        Events.OnMarketPurchaseStarted(pvi);
    }
Example #5
0
    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);
    }
Example #6
0
    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);
    }
Example #7
0
        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);
                }
            }
        }
Example #8
0
    public void onClosingStore(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onClosingStore");

        Events.OnClosingStore();
    }
Example #9
0
    public void onBillingNotSupported(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onBillingNotSupported");

        Events.OnBillingNotSupported();
    }
Example #10
0
    public void onUnexpectedErrorInStore(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

        Events.OnUnexpectedErrorInStore();
    }
Example #11
0
    public void onRestoreTransactionsStarted(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsStarted");

        Events.OnRestoreTransactionsStarted();
    }
Example #12
0
    public void onIabServiceStopped(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onIabServiceStopped");

        Events.OnIabServiceStopped();
    }
Example #13
0
    public void onItemDetailsRetrievedFailedEvent(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY ItemDetailsRetrievedFailedEvent");

        Events.OnItemDetailsRetrievedFailed();
    }
Example #14
0
    public void onStoreControllerInitialized(string message)
    {
        StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onStoreControllerInitialized");

        Events.OnStoreControllerInitialized();
    }