Regions in SteamNetworkingSockets

This commit is contained in:
Garry Newman 2019-05-07 17:41:36 +01:00
parent 82fe950bbf
commit 45471330d4

View File

@ -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()
{ {