clean project
This commit is contained in:
39
Assets/Oculus/Platform/Scripts/Models/Team.cs
Normal file
39
Assets/Oculus/Platform/Scripts/Models/Team.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Team
|
||||
{
|
||||
public readonly UserList AssignedUsers;
|
||||
public readonly int MaxUsers;
|
||||
public readonly int MinUsers;
|
||||
public readonly string Name;
|
||||
|
||||
|
||||
public Team(IntPtr o)
|
||||
{
|
||||
AssignedUsers = new UserList(CAPI.ovr_Team_GetAssignedUsers(o));
|
||||
MaxUsers = CAPI.ovr_Team_GetMaxUsers(o);
|
||||
MinUsers = CAPI.ovr_Team_GetMinUsers(o);
|
||||
Name = CAPI.ovr_Team_GetName(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class TeamList : DeserializableList<Team> {
|
||||
public TeamList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_TeamArray_GetSize(a);
|
||||
_Data = new List<Team>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new Team(CAPI.ovr_TeamArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user