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

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

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

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

                case  24: {
                    _inst.Level = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCTalismanOperateResult _inst = (GCTalismanOperateResult)_base;

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

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

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

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

                case  34: {
                    TalismanInfo subBuilder = new TalismanInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddTalismanInfo(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 3
0
 public void AddTalismanSlots(TalismanSlots value)
 {
     talismanSlots_.Add(value);
 }