예제 #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            FateInfo _inst = (FateInfo)_base;

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

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

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

                case  24: {
                    _inst.Type = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
예제 #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCFateResult _inst = (GCFateResult)_base;

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

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

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

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

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

                case  40: {
                    _inst.TranstType = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
예제 #3
0
 public void AddFateInfos(FateInfo value)
 {
     fateInfos_.Add(value);
 }