Пример #1
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 3);
     Eproto.PackInteger(wb, this.result);
     Eproto.PackInteger(wb, this.region_code);
     if (this.games == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.games.Length);
         for (int i = 0; i < this.games.Length; ++i)
         {
             invite_game v = this.games[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
 }
Пример #2
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 4);
     Eproto.PackInteger(wb, this.uid);
     Eproto.PackInteger(wb, this.signup_time);
     if (this.data == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.data.Count);
         foreach (var i in this.data)
         {
             Eproto.PackInteger(wb, i.Key);
             Eproto.PackString(wb, i.Value);
         }
     }
     if (this.dt == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         this.dt.Encode(wb);
     }
 }
Пример #3
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 11);
     Eproto.PackInteger(wb, this.game_id);
     Eproto.PackString(wb, this.game_name);
     Eproto.PackInteger(wb, this.player_number);
     Eproto.PackInteger(wb, this.owner_uid);
     Eproto.PackString(wb, this.owner_name);
     Eproto.PackInteger(wb, this.tid);
     Eproto.PackInteger(wb, this.create_time);
     Eproto.PackInteger(wb, this.state);
     Eproto.PackString(wb, this.game_info);
     if (this.signup_users == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.signup_users.Length);
         for (int i = 0; i < this.signup_users.Length; ++i)
         {
             user_info v = this.signup_users[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
     Eproto.PackBool(wb, this.ss);
 }
Пример #4
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 6);
     Eproto.PackInteger(wb, this.result);
     Eproto.PackInteger(wb, this.tid);
     Eproto.PackInteger(wb, this.owner_uid);
     Eproto.PackInteger(wb, this.game_id);
     Eproto.PackInteger(wb, this.node_type);
     Eproto.PackInteger(wb, this.node_id);
 }
Пример #5
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 6);
     Eproto.PackInteger(wb, this.id);
     Eproto.PackInteger(wb, this.type);
     Eproto.PackInteger(wb, this.value);
     Eproto.PackString(wb, this.name);
     Eproto.PackInteger(wb, this.agent_value);
     Eproto.PackString(wb, this.agent_name);
 }
Пример #6
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 6);
     Eproto.PackInteger(wb, this.region_code);
     Eproto.PackInteger(wb, this.game_id);
     Eproto.PackString(wb, this.version);
     Eproto.PackInteger(wb, this.owner_uid);
     Eproto.PackString(wb, this.owner_name);
     Eproto.PackString(wb, this.game_info);
 }
Пример #7
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #8
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.uid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.signup_time);
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.data = null;
                }
                else
                {
                    this.data = new Dictionary <int, string>();
                    for (int i = 0; i < n; ++i)
                    {
                        int k = 0; string v = null;
                        Eproto.UnpackInteger(rb, ref k);
                        Eproto.UnpackString(rb, ref v);
                        this.data[k] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            if (rb.NextIsNil())
            {
                rb.MoveNext();
            }
            else
            {
                this.dt = new DataType(); this.dt.Decode(rb);
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #9
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 4);
     Eproto.PackInteger(wb, this.result);
     if (this.info == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         this.info.Encode(wb);
     }
     Eproto.PackInteger(wb, this.prop_type);
     Eproto.PackInteger(wb, this.prop_num);
 }
Пример #10
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.tid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #11
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.result);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.region_code);
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.games = null;
                }
                else
                {
                    this.games = new invite_game[n];
                    for (int i = 0; i < n; ++i)
                    {
                        invite_game v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new invite_game(); v.Decode(rb);
                        }
                        this.games[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #12
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 11);
     Eproto.PackInteger(wb, this.game_id);
     Eproto.PackString(wb, this.game_name);
     Eproto.PackInteger(wb, this.showtag);
     Eproto.PackInteger(wb, this.play_countdown);
     Eproto.PackInteger(wb, this.operate_countdown);
     if (this.showtag2_version == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.showtag2_version.Length);
         for (int i = 0; i < this.showtag2_version.Length; ++i)
         {
             string v = this.showtag2_version[i];
             Eproto.PackString(wb, v);
         }
     }
     Eproto.PackString(wb, this.game_info);
     Eproto.PackInteger(wb, this.player_number);
     Eproto.PackInteger(wb, this.is_new);
     Eproto.PackInteger(wb, this.sort_id);
     if (this.price == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.price.Length);
         for (int i = 0; i < this.price.Length; ++i)
         {
             match_price v = this.price[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
 }
Пример #13
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.region_code);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.version);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #14
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.result);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.tid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.owner_uid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.game_id);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.node_type);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.node_id);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #15
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.id);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.type);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.value);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.name);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.agent_value);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.agent_name);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #16
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.info = null;
                }
                else
                {
                    this.info = new table_info[n];
                    for (int i = 0; i < n; ++i)
                    {
                        table_info v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new table_info(); v.Decode(rb);
                        }
                        this.info[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #17
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.result);
            if (--c <= 0)
            {
                return;
            }
            if (rb.NextIsNil())
            {
                rb.MoveNext();
            }
            else
            {
                this.info = new table_info(); this.info.Decode(rb);
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.prop_type);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.prop_num);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #18
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 1);
     if (this.info == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.info.Length);
         for (int i = 0; i < this.info.Length; ++i)
         {
             table_info v = this.info[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
 }
Пример #19
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 0);
 }
