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.

49 lines
1.2 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 UserAndRoom
  11. {
  12. // May be null. Check before using.
  13. public readonly Room RoomOptional;
  14. [Obsolete("Deprecated in favor of RoomOptional")]
  15. public readonly Room Room;
  16. public readonly User User;
  17. public UserAndRoom(IntPtr o)
  18. {
  19. {
  20. var pointer = CAPI.ovr_UserAndRoom_GetRoom(o);
  21. Room = new Room(pointer);
  22. if (pointer == IntPtr.Zero) {
  23. RoomOptional = null;
  24. } else {
  25. RoomOptional = Room;
  26. }
  27. }
  28. User = new User(CAPI.ovr_UserAndRoom_GetUser(o));
  29. }
  30. }
  31. public class UserAndRoomList : DeserializableList<UserAndRoom> {
  32. public UserAndRoomList(IntPtr a) {
  33. var count = (int)CAPI.ovr_UserAndRoomArray_GetSize(a);
  34. _Data = new List<UserAndRoom>(count);
  35. for (int i = 0; i < count; i++) {
  36. _Data.Add(new UserAndRoom(CAPI.ovr_UserAndRoomArray_GetElement(a, (UIntPtr)i)));
  37. }
  38. _NextUrl = CAPI.ovr_UserAndRoomArray_GetNextUrl(a);
  39. }
  40. }
  41. }