Пример #1
0
 public ClientTradePetAmountInfoEventArgs(TradePetAmountInfo i)
 {
     info = i;
 }
Пример #2
0
        public static TradePetAmountInfo RecvTradePetAmount(Packet p)
        {
            p.Skip(2);
            PetTradeAction action = (PetTradeAction)p.ReadByte();
            int ownerid = p.ReadInt();
            int targetid = p.ReadInt();
            int petid = p.ReadInt();
            int amount = p.ReadInt();

            TradePetAmountInfo i = new TradePetAmountInfo
            {
                Action = action,
                OwnerID = ownerid,
                TargetID = targetid,
                PetID = petid,
                MoneyWanted = amount
            };

            return i;
        }