BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / RoomOptions.cs

RoomOptions.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
RoomOptions.cs 1.5 KiB Download Raw
1// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
2
3namespace Oculus.Platform
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 RoomOptions {
12
13 public RoomOptions() {
14 Handle = CAPI.ovr_RoomOptions_Create();
15 }
16
17 public void SetDataStore(string key, string value) {
18 CAPI.ovr_RoomOptions_SetDataStoreString(Handle, key, value);
19 }
20
21 public void ClearDataStore() {
22 CAPI.ovr_RoomOptions_ClearDataStore(Handle);
23 }
24
25 public void SetExcludeRecentlyMet(bool value) {
26 CAPI.ovr_RoomOptions_SetExcludeRecentlyMet(Handle, value);
27 }
28
29 public void SetMaxUserResults(uint value) {
30 CAPI.ovr_RoomOptions_SetMaxUserResults(Handle, value);
31 }
32
33 public void SetOrdering(UserOrdering value) {
34 CAPI.ovr_RoomOptions_SetOrdering(Handle, value);
35 }
36
37 public void SetRecentlyMetTimeWindow(TimeWindow value) {
38 CAPI.ovr_RoomOptions_SetRecentlyMetTimeWindow(Handle, value);
39 }
40
41 public void SetRoomId(UInt64 value) {
42 CAPI.ovr_RoomOptions_SetRoomId(Handle, value);
43 }
44
45 public void SetTurnOffUpdates(bool value) {
46 CAPI.ovr_RoomOptions_SetTurnOffUpdates(Handle, value);
47 }
48
49
50 // For passing to native C
51 public static explicit operator IntPtr(RoomOptions options) {
52 return options != null ? options.Handle : IntPtr.Zero;
53 }
54
55 ~RoomOptions() {
56 CAPI.ovr_RoomOptions_Destroy(Handle);
57 }
58
59 IntPtr Handle;
60 }
61}