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.
 
 
 

48 lines
1.4 KiB

// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
#pragma warning disable 0618
namespace Oculus.Platform.Models
{
using System;
using System.Collections;
using Oculus.Platform.Models;
using System.Collections.Generic;
using UnityEngine;
public class MatchmakingEnqueuedUser
{
public readonly Dictionary<string, string> CustomData;
// May be null. Check before using.
public readonly User UserOptional;
[Obsolete("Deprecated in favor of UserOptional")]
public readonly User User;
public MatchmakingEnqueuedUser(IntPtr o)
{
CustomData = CAPI.DataStoreFromNative(CAPI.ovr_MatchmakingEnqueuedUser_GetCustomData(o));
{
var pointer = CAPI.ovr_MatchmakingEnqueuedUser_GetUser(o);
User = new User(pointer);
if (pointer == IntPtr.Zero) {
UserOptional = null;
} else {
UserOptional = User;
}
}
}
}
public class MatchmakingEnqueuedUserList : DeserializableList<MatchmakingEnqueuedUser> {
public MatchmakingEnqueuedUserList(IntPtr a) {
var count = (int)CAPI.ovr_MatchmakingEnqueuedUserArray_GetSize(a);
_Data = new List<MatchmakingEnqueuedUser>(count);
for (int i = 0; i < count; i++) {
_Data.Add(new MatchmakingEnqueuedUser(CAPI.ovr_MatchmakingEnqueuedUserArray_GetElement(a, (UIntPtr)i)));
}
}
}
}