Steamworks.SteamMatchmaking.JoinLobby C# (CSharp) Méthode

JoinLobby() public static méthode

Joins an existing lobby

this is an asynchronous request

results will be returned by LobbyEnter_t callback & call result, check m_EChatRoomEnterResponse to see if was successful

lobby metadata is available to use immediately on this call completing

public static JoinLobby ( CSteamID steamIDLobby ) : SteamAPICall_t
steamIDLobby CSteamID
Résultat SteamAPICall_t
		public static SteamAPICall_t JoinLobby(CSteamID steamIDLobby) {
			InteropHelp.TestIfAvailableClient();
			return (SteamAPICall_t)NativeMethods.ISteamMatchmaking_JoinLobby(steamIDLobby);
		}

Usage Example

 public static SteamAPICall_t JoinLobbyGame(string lobby)
 {
     try
     {
         //public static SteamAPICall_t joinLobby(CSteamID steamIDLobby)   //{
         ulong vOut = Convert.ToUInt64(lobby);
         // CSteamID tempLobbyID = new CSteamID((ulong)lobby);
         return(SteamMatchmaking.JoinLobby((CSteamID)vOut));
     }
     catch
     {
         return(new SteamAPICall_t());
     }
 }