mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-16 14:22:27 +03:00
Regions in SteamNetworkingSockets
This commit is contained in:
parent
82fe950bbf
commit
45471330d4
@ -28,6 +28,8 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region SocketInterface
|
||||||
|
|
||||||
static Dictionary<uint, SocketInterface> SocketInterfaces;
|
static Dictionary<uint, SocketInterface> SocketInterfaces;
|
||||||
|
|
||||||
internal static SocketInterface GetSocketInterface( uint id )
|
internal static SocketInterface GetSocketInterface( uint id )
|
||||||
@ -48,8 +50,9 @@ namespace Steamworks
|
|||||||
Console.WriteLine( $"Installing Socket For {id}" );
|
Console.WriteLine( $"Installing Socket For {id}" );
|
||||||
SocketInterfaces[id] = iface;
|
SocketInterfaces[id] = iface;
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region ConnectionInterface
|
||||||
static Dictionary<uint, ConnectionInterface> ConnectionInterfaces;
|
static Dictionary<uint, ConnectionInterface> ConnectionInterfaces;
|
||||||
|
|
||||||
|
|
||||||
@ -69,6 +72,7 @@ namespace Steamworks
|
|||||||
if ( id == 0 ) throw new System.ArgumentException( "Invalid Connection" );
|
if ( id == 0 ) throw new System.ArgumentException( "Invalid Connection" );
|
||||||
ConnectionInterfaces[id] = iface;
|
ConnectionInterfaces[id] = iface;
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
internal static void Shutdown()
|
internal static void Shutdown()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user