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.

40 lines
1.2 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 AchievementDefinition
  10. {
  11. public readonly AchievementType Type;
  12. public readonly string Name;
  13. public readonly uint BitfieldLength;
  14. public readonly ulong Target;
  15. public AchievementDefinition(IntPtr o)
  16. {
  17. Type = CAPI.ovr_AchievementDefinition_GetType(o);
  18. Name = CAPI.ovr_AchievementDefinition_GetName(o);
  19. BitfieldLength = CAPI.ovr_AchievementDefinition_GetBitfieldLength(o);
  20. Target = CAPI.ovr_AchievementDefinition_GetTarget(o);
  21. }
  22. }
  23. public class AchievementDefinitionList : DeserializableList<AchievementDefinition> {
  24. public AchievementDefinitionList(IntPtr a) {
  25. var count = (int)CAPI.ovr_AchievementDefinitionArray_GetSize(a);
  26. _Data = new List<AchievementDefinition>(count);
  27. for (int i = 0; i < count; i++) {
  28. _Data.Add(new AchievementDefinition(CAPI.ovr_AchievementDefinitionArray_GetElement(a, (UIntPtr)i)));
  29. }
  30. _NextUrl = CAPI.ovr_AchievementDefinitionArray_GetNextUrl(a);
  31. }
  32. }
  33. }