BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / Models / Team.cs

Team.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
Team.cs 981 B Download Raw
1// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
2
3namespace 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
11 public class Team
12 {
13 public readonly UserList AssignedUsers;
14 public readonly int MaxUsers;
15 public readonly int MinUsers;
16 public readonly string Name;
17
18
19 public Team(IntPtr o)
20 {
21 AssignedUsers = new UserList(CAPI.ovr_Team_GetAssignedUsers(o));
22 MaxUsers = CAPI.ovr_Team_GetMaxUsers(o);
23 MinUsers = CAPI.ovr_Team_GetMinUsers(o);
24 Name = CAPI.ovr_Team_GetName(o);
25 }
26 }
27
28 public class TeamList : DeserializableList<Team> {
29 public TeamList(IntPtr a) {
30 var count = (int)CAPI.ovr_TeamArray_GetSize(a);
31 _Data = new List<Team>(count);
32 for (int i = 0; i < count; i++) {
33 _Data.Add(new Team(CAPI.ovr_TeamArray_GetElement(a, (UIntPtr)i)));
34 }
35
36 }
37
38 }
39}