Esempio n. 1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCGetMailList _inst = (GCGetMailList)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  10: {
                    MailInfo subBuilder = new MailInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddMails(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Esempio n. 2
0
 public void SetMail(MailInfo value)
 {
     hasMail = true;
     mail_   = value;
 }
Esempio n. 3
0
 public void AddMails(MailInfo value)
 {
     mails_.Add(value);
 }
Esempio n. 4
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            MailInfo _inst = (MailInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.MailID = input.ReadInt64();
                    break;
                }

                case  16: {
                    _inst.ReceivePlayerID = input.ReadInt64();
                    break;
                }

                case  24: {
                    _inst.SendType = input.ReadInt32();
                    break;
                }

                case  32: {
                    _inst.PlayerID = input.ReadInt64();
                    break;
                }

                case  42: {
                    _inst.SendName = input.ReadString();
                    break;
                }

                case  50: {
                    _inst.Content = input.ReadString();
                    break;
                }

                case  58: {
                    BackpackItem subBuilder = new BackpackItem();
                    input.ReadMessage(subBuilder);
                    _inst.AddItems(subBuilder);
                    break;
                }

                case  64: {
                    _inst.SendTime = input.ReadInt64();
                    break;
                }

                case  72: {
                    _inst.State = input.ReadInt32();
                    break;
                }

                case  82: {
                    _inst.Title = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }