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.

58 lines
1.7 KiB

  1. // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
  2. #pragma warning disable 0618
  3. namespace Oculus.Platform.Models
  4. {
  5. using System;
  6. using System.Collections;
  7. using Oculus.Platform.Models;
  8. using System.Collections.Generic;
  9. using UnityEngine;
  10. public class AssetDetails
  11. {
  12. public readonly UInt64 AssetId;
  13. public readonly string AssetType;
  14. public readonly string DownloadStatus;
  15. public readonly string Filepath;
  16. public readonly string IapStatus;
  17. // May be null. Check before using.
  18. public readonly LanguagePackInfo LanguageOptional;
  19. [Obsolete("Deprecated in favor of LanguageOptional")]
  20. public readonly LanguagePackInfo Language;
  21. public readonly string Metadata;
  22. public AssetDetails(IntPtr o)
  23. {
  24. AssetId = CAPI.ovr_AssetDetails_GetAssetId(o);
  25. AssetType = CAPI.ovr_AssetDetails_GetAssetType(o);
  26. DownloadStatus = CAPI.ovr_AssetDetails_GetDownloadStatus(o);
  27. Filepath = CAPI.ovr_AssetDetails_GetFilepath(o);
  28. IapStatus = CAPI.ovr_AssetDetails_GetIapStatus(o);
  29. {
  30. var pointer = CAPI.ovr_AssetDetails_GetLanguage(o);
  31. Language = new LanguagePackInfo(pointer);
  32. if (pointer == IntPtr.Zero) {
  33. LanguageOptional = null;
  34. } else {
  35. LanguageOptional = Language;
  36. }
  37. }
  38. Metadata = CAPI.ovr_AssetDetails_GetMetadata(o);
  39. }
  40. }
  41. public class AssetDetailsList : DeserializableList<AssetDetails> {
  42. public AssetDetailsList(IntPtr a) {
  43. var count = (int)CAPI.ovr_AssetDetailsArray_GetSize(a);
  44. _Data = new List<AssetDetails>(count);
  45. for (int i = 0; i < count; i++) {
  46. _Data.Add(new AssetDetails(CAPI.ovr_AssetDetailsArray_GetElement(a, (UIntPtr)i)));
  47. }
  48. }
  49. }
  50. }