コード例 #1
0
        void ShowPurchase(StreamlootsPurchase purchase)
        {
            CardDto cardDto = new CardDto(purchase);

            ShowCardEvent(cardDto);
            OnCardsPurchased(this, new CardEventArgs(cardDto));
        }
コード例 #2
0
        private void ProcessChestPurchase(JObject cardObject)
        {
            StreamlootsPurchase purchase = GetPurchase(cardObject);

            ShowPurchase(purchase);

            //if (purchase != null)
            //{
            //	Console.WriteLine("Purchase By: " + purchase.Purchaser);
            //	Console.WriteLine("Gifted to: " + ((!string.IsNullOrEmpty(purchase.Recipient)) ? purchase.Recipient : "NONE"));
            //	Console.WriteLine("Quantity: " + purchase.Quantity);
            //	Console.WriteLine("Chest Image: " + purchase.imageUrl);
            //	Console.WriteLine("Chest Sound: " + purchase.soundUrl);
            //	Console.WriteLine();
            //}
        }
コード例 #3
0
 public CardDto(StreamlootsPurchase purchase)
 {
     InstanceID = Guid.NewGuid().ToString();
     Purchase   = purchase;
     Command    = CMD_ShowPurchase;
 }