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