mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 13:31:17 +03:00
Cleaned up SteamClientClass/SteamServerClass
This commit is contained in:
parent
b0d23eff22
commit
8b2a888feb
@ -92,8 +92,7 @@ namespace Steamworks
|
||||
|
||||
public class SteamClientClass<T> : SteamClass
|
||||
{
|
||||
internal static SteamInterface Interface => InterfaceClient;
|
||||
internal static SteamInterface InterfaceClient;
|
||||
internal static SteamInterface Interface;
|
||||
|
||||
internal override void InitializeInterface( bool server )
|
||||
{
|
||||
@ -105,19 +104,18 @@ namespace Steamworks
|
||||
if ( server )
|
||||
throw new System.NotSupportedException();
|
||||
|
||||
InterfaceClient = iface;
|
||||
Interface = iface;
|
||||
}
|
||||
|
||||
internal override void DestroyInterface( bool server )
|
||||
{
|
||||
InterfaceClient = null;
|
||||
Interface = null;
|
||||
}
|
||||
}
|
||||
|
||||
public class SteamServerClass<T> : SteamClass
|
||||
{
|
||||
internal static SteamInterface Interface => InterfaceServer;
|
||||
internal static SteamInterface InterfaceServer;
|
||||
internal static SteamInterface Interface;
|
||||
|
||||
internal override void InitializeInterface( bool server )
|
||||
{
|
||||
@ -129,12 +127,12 @@ namespace Steamworks
|
||||
if ( !server )
|
||||
throw new System.NotSupportedException();
|
||||
|
||||
InterfaceServer = iface;
|
||||
Interface = iface;
|
||||
}
|
||||
|
||||
internal override void DestroyInterface( bool server )
|
||||
{
|
||||
InterfaceServer = null;
|
||||
Interface = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user