Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.3 KiB

  1. // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
  2. namespace Oculus.Platform
  3. {
  4. using System;
  5. using System.Collections;
  6. using Oculus.Platform.Models;
  7. using System.Collections.Generic;
  8. using UnityEngine;
  9. public class MatchmakingOptions {
  10. public MatchmakingOptions() {
  11. Handle = CAPI.ovr_MatchmakingOptions_Create();
  12. }
  13. public void SetCreateRoomDataStore(string key, string value) {
  14. CAPI.ovr_MatchmakingOptions_SetCreateRoomDataStoreString(Handle, key, value);
  15. }
  16. public void ClearCreateRoomDataStore() {
  17. CAPI.ovr_MatchmakingOptions_ClearCreateRoomDataStore(Handle);
  18. }
  19. public void SetCreateRoomJoinPolicy(RoomJoinPolicy value) {
  20. CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value);
  21. }
  22. public void SetCreateRoomMaxUsers(uint value) {
  23. CAPI.ovr_MatchmakingOptions_SetCreateRoomMaxUsers(Handle, value);
  24. }
  25. public void AddEnqueueAdditionalUser(UInt64 userID) {
  26. CAPI.ovr_MatchmakingOptions_AddEnqueueAdditionalUser(Handle, userID);
  27. }
  28. public void ClearEnqueueAdditionalUsers() {
  29. CAPI.ovr_MatchmakingOptions_ClearEnqueueAdditionalUsers(Handle);
  30. }
  31. public void SetEnqueueDataSettings(string key, int value) {
  32. CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsInt(Handle, key, value);
  33. }
  34. public void SetEnqueueDataSettings(string key, double value) {
  35. CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsDouble(Handle, key, value);
  36. }
  37. public void SetEnqueueDataSettings(string key, string value) {
  38. CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsString(Handle, key, value);
  39. }
  40. public void ClearEnqueueDataSettings() {
  41. CAPI.ovr_MatchmakingOptions_ClearEnqueueDataSettings(Handle);
  42. }
  43. public void SetEnqueueIsDebug(bool value) {
  44. CAPI.ovr_MatchmakingOptions_SetEnqueueIsDebug(Handle, value);
  45. }
  46. public void SetEnqueueQueryKey(string value) {
  47. CAPI.ovr_MatchmakingOptions_SetEnqueueQueryKey(Handle, value);
  48. }
  49. // For passing to native C
  50. public static explicit operator IntPtr(MatchmakingOptions options) {
  51. return options != null ? options.Handle : IntPtr.Zero;
  52. }
  53. ~MatchmakingOptions() {
  54. CAPI.ovr_MatchmakingOptions_Destroy(Handle);
  55. }
  56. IntPtr Handle;
  57. }
  58. }