Ejemplo n.º 1
0
        public void purchase(string purchasableId, string developerPayload = "")
        {
            PurchasableItem item = InventoryDatabase.getItemById(purchasableId);

            if (null == item)
            {
                logger.LogWarning("Unable to purchase unknown item with id: {0}", purchasableId);
            }
            purchase(item, developerPayload);
        }
Ejemplo n.º 2
0
        public int getPurchaseHistory(string purchasableId)
        {
            var item = InventoryDatabase.getItemById(purchasableId);

            if (null == item)
            {
                // A warning will already have been logged.
                return(-1);
            }
            return(getPurchaseHistory(item));
        }
Ejemplo n.º 3
0
 public int getPurchaseHistory(string purchasableId)
 {
     return(getPurchaseHistory(InventoryDatabase.getItemById(purchasableId)));
 }