public void MergeFrom(GameplayParameters other) { if (other == null) { return; } if (other.beatmap_ != null) { if (beatmap_ == null) { Beatmap = new global::TournamentAssistantShared.Models.Beatmap(); } Beatmap.MergeFrom(other.Beatmap); } if (other.playerSettings_ != null) { if (playerSettings_ == null) { PlayerSettings = new global::TournamentAssistantShared.Models.PlayerSpecificSettings(); } PlayerSettings.MergeFrom(other.PlayerSettings); } if (other.gameplayModifiers_ != null) { if (gameplayModifiers_ == null) { GameplayModifiers = new global::TournamentAssistantShared.Models.GameplayModifiers(); } GameplayModifiers.MergeFrom(other.GameplayModifiers); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (beatmap_ == null) { Beatmap = new global::TournamentAssistantShared.Models.Beatmap(); } input.ReadMessage(Beatmap); break; } case 18: { if (playerSettings_ == null) { PlayerSettings = new global::TournamentAssistantShared.Models.PlayerSpecificSettings(); } input.ReadMessage(PlayerSettings); break; } case 26: { if (gameplayModifiers_ == null) { GameplayModifiers = new global::TournamentAssistantShared.Models.GameplayModifiers(); } input.ReadMessage(GameplayModifiers); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (beatmap_ == null) { Beatmap = new global::TournamentAssistantShared.Models.Beatmap(); } input.ReadMessage(Beatmap); break; } case 18: { if (playerSettings_ == null) { PlayerSettings = new global::TournamentAssistantShared.Models.PlayerSpecificSettings(); } input.ReadMessage(PlayerSettings); break; } case 26: { if (gameplayModifiers_ == null) { GameplayModifiers = new global::TournamentAssistantShared.Models.GameplayModifiers(); } input.ReadMessage(GameplayModifiers); break; } } } }