ChallengeOptions.cs
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using System;
using System.Collections;
using Oculus.Platform.Models;
using System.Collections.Generic;
using UnityEngine;
public class ChallengeOptions {
public ChallengeOptions() {
Handle = CAPI.ovr_ChallengeOptions_Create();
}
public void SetDescription(string value) {
CAPI.ovr_ChallengeOptions_SetDescription(Handle, value);
}
public void SetEndDate(DateTime value) {
CAPI.ovr_ChallengeOptions_SetEndDate(Handle, value);
}
public void SetIncludeActiveChallenges(bool value) {
CAPI.ovr_ChallengeOptions_SetIncludeActiveChallenges(Handle, value);
}
public void SetIncludeFutureChallenges(bool value) {
CAPI.ovr_ChallengeOptions_SetIncludeFutureChallenges(Handle, value);
}
public void SetIncludePastChallenges(bool value) {
CAPI.ovr_ChallengeOptions_SetIncludePastChallenges(Handle, value);
}
/// Optional: Only find challenges belonging to this leaderboard.
public void SetLeaderboardName(string value) {
CAPI.ovr_ChallengeOptions_SetLeaderboardName(Handle, value);
}
public void SetStartDate(DateTime value) {
CAPI.ovr_ChallengeOptions_SetStartDate(Handle, value);
}
public void SetTitle(string value) {
CAPI.ovr_ChallengeOptions_SetTitle(Handle, value);
}
public void SetViewerFilter(ChallengeViewerFilter value) {
CAPI.ovr_ChallengeOptions_SetViewerFilter(Handle, value);
}
public void SetVisibility(ChallengeVisibility value) {
CAPI.ovr_ChallengeOptions_SetVisibility(Handle, value);
}
/// For passing to native C
public static explicit operator IntPtr(ChallengeOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~ChallengeOptions() {
CAPI.ovr_ChallengeOptions_Destroy(Handle);
}
IntPtr Handle;
}
}