public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { FrameId = input.ReadInt32(); break; } case 16: { ShapeType = (global::Physics.Telemetry.Serialised.ShapeTypePacket)input.ReadEnum(); break; } case 26: { if (obbShape_ == null) { ObbShape = new global::Physics.Telemetry.Serialised.ObbShapePacket(); } input.ReadMessage(ObbShape); break; } case 34: { if (tetrahedronShape_ == null) { TetrahedronShape = new global::Physics.Telemetry.Serialised.TetrahedronShapePacket(); } input.ReadMessage(TetrahedronShape); break; } case 42: { if (convexHullShape_ == null) { ConvexHullShape = new global::Physics.Telemetry.Serialised.ConvexHullShapePacket(); } input.ReadMessage(ConvexHullShape); break; } } } }
public void MergeFrom(ShapeFrameIterationPacket other) { if (other == null) { return; } if (other.FrameId != 0) { FrameId = other.FrameId; } if (other.ShapeType != global::Physics.Telemetry.Serialised.ShapeTypePacket.Obb) { ShapeType = other.ShapeType; } if (other.obbShape_ != null) { if (obbShape_ == null) { ObbShape = new global::Physics.Telemetry.Serialised.ObbShapePacket(); } ObbShape.MergeFrom(other.ObbShape); } if (other.tetrahedronShape_ != null) { if (tetrahedronShape_ == null) { TetrahedronShape = new global::Physics.Telemetry.Serialised.TetrahedronShapePacket(); } TetrahedronShape.MergeFrom(other.TetrahedronShape); } if (other.convexHullShape_ != null) { if (convexHullShape_ == null) { ConvexHullShape = new global::Physics.Telemetry.Serialised.ConvexHullShapePacket(); } ConvexHullShape.MergeFrom(other.ConvexHullShape); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }