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.

61 lines
1.5 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 RoomOptions {
  10. public RoomOptions() {
  11. Handle = CAPI.ovr_RoomOptions_Create();
  12. }
  13. public void SetDataStore(string key, string value) {
  14. CAPI.ovr_RoomOptions_SetDataStoreString(Handle, key, value);
  15. }
  16. public void ClearDataStore() {
  17. CAPI.ovr_RoomOptions_ClearDataStore(Handle);
  18. }
  19. public void SetExcludeRecentlyMet(bool value) {
  20. CAPI.ovr_RoomOptions_SetExcludeRecentlyMet(Handle, value);
  21. }
  22. public void SetMaxUserResults(uint value) {
  23. CAPI.ovr_RoomOptions_SetMaxUserResults(Handle, value);
  24. }
  25. public void SetOrdering(UserOrdering value) {
  26. CAPI.ovr_RoomOptions_SetOrdering(Handle, value);
  27. }
  28. public void SetRecentlyMetTimeWindow(TimeWindow value) {
  29. CAPI.ovr_RoomOptions_SetRecentlyMetTimeWindow(Handle, value);
  30. }
  31. public void SetRoomId(UInt64 value) {
  32. CAPI.ovr_RoomOptions_SetRoomId(Handle, value);
  33. }
  34. public void SetTurnOffUpdates(bool value) {
  35. CAPI.ovr_RoomOptions_SetTurnOffUpdates(Handle, value);
  36. }
  37. // For passing to native C
  38. public static explicit operator IntPtr(RoomOptions options) {
  39. return options != null ? options.Handle : IntPtr.Zero;
  40. }
  41. ~RoomOptions() {
  42. CAPI.ovr_RoomOptions_Destroy(Handle);
  43. }
  44. IntPtr Handle;
  45. }
  46. }