mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Usaboility tweaks
This commit is contained in:
parent
b39ee80ecd
commit
f129ff7cac
@ -100,7 +100,13 @@ namespace Steamworks
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the time of the purchase of the app
|
/// Returns the time of the purchase of the app
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Checks if the user is subscribed to the current app through a free weekend
|
/// Checks if the user is subscribed to the current app through a free weekend
|
||||||
|
@ -24,5 +24,7 @@ namespace Steamworks.Data
|
|||||||
{
|
{
|
||||||
return value.Value;
|
return value.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString() => Value.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user