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: { state_ = (global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerState)input.ReadEnum(); break; } case 18: { if (activeMatch_ == null) { activeMatch_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.ActiveMatch(); } input.ReadMessage(activeMatch_); break; } case 810: { if (menu_ == null) { menu_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Menu(); } input.ReadMessage(menu_); break; } case 818: { if (queue_ == null) { queue_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Queue(); } input.ReadMessage(queue_); break; } case 826: { if (lobby_ == null) { lobby_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Lobby(); } input.ReadMessage(lobby_); break; } } } }
public void MergeFrom(PlayerSession other) { if (other == null) { return; } if (other.State != 0) { State = other.State; } if (other.activeMatch_ != null) { if (activeMatch_ == null) { activeMatch_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.ActiveMatch(); } ActiveMatch.MergeFrom(other.ActiveMatch); } if (other.menu_ != null) { if (menu_ == null) { menu_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Menu(); } Menu.MergeFrom(other.Menu); } if (other.queue_ != null) { if (queue_ == null) { queue_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Queue(); } Queue.MergeFrom(other.Queue); } if (other.lobby_ != null) { if (lobby_ == null) { lobby_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.PlayerSession.Types.Lobby(); } Lobby.MergeFrom(other.Lobby); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }