示例#1
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     CoinsPerTimes = stream.ReadByte();
     WinCoins      = stream.ReadInt16();
     WinTicket     = stream.ReadInt16();
 }
示例#2
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID  = stream.ReadInt16();
     Coins    = stream.ReadInt16();
     CoinType = stream.ReadByte();
 }
示例#3
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID = stream.ReadInt16();
     BoxNum  = stream.ReadInt16();
     Amount  = stream.ReadInt16();
 }
示例#4
0
 protected virtual void ReadData(MsgDataStream stream)
 {
     stream.ReadByteArray(2);
     ADR = stream.ReadInt16();
     stream.ReadInt16(); //PID
     stream.ReadInt16(); //len
 }
示例#5
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode   = stream.ReadInt16();
     ItemID    = stream.ReadInt16();
     ItemValue = stream.ReadInt32();
     Display   = stream.ReadByte();
 }
示例#6
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     State      = stream.ReadInt16();
     RemainCoin = stream.ReadInt16();
     RemainSec  = stream.ReadInt16();
     ErrCode    = stream.ReadInt16();
 }
示例#7
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID  = stream.ReadInt16();
     OrderNum = stream.ReadHex(16);
     BoxNum   = stream.ReadInt16();
     Price    = stream.ReadInt32();
 }
示例#8
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID = stream.ReadInt16();
     BoxNum  = stream.ReadInt16();
     Price   = stream.ReadInt16();
     Cost    = stream.ReadInt16();
     Name    = stream.ReadString(64);
     Url     = stream.ReadString(200);
 }
示例#9
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     CoinsPerTimes = stream.ReadByte();
     GameSec       = stream.ReadByte();
     LowPower      = stream.ReadByte();
     HightPower    = stream.ReadByte();
     WinCoins      = stream.ReadInt16();
     WinGifts      = stream.ReadInt16();
 }
示例#10
0
        protected override void ReadData(MsgDataStream stream)
        {
            base.ReadData(stream);
            ErrCode = stream.ReadInt16();
            int MenuItemscount = stream.ReadByte();

            MenuItems = new int[MenuItemscount];
            for (int i = 0; i < MenuItemscount; i++)
            {
                MenuItems[i] = stream.ReadInt16();
            }
        }
示例#11
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     GPIVersion        = stream.ReadInt32();
     ProductNum        = stream.ReadInt32();
     DeviceID          = stream.ReadByteArray(16);
     GamePortCount     = stream.ReadByte();
     CurrGamePortIndex = stream.ReadByte();
     DeviceType        = stream.ReadInt16();
     if (GPIVersion > 116)
     {
         SoftVer = stream.ReadInt16();
     }
 }
示例#12
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode      = stream.ReadInt16();
     QrCode       = stream.ReadString(150);
     ProductImage = stream.ReadString(150);
 }
示例#13
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ProductNum = stream.ReadInt32();
     DeviceID   = stream.ReadByteArray(16);
     DeviceType = stream.ReadInt16();
 }
示例#14
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID  = stream.ReadInt16();
     OutGift  = stream.ReadInt32();
     GiftType = stream.ReadByte();
     GiftPort = stream.ReadByte();
 }
示例#15
0
        protected override void ReadData(MsgDataStream stream)
        {
            base.ReadData(stream);
            ErrCode  = stream.ReadInt16();
            ItemID   = stream.ReadInt16();
            Value    = stream.ReadInt32();
            MaxValue = stream.ReadInt32();
            MinValue = stream.ReadInt32();
            byte[] bts = stream.ReadByteArray(32);
            ItemName = System.Text.Encoding.Unicode.GetString(bts).Replace("\0", "");
            int discribelen = stream.ReadByte();

            if (discribelen > 0)
            {
                byte[] bts2 = stream.ReadByteArray(discribelen);
                ItemDiscribe = System.Text.Encoding.Unicode.GetString(bts2).Replace("\0", "");
            }
        }
示例#16
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode  = stream.ReadInt16();
     PCoins   = stream.ReadInt32();
     ECoins   = stream.ReadInt32();
     PGifts   = stream.ReadInt32();
     PTickets = stream.ReadInt32();
 }
示例#17
0
        protected override void ReadData(MsgDataStream stream)
        {
            base.ReadData(stream);
            TransID = stream.ReadInt16();
            int winlistlen = stream.ReadByte();

            byte[] list = stream.ReadByteArray(winlistlen);
            WinList = new List <int>();
            for (int i = 0; i < winlistlen; i++)
            {
                WinList.Add(list[i]);
            }
        }
示例#18
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ItemID    = stream.ReadInt16();
     ItemValue = stream.ReadInt32();
 }
示例#19
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     TransID = stream.ReadInt16();
     Action  = stream.ReadByte();
 }
示例#20
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode = stream.ReadInt16();
     State   = stream.ReadByte();
 }
示例#21
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode       = stream.ReadInt16();
     CoinsPerTimes = stream.ReadByte();
 }
示例#22
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode = stream.ReadInt16();
     TransID = stream.ReadInt16();
 }
示例#23
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ErrCode = stream.ReadInt16();
     ExData  = stream.ReadToEnd();
 }