Beispiel #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            TalismanAttr _inst = (TalismanAttr)_base;

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

                case  8: {
                    _inst.Attrkey = input.ReadInt32();
                    break;
                }

                case  16: {
                    _inst.Attrvalue = input.ReadInt32();
                    break;
                }

                case  24: {
                    _inst.Viewflag = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Beispiel #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            TalismanInfo _inst = (TalismanInfo)_base;

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

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

                case  16: {
                    _inst.Sid = input.ReadInt32();
                    break;
                }

                case  26: {
                    TalismanAttr subBuilder = new TalismanAttr();
                    input.ReadMessage(subBuilder);
                    _inst.AddTalismanAttr(subBuilder);
                    break;
                }

                case  34: {
                    _inst.CreateName = input.ReadString();
                    break;
                }
                }
            }
            return(_inst);
        }
Beispiel #3
0
 public void AddTalismanAttr(TalismanAttr value)
 {
     talismanAttr_.Add(value);
 }