public void MergeFrom(CreateOrUpdatePlayerResponse other) { if (other == null) { return; } if (other.Success != false) { Success = other.Success; } if (other.player_ != null) { if (player_ == null) { Player = new global::WUProtos.Networking.Responses.CreateOrUpdatePlayerResponse.Types.ClientPlayerData(); } Player.MergeFrom(other.Player); } if (other.FirstLoginOfDay != false) { FirstLoginOfDay = other.FirstLoginOfDay; } if (other.playerDiscipline_ != null) { if (playerDiscipline_ == null) { PlayerDiscipline = new global::WUProtos.Networking.Responses.CreateOrUpdatePlayerResponse.Types.PlayerDisciplineInfo(); } PlayerDiscipline.MergeFrom(other.PlayerDiscipline); } _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 8: { Success = input.ReadBool(); break; } case 18: { if (player_ == null) { Player = new global::WUProtos.Networking.Responses.CreateOrUpdatePlayerResponse.Types.ClientPlayerData(); } input.ReadMessage(Player); break; } case 24: { FirstLoginOfDay = input.ReadBool(); break; } case 34: { if (playerDiscipline_ == null) { PlayerDiscipline = new global::WUProtos.Networking.Responses.CreateOrUpdatePlayerResponse.Types.PlayerDisciplineInfo(); } input.ReadMessage(PlayerDiscipline); break; } } } }