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.

41 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 NetSyncSession
  10. {
  11. public readonly long ConnectionId;
  12. public readonly bool Muted;
  13. public readonly UInt64 SessionId;
  14. public readonly UInt64 UserId;
  15. public readonly string VoipGroup;
  16. public NetSyncSession(IntPtr o)
  17. {
  18. ConnectionId = CAPI.ovr_NetSyncSession_GetConnectionId(o);
  19. Muted = CAPI.ovr_NetSyncSession_GetMuted(o);
  20. SessionId = CAPI.ovr_NetSyncSession_GetSessionId(o);
  21. UserId = CAPI.ovr_NetSyncSession_GetUserId(o);
  22. VoipGroup = CAPI.ovr_NetSyncSession_GetVoipGroup(o);
  23. }
  24. }
  25. public class NetSyncSessionList : DeserializableList<NetSyncSession> {
  26. public NetSyncSessionList(IntPtr a) {
  27. var count = (int)CAPI.ovr_NetSyncSessionArray_GetSize(a);
  28. _Data = new List<NetSyncSession>(count);
  29. for (int i = 0; i < count; i++) {
  30. _Data.Add(new NetSyncSession(CAPI.ovr_NetSyncSessionArray_GetElement(a, (UIntPtr)i)));
  31. }
  32. }
  33. }
  34. }