summaryrefslogtreecommitdiff
path: root/Assets/Plugins/DiscordGameSDK/StoreManager.cs
blob: 48645767c38d24b7ef468ab7fd9e41419b8cf3f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;

namespace Discord
{
    public partial class StoreManager
    {
        public IEnumerable<Entitlement> GetEntitlements()
        {
            var count = CountEntitlements();
            var entitlements = new List<Entitlement>();
            for (var i = 0; i < count; i++)
            {
                entitlements.Add(GetEntitlementAt(i));
            }
            return entitlements;
        }

        public IEnumerable<Sku> GetSkus()
        {
            var count = CountSkus();
            var skus = new List<Sku>();
            for (var i = 0; i < count; i++)
            {
                skus.Add(GetSkuAt(i));
            }
            return skus;
        }
    }
}