mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Usaboility tweaks
This commit is contained in:
parent
b39ee80ecd
commit
f129ff7cac
@ -39,7 +39,7 @@ namespace Steamworks
|
||||
/// <summary>
|
||||
/// posted after the user gains ownership of DLC and that DLC is installed
|
||||
/// </summary>
|
||||
public static event Action< AppId > OnDlcInstalled;
|
||||
public static event Action<AppId> OnDlcInstalled;
|
||||
|
||||
/// <summary>
|
||||
/// posted after the user gains executes a Steam URL with command line or query parameters
|
||||
@ -100,7 +100,13 @@ namespace Steamworks
|
||||
/// <summary>
|
||||
/// Returns the time of the purchase of the app
|
||||
/// </summary>
|
||||
public static DateTime PurchaseTime( AppId appid ) => Epoch.ToDateTime( Internal.GetEarliestPurchaseUnixTime( appid.Value ) );
|
||||
public static DateTime PurchaseTime( AppId appid = default )
|
||||
{
|
||||
if ( appid == 0 )
|
||||
appid = SteamClient.AppId;
|
||||
|
||||
return Epoch.ToDateTime(Internal.GetEarliestPurchaseUnixTime(appid.Value ) );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the user is subscribed to the current app through a free weekend
|
||||
|
@ -24,5 +24,7 @@ namespace Steamworks.Data
|
||||
{
|
||||
return value.Value;
|
||||
}
|
||||
|
||||
public override string ToString() => Value.ToString();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user