public void Set(UpdateLobbyModificationOptions other) { if (other != null) { m_ApiVersion = LobbyInterface.UpdatelobbymodificationApiLatest; LocalUserId = other.LocalUserId; LobbyId = other.LobbyId; } }
/// <summary> /// Short UpdateLobbyModification /// </summary> /// <param name="lobby">LobbyInterface</param> /// <param name="localUserId">Login user id</param> /// <param name="LobbyId">Lobby id</param> /// <returns>Handle</returns> public static LobbyModification UpdateLobbyModification(this LobbyInterface lobby, ProductUserId localUserId, string lobbyId) { var modOp = new UpdateLobbyModificationOptions { LocalUserId = localUserId, LobbyId = lobbyId }; LobbyModification handle; var result = lobby.UpdateLobbyModification(modOp, out handle); if (result == Result.Success) { return(handle); } Debug.LogError($"error {DebugTools.GetClassMethodName()}:{result}"); return(null); }