コード例 #1
0
 internal static void InstallEvents()
 {
     P2PSessionRequest_t.Install(x => OnP2PSessionRequest?.Invoke(x.SteamIDRemote));
     P2PSessionConnectFail_t.Install(x => OnP2PConnectionFailed?.Invoke(x.SteamIDRemote));
 }
コード例 #2
0
 internal static void InstallEvents(bool server)
 {
     Dispatch.Install <P2PSessionRequest_t>(x => OnP2PSessionRequest?.Invoke(x.SteamIDRemote), server);
     Dispatch.Install <P2PSessionConnectFail_t>(x => OnP2PConnectionFailed?.Invoke(x.SteamIDRemote, (P2PSessionError)x.P2PSessionError), server);
 }