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

◆ OnRailCreateSessionRequest()

void Terraria.Social.WeGame.NetClientSocialModule.OnRailCreateSessionRequest ( CreateSessionRequest result)
inlineprivate

Definition at line 624 of file NetClientSocialModule.cs.

625 {
626 //IL_0082: Unknown result type (might be due to invalid IL or missing references)
627 WeGameHelper.WriteDebugString("OnRailCreateSessionRequest");
628 if (_connectionStateMap.ContainsKey(result.remote_peer) && _connectionStateMap[result.remote_peer] != 0)
629 {
630 WeGameHelper.WriteDebugString("AcceptSessionRequest, local{0}, remote:{1}", ((RailComparableID)result.local_peer).id_, ((RailComparableID)result.remote_peer).id_);
631 rail_api.RailFactory().RailNetworkHelper().AcceptSessionRequest(result.local_peer, result.remote_peer);
632 }
633 }
ConcurrentDictionary< RailID, ConnectionState > _connectionStateMap

References Terraria.Social.WeGame.NetSocialModule._connectionStateMap, System.Collections.Concurrent.ConcurrentDictionary< TKey, TValue >.ContainsKey(), and Terraria.Social.WeGame.WeGameHelper.WriteDebugString().

Referenced by Terraria.Social.WeGame.NetClientSocialModule.OnRailEvent().