Esempio n. 1
0
 public void MergeFrom(Extensions other)
 {
     if (other == null)
     {
         return;
     }
     if (other.vRMCVrm_ != null)
     {
         if (vRMCVrm_ == null)
         {
             VRMCVrm = new global::VrmProtobuf.VRMCVrm();
         }
         VRMCVrm.MergeFrom(other.VRMCVrm);
     }
     if (other.vRMCSpringBone_ != null)
     {
         if (vRMCSpringBone_ == null)
         {
             VRMCSpringBone = new global::VrmProtobuf.VRMCSpringBone();
         }
         VRMCSpringBone.MergeFrom(other.VRMCSpringBone);
     }
     if (other.vRMCConstraint_ != null)
     {
         if (vRMCConstraint_ == null)
         {
             VRMCConstraint = new global::VrmProtobuf.VRMCConstraint();
         }
         VRMCConstraint.MergeFrom(other.VRMCConstraint);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (vRMCVrm_ == null)
                    {
                        VRMCVrm = new global::VrmProtobuf.VRMCVrm();
                    }
                    input.ReadMessage(VRMCVrm);
                    break;
                }

                case 18: {
                    if (vRMCSpringBone_ == null)
                    {
                        VRMCSpringBone = new global::VrmProtobuf.VRMCSpringBone();
                    }
                    input.ReadMessage(VRMCSpringBone);
                    break;
                }

                case 26: {
                    if (vRMCConstraint_ == null)
                    {
                        VRMCConstraint = new global::VrmProtobuf.VRMCConstraint();
                    }
                    input.ReadMessage(VRMCConstraint);
                    break;
                }
                }
            }
        }