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

◆ OnLobbyCreated()

void Terraria.Social.WeGame.NetServerSocialModule.OnLobbyCreated ( RailID lobbyID)
inlineprivate

Definition at line 327 of file NetServerSocialModule.cs.

328 {
329 WeGameHelper.WriteDebugString("SetLocalPeer: {0}", ((RailComparableID)lobbyID).id_);
333 Action action = delegate
334 {
335 ReportServerID t = new ReportServerID
336 {
337 _serverID = ((RailComparableID)lobbyID).id_.ToString()
338 };
339 IPCMessage iPCMessage = new IPCMessage();
340 iPCMessage.Build(IPCMessageType.IPCMessageTypeReportServerID, t);
341 WeGameHelper.WriteDebugString("Send serverID to game client - " + _client.SendMessage(iPCMessage));
342 };
344 {
345 action();
346 return;
347 }
349 WeGameHelper.WriteDebugString("report server id fail, no connection");
350 }
static ? Delegate Combine(Delegate? a, Delegate? b)
Definition Delegate.cs:379
delegate void Action()

References Terraria.Social.WeGame.NetServerSocialModule._client, Terraria.Social.WeGame.NetServerSocialModule._ipcConnetedAction, Terraria.Social.WeGame.NetSocialModule._reader, Terraria.Social.WeGame.NetServerSocialModule._serverConnected, Terraria.Social.WeGame.NetServerSocialModule._serverID, Terraria.Social.WeGame.NetSocialModule._writer, System.Action(), System.action, System.Delegate.Combine(), Terraria.Social.WeGame.MessageDispatcherClient.SendMessage(), Terraria.Social.WeGame.WeGameP2PReader.SetLocalPeer(), Terraria.Social.WeGame.WeGameP2PWriter.SetLocalPeer(), and Terraria.Social.WeGame.WeGameHelper.WriteDebugString().

Referenced by Terraria.Social.WeGame.NetServerSocialModule.NetServerSocialModule().