コード例 #1
0
 public void MergeFrom(FunctionEntryPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Module != 0)
     {
         Module = other.Module;
     }
     if (other.LevelBottom != 0)
     {
         LevelBottom = other.LevelBottom;
     }
     if (other.PlotBottom != 0)
     {
         PlotBottom = other.PlotBottom;
     }
     if (other.Used != 0)
     {
         Used = other.Used;
     }
     if (other.FunctionId != 0)
     {
         FunctionId = other.FunctionId;
     }
 }
コード例 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    module_ = (global::Com.Proto.ModulePB)input.ReadEnum();
                    break;
                }

                case 16: {
                    LevelBottom = input.ReadSInt32();
                    break;
                }

                case 24: {
                    PlotBottom = input.ReadSInt32();
                    break;
                }

                case 32: {
                    Used = input.ReadSInt32();
                    break;
                }

                case 40: {
                    functionId_ = (global::Com.Proto.FunctionIDPB)input.ReadEnum();
                    break;
                }
                }
            }
        }