BlueGit

blue-star ggj-2020

Files

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

SdkAccount.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
SdkAccount.cs 877 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 SdkAccount
12 {
13 public readonly SdkAccountType AccountType;
14 public readonly UInt64 UserId;
15
16
17 public SdkAccount(IntPtr o)
18 {
19 AccountType = CAPI.ovr_SdkAccount_GetAccountType(o);
20 UserId = CAPI.ovr_SdkAccount_GetUserId(o);
21 }
22 }
23
24 public class SdkAccountList : DeserializableList<SdkAccount> {
25 public SdkAccountList(IntPtr a) {
26 var count = (int)CAPI.ovr_SdkAccountArray_GetSize(a);
27 _Data = new List<SdkAccount>(count);
28 for (int i = 0; i < count; i++) {
29 _Data.Add(new SdkAccount(CAPI.ovr_SdkAccountArray_GetElement(a, (UIntPtr)i)));
30 }
31
32 }
33
34 }
35}