| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | namespace 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 AchievementDefinition |
| 12 | { |
| 13 | public readonly AchievementType Type; |
| 14 | public readonly string Name; |
| 15 | public readonly uint BitfieldLength; |
| 16 | public readonly ulong Target; |
| 17 | |
| 18 | |
| 19 | public AchievementDefinition(IntPtr o) |
| 20 | { |
| 21 | Type = CAPI.ovr_AchievementDefinition_GetType(o); |
| 22 | Name = CAPI.ovr_AchievementDefinition_GetName(o); |
| 23 | BitfieldLength = CAPI.ovr_AchievementDefinition_GetBitfieldLength(o); |
| 24 | Target = CAPI.ovr_AchievementDefinition_GetTarget(o); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | public class AchievementDefinitionList : DeserializableList<AchievementDefinition> { |
| 29 | public AchievementDefinitionList(IntPtr a) { |
| 30 | var count = (int)CAPI.ovr_AchievementDefinitionArray_GetSize(a); |
| 31 | _Data = new List<AchievementDefinition>(count); |
| 32 | for (int i = 0; i < count; i++) { |
| 33 | _Data.Add(new AchievementDefinition(CAPI.ovr_AchievementDefinitionArray_GetElement(a, (UIntPtr)i))); |
| 34 | } |
| 35 | |
| 36 | _NextUrl = CAPI.ovr_AchievementDefinitionArray_GetNextUrl(a); |
| 37 | } |
| 38 | |
| 39 | } |
| 40 | } |