public void MergeFrom(Human other) { if (other == null) { return; } if (other.nose_ != null) { if (nose_ == null) { nose_ = new global::Joint(); } Nose.MergeFrom(other.Nose); } if (other.neck_ != null) { if (neck_ == null) { neck_ = new global::Joint(); } Neck.MergeFrom(other.Neck); } if (other.rShoulder_ != null) { if (rShoulder_ == null) { rShoulder_ = new global::Joint(); } RShoulder.MergeFrom(other.RShoulder); } if (other.rElbow_ != null) { if (rElbow_ == null) { rElbow_ = new global::Joint(); } RElbow.MergeFrom(other.RElbow); } if (other.rWrist_ != null) { if (rWrist_ == null) { rWrist_ = new global::Joint(); } RWrist.MergeFrom(other.RWrist); } if (other.lShoulder_ != null) { if (lShoulder_ == null) { lShoulder_ = new global::Joint(); } LShoulder.MergeFrom(other.LShoulder); } if (other.lElbow_ != null) { if (lElbow_ == null) { lElbow_ = new global::Joint(); } LElbow.MergeFrom(other.LElbow); } if (other.lWrist_ != null) { if (lWrist_ == null) { lWrist_ = new global::Joint(); } LWrist.MergeFrom(other.LWrist); } if (other.rHip_ != null) { if (rHip_ == null) { rHip_ = new global::Joint(); } RHip.MergeFrom(other.RHip); } if (other.rKnee_ != null) { if (rKnee_ == null) { rKnee_ = new global::Joint(); } RKnee.MergeFrom(other.RKnee); } if (other.rAnkle_ != null) { if (rAnkle_ == null) { rAnkle_ = new global::Joint(); } RAnkle.MergeFrom(other.RAnkle); } if (other.lHip_ != null) { if (lHip_ == null) { lHip_ = new global::Joint(); } LHip.MergeFrom(other.LHip); } if (other.lKnee_ != null) { if (lKnee_ == null) { lKnee_ = new global::Joint(); } LKnee.MergeFrom(other.LKnee); } if (other.lAnkle_ != null) { if (lAnkle_ == null) { lAnkle_ = new global::Joint(); } LAnkle.MergeFrom(other.LAnkle); } if (other.rEye_ != null) { if (rEye_ == null) { rEye_ = new global::Joint(); } REye.MergeFrom(other.REye); } if (other.lEye_ != null) { if (lEye_ == null) { lEye_ = new global::Joint(); } LEye.MergeFrom(other.LEye); } if (other.rEar_ != null) { if (rEar_ == null) { rEar_ = new global::Joint(); } REar.MergeFrom(other.REar); } if (other.lEar_ != null) { if (lEar_ == null) { lEar_ = new global::Joint(); } LEar.MergeFrom(other.LEar); } if (other.Confidence != 0F) { Confidence = other.Confidence; } }
public void MergeFrom(Skeleton other) { if (other == null) { return; } if (other.UserId != 0UL) { UserId = other.UserId; } if (other.bodyLocation_ != null) { if (bodyLocation_ == null) { bodyLocation_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } BodyLocation.MergeFrom(other.BodyLocation); } if (other.bodyRotation_ != null) { if (bodyRotation_ == null) { bodyRotation_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } BodyRotation.MergeFrom(other.BodyRotation); } if (other.head_ != null) { if (head_ == null) { head_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } Head.MergeFrom(other.Head); } if (other.neck_ != null) { if (neck_ == null) { neck_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } Neck.MergeFrom(other.Neck); } if (other.spine_ != null) { if (spine_ == null) { spine_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } Spine.MergeFrom(other.Spine); } if (other.hips_ != null) { if (hips_ == null) { hips_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } Hips.MergeFrom(other.Hips); } if (other.leftShoulder_ != null) { if (leftShoulder_ == null) { leftShoulder_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } LeftShoulder.MergeFrom(other.LeftShoulder); } if (other.leftArm_ != null) { if (leftArm_ == null) { leftArm_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } LeftArm.MergeFrom(other.LeftArm); } if (other.leftHand_ != null) { if (leftHand_ == null) { leftHand_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } LeftHand.MergeFrom(other.LeftHand); } if (other.rightShoulder_ != null) { if (rightShoulder_ == null) { rightShoulder_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } RightShoulder.MergeFrom(other.RightShoulder); } if (other.rightArm_ != null) { if (rightArm_ == null) { rightArm_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } RightArm.MergeFrom(other.RightArm); } if (other.rightHand_ != null) { if (rightHand_ == null) { rightHand_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } RightHand.MergeFrom(other.RightHand); } if (other.leftKnee_ != null) { if (leftKnee_ == null) { leftKnee_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } LeftKnee.MergeFrom(other.LeftKnee); } if (other.leftFoot_ != null) { if (leftFoot_ == null) { leftFoot_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } LeftFoot.MergeFrom(other.LeftFoot); } if (other.rightKnee_ != null) { if (rightKnee_ == null) { rightKnee_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } RightKnee.MergeFrom(other.RightKnee); } if (other.rightFoot_ != null) { if (rightFoot_ == null) { rightFoot_ = new global::VrLifeShared.Networking.NetworkingModels.Coord(); } RightFoot.MergeFrom(other.RightFoot); } }