BlueGit

blue-star ggj-2020

Files

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

AchievementProgress.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
AchievementProgress.cs 1.3 KiB 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 AchievementProgress
12 {
13 public readonly string Bitfield;
14 public readonly ulong Count;
15 public readonly bool IsUnlocked;
16 public readonly string Name;
17 public readonly DateTime UnlockTime;
18
19
20 public AchievementProgress(IntPtr o)
21 {
22 Bitfield = CAPI.ovr_AchievementProgress_GetBitfield(o);
23 Count = CAPI.ovr_AchievementProgress_GetCount(o);
24 IsUnlocked = CAPI.ovr_AchievementProgress_GetIsUnlocked(o);
25 Name = CAPI.ovr_AchievementProgress_GetName(o);
26 UnlockTime = CAPI.ovr_AchievementProgress_GetUnlockTime(o);
27 }
28 }
29
30 public class AchievementProgressList : DeserializableList<AchievementProgress> {
31 public AchievementProgressList(IntPtr a) {
32 var count = (int)CAPI.ovr_AchievementProgressArray_GetSize(a);
33 _Data = new List<AchievementProgress>(count);
34 for (int i = 0; i < count; i++) {
35 _Data.Add(new AchievementProgress(CAPI.ovr_AchievementProgressArray_GetElement(a, (UIntPtr)i)));
36 }
37
38 _NextUrl = CAPI.ovr_AchievementProgressArray_GetNextUrl(a);
39 }
40
41 }
42}