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.

76 lines
2.0 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 Party
  11. {
  12. public readonly UInt64 ID;
  13. // May be null. Check before using.
  14. public readonly UserList InvitedUsersOptional;
  15. [Obsolete("Deprecated in favor of InvitedUsersOptional")]
  16. public readonly UserList InvitedUsers;
  17. // May be null. Check before using.
  18. public readonly User LeaderOptional;
  19. [Obsolete("Deprecated in favor of LeaderOptional")]
  20. public readonly User Leader;
  21. // May be null. Check before using.
  22. public readonly Room RoomOptional;
  23. [Obsolete("Deprecated in favor of RoomOptional")]
  24. public readonly Room Room;
  25. // May be null. Check before using.
  26. public readonly UserList UsersOptional;
  27. [Obsolete("Deprecated in favor of UsersOptional")]
  28. public readonly UserList Users;
  29. public Party(IntPtr o)
  30. {
  31. ID = CAPI.ovr_Party_GetID(o);
  32. {
  33. var pointer = CAPI.ovr_Party_GetInvitedUsers(o);
  34. InvitedUsers = new UserList(pointer);
  35. if (pointer == IntPtr.Zero) {
  36. InvitedUsersOptional = null;
  37. } else {
  38. InvitedUsersOptional = InvitedUsers;
  39. }
  40. }
  41. {
  42. var pointer = CAPI.ovr_Party_GetLeader(o);
  43. Leader = new User(pointer);
  44. if (pointer == IntPtr.Zero) {
  45. LeaderOptional = null;
  46. } else {
  47. LeaderOptional = Leader;
  48. }
  49. }
  50. {
  51. var pointer = CAPI.ovr_Party_GetRoom(o);
  52. Room = new Room(pointer);
  53. if (pointer == IntPtr.Zero) {
  54. RoomOptional = null;
  55. } else {
  56. RoomOptional = Room;
  57. }
  58. }
  59. {
  60. var pointer = CAPI.ovr_Party_GetUsers(o);
  61. Users = new UserList(pointer);
  62. if (pointer == IntPtr.Zero) {
  63. UsersOptional = null;
  64. } else {
  65. UsersOptional = Users;
  66. }
  67. }
  68. }
  69. }
  70. }