Пример #20
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.a);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.b);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDouble(rb, ref this.c);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDouble(rb, ref this.d);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.e);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackBytes(rb, ref this.f);
            if (--c <= 0)
            {
                return;
            }
            if (rb.NextIsNil())
            {
                rb.MoveNext();
            }
            else
            {
                this.g = new inner(); this.g.Decode(rb);
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.h = null;
                }
                else
                {
                    this.h = new Dictionary <int, string>();
                    for (int i = 0; i < n; ++i)
                    {
                        int k = 0; string v = null;
                        Eproto.UnpackInteger(rb, ref k);
                        Eproto.UnpackString(rb, ref v);
                        this.h[k] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.i = null;
                }
                else
                {
                    this.i = new int[n];
                    for (int i = 0; i < n; ++i)
                    {
                        int v = 0;
                        Eproto.UnpackInteger(rb, ref v);
                        this.i[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.j = null;
                }
                else
                {
                    this.j = new inner[n];
                    for (int i = 0; i < n; ++i)
                    {
                        inner v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new inner(); v.Decode(rb);
                        }
                        this.j[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.k = null;
                }
                else
                {
                    this.k = new Dictionary <string, inner>();
                    for (int i = 0; i < n; ++i)
                    {
                        string k = null; inner v = null;
                        Eproto.UnpackString(rb, ref k);
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new inner(); v.Decode(rb);
                        }
                        if (k != null)
                        {
                            this.k[k] = v;
                        }
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackMap(rb);
                if (n < 0)
                {
                    this.l = null;
                }
                else
                {
                    this.l = new Dictionary <string, byte[]>();
                    for (int i = 0; i < n; ++i)
                    {
                        string k = null; byte[] v = null;
                        Eproto.UnpackString(rb, ref k);
                        Eproto.UnpackBytes(rb, ref v);
                        if (k != null)
                        {
                            this.l[k] = v;
                        }
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #21
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 2);
     Eproto.PackInteger(wb, this.t1);
     Eproto.PackString(wb, this.t2);
 }
Пример #22
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.game_id);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.game_name);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.player_number);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.owner_uid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.owner_name);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.tid);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.create_time);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.state);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.game_info);
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.signup_users = null;
                }
                else
                {
                    this.signup_users = new user_info[n];
                    for (int i = 0; i < n; ++i)
                    {
                        user_info v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new user_info(); v.Decode(rb);
                        }
                        this.signup_users[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackBool(rb, ref this.ss);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #23
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 2);
     Eproto.PackInteger(wb, this.region_code);
     Eproto.PackString(wb, this.version);
 }
Пример #24
0
        override public void Decode(ReadBuffer rb)
        {
            long c = Eproto.UnpackArray(rb);

            if (c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.game_id);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.game_name);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.showtag);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.play_countdown);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.operate_countdown);
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.showtag2_version = null;
                }
                else
                {
                    this.showtag2_version = new string[n];
                    for (int i = 0; i < n; ++i)
                    {
                        string v = null;
                        Eproto.UnpackString(rb, ref v);
                        this.showtag2_version[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackString(rb, ref this.game_info);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.player_number);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.is_new);
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackInteger(rb, ref this.sort_id);
            if (--c <= 0)
            {
                return;
            }
            {
                long n = Eproto.UnpackArray(rb);
                if (n < 0)
                {
                    this.price = null;
                }
                else
                {
                    this.price = new match_price[n];
                    for (int i = 0; i < n; ++i)
                    {
                        match_price v = null;
                        if (rb.NextIsNil())
                        {
                            rb.MoveNext();
                        }
                        else
                        {
                            v = new match_price(); v.Decode(rb);
                        }
                        this.price[i] = v;
                    }
                }
            }
            if (--c <= 0)
            {
                return;
            }
            Eproto.UnpackDiscard(rb, c);
        }
Пример #25
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 2);
     Eproto.PackInteger(wb, this.error);
     Eproto.PackBytes(wb, this.buffer);
 }
Пример #26
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 12);
     Eproto.PackInteger(wb, this.a);
     Eproto.PackInteger(wb, this.b);
     Eproto.PackDouble(wb, this.c);
     Eproto.PackDouble(wb, this.d);
     Eproto.PackString(wb, this.e);
     Eproto.PackBytes(wb, this.f);
     if (this.g == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         this.g.Encode(wb);
     }
     if (this.h == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.h.Count);
         foreach (var i in this.h)
         {
             Eproto.PackInteger(wb, i.Key);
             Eproto.PackString(wb, i.Value);
         }
     }
     if (this.i == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.i.Length);
         for (int i = 0; i < this.i.Length; ++i)
         {
             int v = this.i[i];
             Eproto.PackInteger(wb, v);
         }
     }
     if (this.j == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackArray(wb, this.j.Length);
         for (int i = 0; i < this.j.Length; ++i)
         {
             inner v = this.j[i];
             if (v == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 v.Encode(wb);
             }
         }
     }
     if (this.k == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.k.Count);
         foreach (var i in this.k)
         {
             Eproto.PackString(wb, i.Key);
             if (i.Value == null)
             {
                 Eproto.PackNil(wb);
             }
             else
             {
                 i.Value.Encode(wb);
             }
         }
     }
     if (this.l == null)
     {
         Eproto.PackNil(wb);
     }
     else
     {
         Eproto.PackMap(wb, this.l.Count);
         foreach (var i in this.l)
         {
             Eproto.PackString(wb, i.Key);
             Eproto.PackBytes(wb, i.Value);
         }
     }
 }
Пример #27
0
 override public void Encode(WriteBuffer wb)
 {
     Eproto.PackArray(wb, 1);
     Eproto.PackInteger(wb, this.tid);
 }