BlueGit

blue-star ggj-2020

Files

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

MatchmakingOptions.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
MatchmakingOptions.cs 2.3 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 MatchmakingOptions {
12
13 public MatchmakingOptions() {
14 Handle = CAPI.ovr_MatchmakingOptions_Create();
15 }
16
17 public void SetCreateRoomDataStore(string key, string value) {
18 CAPI.ovr_MatchmakingOptions_SetCreateRoomDataStoreString(Handle, key, value);
19 }
20
21 public void ClearCreateRoomDataStore() {
22 CAPI.ovr_MatchmakingOptions_ClearCreateRoomDataStore(Handle);
23 }
24
25 public void SetCreateRoomJoinPolicy(RoomJoinPolicy value) {
26 CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value);
27 }
28
29 public void SetCreateRoomMaxUsers(uint value) {
30 CAPI.ovr_MatchmakingOptions_SetCreateRoomMaxUsers(Handle, value);
31 }
32
33 public void AddEnqueueAdditionalUser(UInt64 userID) {
34 CAPI.ovr_MatchmakingOptions_AddEnqueueAdditionalUser(Handle, userID);
35 }
36
37 public void ClearEnqueueAdditionalUsers() {
38 CAPI.ovr_MatchmakingOptions_ClearEnqueueAdditionalUsers(Handle);
39 }
40
41 public void SetEnqueueDataSettings(string key, int value) {
42 CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsInt(Handle, key, value);
43 }
44
45 public void SetEnqueueDataSettings(string key, double value) {
46 CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsDouble(Handle, key, value);
47 }
48
49 public void SetEnqueueDataSettings(string key, string value) {
50 CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsString(Handle, key, value);
51 }
52
53 public void ClearEnqueueDataSettings() {
54 CAPI.ovr_MatchmakingOptions_ClearEnqueueDataSettings(Handle);
55 }
56
57 public void SetEnqueueIsDebug(bool value) {
58 CAPI.ovr_MatchmakingOptions_SetEnqueueIsDebug(Handle, value);
59 }
60
61 public void SetEnqueueQueryKey(string value) {
62 CAPI.ovr_MatchmakingOptions_SetEnqueueQueryKey(Handle, value);
63 }
64
65
66 // For passing to native C
67 public static explicit operator IntPtr(MatchmakingOptions options) {
68 return options != null ? options.Handle : IntPtr.Zero;
69 }
70
71 ~MatchmakingOptions() {
72 CAPI.ovr_MatchmakingOptions_Destroy(Handle);
73 }
74
75 IntPtr Handle;
76 }
77}