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 (position_ == null) { Position = new global::GameProtobufs.Vector3Message(); } input.ReadMessage(Position); break; } case 18: { if (quaternion_ == null) { Quaternion = new global::GameProtobufs.QuaternionMessage(); } input.ReadMessage(Quaternion); break; } } } }
public void MergeFrom(TransformMessage other) { if (other == null) { return; } if (other.position_ != null) { if (position_ == null) { Position = new global::GameProtobufs.Vector3Message(); } Position.MergeFrom(other.Position); } if (other.quaternion_ != null) { if (quaternion_ == null) { Quaternion = new global::GameProtobufs.QuaternionMessage(); } Quaternion.MergeFrom(other.Quaternion); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }