Discord integration for Gamecraft
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.

StoreManager.cs 793B

1234567891011121314151617181920212223242526272829303132
  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. }