Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConnectToLobby()

void Terraria.Social.Steam.NetClientSocialModule.ConnectToLobby ( ulong lobbyId)
inline

Definition at line 51 of file NetClientSocialModule.cs.

52 {
53 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
55 CSteamID lobbySteamId = new CSteamID(lobbyId);
56 if (((CSteamID)(ref lobbySteamId)).IsValid())
57 {
58 Main.OpenPlayerSelect(delegate(PlayerFileData playerData)
59 {
60 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
61 Main.ServerSideCharacter = false;
62 playerData.SetAsActive();
63 Main.menuMode = 882;
64 Main.statusText = Language.GetTextValue("Social.Joining");
65 WeGameHelper.WriteDebugString(" CheckParameters, lobby.join");
66 _lobby.Join(lobbySteamId, OnLobbyEntered);
67 });
68 }
69 }
static string GetTextValue(string key)
Definition Language.cs:15
void Join(CSteamID lobbyId, APIDispatchDelegate< LobbyEnter_t > callResult)
Definition Lobby.cs:62
void OnLobbyEntered(LobbyEnter_t result, bool failure)
static void WriteDebugString(string format, params object[] args)

References Terraria.Social.Steam.NetSocialModule._lobby, Terraria.Localization.Language.GetTextValue(), Terraria.Social.Steam.Lobby.Join(), Terraria.Social.Steam.NetClientSocialModule.OnLobbyEntered(), Terraria.Main.OpenPlayerSelect(), Terraria.IO.PlayerFileData.SetAsActive(), and Terraria.Social.WeGame.WeGameHelper.WriteDebugString().

Referenced by Terraria.Social.Steam.NetClientSocialModule.CheckParameters().