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.

48 lines
1.4 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 MatchmakingEnqueuedUser
  11. {
  12. public readonly Dictionary<string, string> CustomData;
  13. // May be null. Check before using.
  14. public readonly User UserOptional;
  15. [Obsolete("Deprecated in favor of UserOptional")]
  16. public readonly User User;
  17. public MatchmakingEnqueuedUser(IntPtr o)
  18. {
  19. CustomData = CAPI.DataStoreFromNative(CAPI.ovr_MatchmakingEnqueuedUser_GetCustomData(o));
  20. {
  21. var pointer = CAPI.ovr_MatchmakingEnqueuedUser_GetUser(o);
  22. User = new User(pointer);
  23. if (pointer == IntPtr.Zero) {
  24. UserOptional = null;
  25. } else {
  26. UserOptional = User;
  27. }
  28. }
  29. }
  30. }
  31. public class MatchmakingEnqueuedUserList : DeserializableList<MatchmakingEnqueuedUser> {
  32. public MatchmakingEnqueuedUserList(IntPtr a) {
  33. var count = (int)CAPI.ovr_MatchmakingEnqueuedUserArray_GetSize(a);
  34. _Data = new List<MatchmakingEnqueuedUser>(count);
  35. for (int i = 0; i < count; i++) {
  36. _Data.Add(new MatchmakingEnqueuedUser(CAPI.ovr_MatchmakingEnqueuedUserArray_GetElement(a, (UIntPtr)i)));
  37. }
  38. }
  39. }
  40. }