Пример #1
0
 public byte[] ToBin()
 {
     NetSocket.ByteArray bin = new NetSocket.ByteArray();
     bin.Put((byte)type);
     bin.Put(innerUnion.ToBin(type));
     return(bin.GetData());
 }
Пример #2
0
                public new byte[] ToBin()
                {
                    NetSocket.ByteArray bin = new NetSocket.ByteArray();
                    bin.Put(base.ToBin());
                    bin.Put((byte)eventType);
                    bin.Put(innerUnion.ToBin(eventType));

                    return(bin.GetData());
                }
Пример #3
0
                public new byte[] ToBin()
                {
                    NetSocket.ByteArray bin = new NetSocket.ByteArray();
                    bin.Put(base.ToBin());                //10
                    bin.Put((byte)type);                  //1
                    bin.Put(area_id);                     //1
                    bin.Put(city_id);                     //8
                    bin.Put(innerUnion.ToBin(type));      //11

                    return(bin.GetData());
                }
Пример #4
0
                public new byte[] ToBin()
                {
                    NetSocket.ByteArray bin = new NetSocket.ByteArray();
                    bin.Put(base.ToBin());
                    bin.Put(shop_idx);
                    bin.Put(item_idx);
                    bin.Put(item_count);
                    bin.Put(innerUnion.ToBin(buyType));

                    return(bin.GetData());
                }