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: { PlayerId = input.ReadString(); break; } case 18: { PlayerName = input.ReadString(); break; } case 24: { IsHouseOwner = input.ReadBool(); break; } case 34: { if (position_ == null) { Position = new global::Zrime.ZPosition(); } input.ReadMessage(Position); break; } case 42: { if (rotation_ == null) { Rotation = new global::Zrime.ZRotation(); } input.ReadMessage(Rotation); break; } case 50: { ExtraContent = input.ReadString(); break; } } } }
public void MergeFrom(Player other) { if (other == null) { return; } if (other.PlayerId.Length != 0) { PlayerId = other.PlayerId; } if (other.PlayerName.Length != 0) { PlayerName = other.PlayerName; } if (other.IsHouseOwner != false) { IsHouseOwner = other.IsHouseOwner; } if (other.position_ != null) { if (position_ == null) { Position = new global::Zrime.ZPosition(); } Position.MergeFrom(other.Position); } if (other.rotation_ != null) { if (rotation_ == null) { Rotation = new global::Zrime.ZRotation(); } Rotation.MergeFrom(other.Rotation); } if (other.ExtraContent.Length != 0) { ExtraContent = other.ExtraContent; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }