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

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

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

                case  18: {
                    _inst.GangName = input.ReadString();
                    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 SetGang2(GangClashInfo value)
 {
     hasGang2 = true;
     gang2_   = value;
 }
Exemplo n.º 4
0
 public void SetGang1(GangClashInfo value)
 {
     hasGang1 = true;
     gang1_   = value;
 }