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 (color_ == null) { Color = new global::Tron.Protocol.Messages.Common.Color(); } input.ReadMessage(Color); break; } case 16: { Direction = (global::Tron.Protocol.Messages.Common.Direction)input.ReadEnum(); break; } } } }
public void MergeFrom(PlayerEvent other) { if (other == null) { return; } if (other.color_ != null) { if (color_ == null) { Color = new global::Tron.Protocol.Messages.Common.Color(); } Color.MergeFrom(other.Color); } if (other.Direction != global::Tron.Protocol.Messages.Common.Direction.Up) { Direction = other.Direction; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }