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.

45 lines
1.4 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 LeaderboardEntry
  10. {
  11. public readonly byte[] ExtraData;
  12. public readonly int Rank;
  13. public readonly long Score;
  14. public readonly DateTime Timestamp;
  15. public readonly User User;
  16. public LeaderboardEntry(IntPtr o)
  17. {
  18. ExtraData = CAPI.ovr_LeaderboardEntry_GetExtraData(o);
  19. Rank = CAPI.ovr_LeaderboardEntry_GetRank(o);
  20. Score = CAPI.ovr_LeaderboardEntry_GetScore(o);
  21. Timestamp = CAPI.ovr_LeaderboardEntry_GetTimestamp(o);
  22. User = new User(CAPI.ovr_LeaderboardEntry_GetUser(o));
  23. }
  24. }
  25. public class LeaderboardEntryList : DeserializableList<LeaderboardEntry> {
  26. public LeaderboardEntryList(IntPtr a) {
  27. var count = (int)CAPI.ovr_LeaderboardEntryArray_GetSize(a);
  28. _Data = new List<LeaderboardEntry>(count);
  29. for (int i = 0; i < count; i++) {
  30. _Data.Add(new LeaderboardEntry(CAPI.ovr_LeaderboardEntryArray_GetElement(a, (UIntPtr)i)));
  31. }
  32. TotalCount = CAPI.ovr_LeaderboardEntryArray_GetTotalCount(a);
  33. _PreviousUrl = CAPI.ovr_LeaderboardEntryArray_GetPreviousUrl(a);
  34. _NextUrl = CAPI.ovr_LeaderboardEntryArray_GetNextUrl(a);
  35. }
  36. public readonly ulong TotalCount;
  37. }
  38. }