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.

39 lines
981 B

  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 Team
  10. {
  11. public readonly UserList AssignedUsers;
  12. public readonly int MaxUsers;
  13. public readonly int MinUsers;
  14. public readonly string Name;
  15. public Team(IntPtr o)
  16. {
  17. AssignedUsers = new UserList(CAPI.ovr_Team_GetAssignedUsers(o));
  18. MaxUsers = CAPI.ovr_Team_GetMaxUsers(o);
  19. MinUsers = CAPI.ovr_Team_GetMinUsers(o);
  20. Name = CAPI.ovr_Team_GetName(o);
  21. }
  22. }
  23. public class TeamList : DeserializableList<Team> {
  24. public TeamList(IntPtr a) {
  25. var count = (int)CAPI.ovr_TeamArray_GetSize(a);
  26. _Data = new List<Team>(count);
  27. for (int i = 0; i < count; i++) {
  28. _Data.Add(new Team(CAPI.ovr_TeamArray_GetElement(a, (UIntPtr)i)));
  29. }
  30. }
  31. }
  32. }