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
12 lines
319 B
C#
12 lines
319 B
C#
namespace ytLive.Services.Entitlement;
|
|
|
|
/// <summary>
|
|
/// Development/test ownership result. Release builds exclude this type.
|
|
/// </summary>
|
|
public sealed class FakeEntitlement : IEntitlement
|
|
{
|
|
public FakeEntitlement(bool isAppOwned = false) => IsAppOwned = isAppOwned;
|
|
|
|
public bool IsAppOwned { get; set; }
|
|
}
|