mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Refactor
This commit is contained in:
parent
2d2be118d3
commit
db1cfde383
@ -13,15 +13,15 @@ namespace Steamworks
|
||||
/// </summary>
|
||||
public static class Apps
|
||||
{
|
||||
static Internal.ISteamApps _steamapps;
|
||||
static Internal.ISteamApps _internal;
|
||||
internal static Internal.ISteamApps steamapps
|
||||
{
|
||||
get
|
||||
{
|
||||
if ( _steamapps == null )
|
||||
_steamapps = new Internal.ISteamApps();
|
||||
if ( _internal == null )
|
||||
_internal = new Internal.ISteamApps();
|
||||
|
||||
return _steamapps;
|
||||
return _internal;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ public static void Init( uint appid )
|
||||
|
||||
Apps.InstallEvents();
|
||||
Utils.InstallEvents();
|
||||
Parental.InstallEvents();
|
||||
}
|
||||
|
||||
internal static void RegisterCallback( IntPtr intPtr, int callbackId )
|
||||
|
@ -12,15 +12,15 @@ namespace Steamworks
|
||||
/// </summary>
|
||||
public static class Utils
|
||||
{
|
||||
static Internal.ISteamUtils _steamutils;
|
||||
static Internal.ISteamUtils _internal;
|
||||
internal static Internal.ISteamUtils steamutils
|
||||
{
|
||||
get
|
||||
{
|
||||
if ( _steamutils == null )
|
||||
_steamutils = new Internal.ISteamUtils();
|
||||
if ( _internal == null )
|
||||
_internal = new Internal.ISteamUtils();
|
||||
|
||||
return _steamutils;
|
||||
return _internal;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user