public void MergeFrom(MapAbilityStartMessage other) { if (other == null) { return; } if (other.MapAbilityGmtId.Length != 0) { MapAbilityGmtId = other.MapAbilityGmtId; } switch (other.TargetCase) { case TargetOneofCase.PlayerNickname: PlayerNickname = other.PlayerNickname; break; case TargetOneofCase.MapCoordinate: if (MapCoordinate == null) { MapCoordinate = new global::WUProtos.Map.MapCoordinate(); } MapCoordinate.MergeFrom(other.MapCoordinate); break; case TargetOneofCase.MobId: MobId = other.MobId; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { MapAbilityGmtId = input.ReadString(); break; } case 18: { PlayerNickname = input.ReadString(); break; } case 26: { global::WUProtos.Map.MapCoordinate subBuilder = new global::WUProtos.Map.MapCoordinate(); if (targetCase_ == TargetOneofCase.MapCoordinate) { subBuilder.MergeFrom(MapCoordinate); } input.ReadMessage(subBuilder); MapCoordinate = subBuilder; break; } case 34: { MobId = input.ReadBytes(); break; } } } }