Assignment for RMIT Mixed Reality in 2020
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.

42 lines
1.3 KiB

  1. // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
  2. namespace Oculus.Platform.Models
  3. {
  4. using System;
  5. using System.Collections;
  6. using Oculus.Platform.Models;
  7. using System.Collections.Generic;
  8. using UnityEngine;
  9. public class AchievementProgress
  10. {
  11. public readonly string Bitfield;
  12. public readonly ulong Count;
  13. public readonly bool IsUnlocked;
  14. public readonly string Name;
  15. public readonly DateTime UnlockTime;
  16. public AchievementProgress(IntPtr o)
  17. {
  18. Bitfield = CAPI.ovr_AchievementProgress_GetBitfield(o);
  19. Count = CAPI.ovr_AchievementProgress_GetCount(o);
  20. IsUnlocked = CAPI.ovr_AchievementProgress_GetIsUnlocked(o);
  21. Name = CAPI.ovr_AchievementProgress_GetName(o);
  22. UnlockTime = CAPI.ovr_AchievementProgress_GetUnlockTime(o);
  23. }
  24. }
  25. public class AchievementProgressList : DeserializableList<AchievementProgress> {
  26. public AchievementProgressList(IntPtr a) {
  27. var count = (int)CAPI.ovr_AchievementProgressArray_GetSize(a);
  28. _Data = new List<AchievementProgress>(count);
  29. for (int i = 0; i < count; i++) {
  30. _Data.Add(new AchievementProgress(CAPI.ovr_AchievementProgressArray_GetElement(a, (UIntPtr)i)));
  31. }
  32. _NextUrl = CAPI.ovr_AchievementProgressArray_GetNextUrl(a);
  33. }
  34. }
  35. }