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

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

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

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

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

                case  34: {
                    CharacterInfo subBuilder = new CharacterInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddGangPlayerInfo(subBuilder);
                    break;
                }

                case  42: {
                    ItemInfo subBuilder = new ItemInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddNeedItems(subBuilder);
                    break;
                }

                case  48: {
                    _inst.LastTime = input.ReadInt64();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            ClashNode _inst = (ClashNode)_base;

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

                case  10: {
                    _inst.GroupId = input.ReadString();
                    break;
                }

                case  18: {
                    GangClashInfo subBuilder = new GangClashInfo();
                    input.ReadMessage(subBuilder);
                    _inst.Gang1 = subBuilder;
                    break;
                }

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

                case  32: {
                    _inst.ClashStatus = input.ReadInt32();
                    break;
                }

                case  40: {
                    _inst.WinGang = input.ReadInt64();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 3
0
 public void AddNodeLst(ClashNode value)
 {
     nodeLst_.Add(value);
 }