| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | namespace 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 UserOptions { |
| 12 | |
| 13 | public UserOptions() { |
| 14 | Handle = CAPI.ovr_UserOptions_Create(); |
| 15 | } |
| 16 | |
| 17 | public void SetMaxUsers(uint value) { |
| 18 | CAPI.ovr_UserOptions_SetMaxUsers(Handle, value); |
| 19 | } |
| 20 | |
| 21 | public void AddServiceProvider(ServiceProvider value) { |
| 22 | CAPI.ovr_UserOptions_AddServiceProvider(Handle, value); |
| 23 | } |
| 24 | |
| 25 | public void ClearServiceProviders() { |
| 26 | CAPI.ovr_UserOptions_ClearServiceProviders(Handle); |
| 27 | } |
| 28 | |
| 29 | public void SetTimeWindow(TimeWindow value) { |
| 30 | CAPI.ovr_UserOptions_SetTimeWindow(Handle, value); |
| 31 | } |
| 32 | |
| 33 | |
| 34 | // For passing to native C |
| 35 | public static explicit operator IntPtr(UserOptions options) { |
| 36 | return options != null ? options.Handle : IntPtr.Zero; |
| 37 | } |
| 38 | |
| 39 | ~UserOptions() { |
| 40 | CAPI.ovr_UserOptions_Destroy(Handle); |
| 41 | } |
| 42 | |
| 43 | IntPtr Handle; |
| 44 | } |
| 45 | } |