Check Steam ownership of the paid app with BIsSubscribedApp; keep Debug fake ownership out of Release. Ref: https://partner.steamgames.com/doc/api/ISteamApps#BIsSubscribedApp
13 lines
342 B
C#
13 lines
342 B
C#
namespace ytLive.Services.Entitlement;
|
|
|
|
/// <summary>
|
|
/// Whether the current Steam account owns the paid app.
|
|
///
|
|
/// <para>Steam is the source of truth. Failure to reach Steam, load its native library, or
|
|
/// resolve the paid app ID returns <c>false</c>.</para>
|
|
/// </summary>
|
|
public interface IEntitlement
|
|
{
|
|
bool IsAppOwned { get; }
|
|
}
|