This repository has moved! Please check out the latest version at the new location https://git.exmods.org/NGnius/GameSDKcraft
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

33 lines
793B

  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Discord
  6. {
  7. public partial class StoreManager
  8. {
  9. public IEnumerable<Entitlement> GetEntitlements()
  10. {
  11. var count = CountEntitlements();
  12. var entitlements = new List<Entitlement>();
  13. for (var i = 0; i < count; i++)
  14. {
  15. entitlements.Add(GetEntitlementAt(i));
  16. }
  17. return entitlements;
  18. }
  19. public IEnumerable<Sku> GetSkus()
  20. {
  21. var count = CountSkus();
  22. var skus = new List<Sku>();
  23. for (var i = 0; i < count; i++)
  24. {
  25. skus.Add(GetSkuAt(i));
  26. }
  27. return skus;
  28. }
  29. }
  30. }