BlueGit

blue-star ggj-2020

Files

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

MatchmakingEnqueuedUser.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
MatchmakingEnqueuedUser.cs 1.4 KiB Download Raw
1// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
2
3#pragma warning disable 0618
4
5namespace Oculus.Platform.Models
6{
7 using System;
8 using System.Collections;
9 using Oculus.Platform.Models;
10 using System.Collections.Generic;
11 using UnityEngine;
12
13 public class MatchmakingEnqueuedUser
14 {
15 public readonly Dictionary<string, string> CustomData;
16 // May be null. Check before using.
17 public readonly User UserOptional;
18 [Obsolete("Deprecated in favor of UserOptional")]
19 public readonly User User;
20
21
22 public MatchmakingEnqueuedUser(IntPtr o)
23 {
24 CustomData = CAPI.DataStoreFromNative(CAPI.ovr_MatchmakingEnqueuedUser_GetCustomData(o));
25 {
26 var pointer = CAPI.ovr_MatchmakingEnqueuedUser_GetUser(o);
27 User = new User(pointer);
28 if (pointer == IntPtr.Zero) {
29 UserOptional = null;
30 } else {
31 UserOptional = User;
32 }
33 }
34 }
35 }
36
37 public class MatchmakingEnqueuedUserList : DeserializableList<MatchmakingEnqueuedUser> {
38 public MatchmakingEnqueuedUserList(IntPtr a) {
39 var count = (int)CAPI.ovr_MatchmakingEnqueuedUserArray_GetSize(a);
40 _Data = new List<MatchmakingEnqueuedUser>(count);
41 for (int i = 0; i < count; i++) {
42 _Data.Add(new MatchmakingEnqueuedUser(CAPI.ovr_MatchmakingEnqueuedUserArray_GetElement(a, (UIntPtr)i)));
43 }
44
45 }
46
47 }
48}