BlueGit

blue-star ggj-2020

Files

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

LeaderboardEntry.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
LeaderboardEntry.cs 1.4 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 LeaderboardEntry
12 {
13 public readonly byte[] ExtraData;
14 public readonly int Rank;
15 public readonly long Score;
16 public readonly DateTime Timestamp;
17 public readonly User User;
18
19
20 public LeaderboardEntry(IntPtr o)
21 {
22 ExtraData = CAPI.ovr_LeaderboardEntry_GetExtraData(o);
23 Rank = CAPI.ovr_LeaderboardEntry_GetRank(o);
24 Score = CAPI.ovr_LeaderboardEntry_GetScore(o);
25 Timestamp = CAPI.ovr_LeaderboardEntry_GetTimestamp(o);
26 User = new User(CAPI.ovr_LeaderboardEntry_GetUser(o));
27 }
28 }
29
30 public class LeaderboardEntryList : DeserializableList<LeaderboardEntry> {
31 public LeaderboardEntryList(IntPtr a) {
32 var count = (int)CAPI.ovr_LeaderboardEntryArray_GetSize(a);
33 _Data = new List<LeaderboardEntry>(count);
34 for (int i = 0; i < count; i++) {
35 _Data.Add(new LeaderboardEntry(CAPI.ovr_LeaderboardEntryArray_GetElement(a, (UIntPtr)i)));
36 }
37
38 TotalCount = CAPI.ovr_LeaderboardEntryArray_GetTotalCount(a);
39 _PreviousUrl = CAPI.ovr_LeaderboardEntryArray_GetPreviousUrl(a);
40 _NextUrl = CAPI.ovr_LeaderboardEntryArray_GetNextUrl(a);
41 }
42
43 public readonly ulong TotalCount;
44 }
45}