Beispiel #1
0
 public void ClearServiceProviders()
 {
     CAPI.ovr_UserOptions_ClearServiceProviders(Handle);
 }
Beispiel #2
0
 public void SetStartDate(DateTime value)
 {
     CAPI.ovr_ChallengeOptions_SetStartDate(Handle, value);
 }
Beispiel #3
0
 public void SetViewerFilter(ChallengeViewerFilter value)
 {
     CAPI.ovr_ChallengeOptions_SetViewerFilter(Handle, value);
 }
Beispiel #4
0
 public ChallengeOptions()
 {
     Handle = CAPI.ovr_ChallengeOptions_Create();
 }
Beispiel #5
0
 public void SetIncludePastChallenges(bool value)
 {
     CAPI.ovr_ChallengeOptions_SetIncludePastChallenges(Handle, value);
 }
Beispiel #6
0
 public AdvancedAbuseReportOptions()
 {
     Handle = CAPI.ovr_AdvancedAbuseReportOptions_Create();
 }
Beispiel #7
0
 public void SetReportType(AbuseReportType value)
 {
     CAPI.ovr_AdvancedAbuseReportOptions_SetReportType(Handle, value);
 }
 public void SetCreateRoomMaxUsers(uint value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomMaxUsers(Handle, value) :
 }
 public void AddEnqueueAdditionalUser(UInt64 userID)
 {
     CAPI.ovr_MatchmakingOptions_AddEnqueueAdditionalUser(Handle, userID) :
 }
Beispiel #10
0
 public void ClearCreateRoomDataStore()
 {
     CAPI.ovr_MatchmakingOptions_ClearCreateRoomDataStore(Handle) :
 }
Beispiel #11
0
 public void SetCreateRoomJoinPolicy(RoomJoinPolicy value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value) :
 }
Beispiel #12
0
 public void SetCreateRoomDataStore(string key, string value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomDataStoreString(Handle, key, value) :
 }
Beispiel #13
0
 public MatchmakingOptions()
 {
     Handle = CAPI.ovr_MatchmakingOptions_Create() :
 }
Beispiel #14
0
 public void SetTimeWindow(TimeWindow value)
 {
     CAPI.ovr_UserOptions_SetTimeWindow(Handle, value);
 }
Beispiel #15
0
            public IntPtr ToUnmanaged()
            {
                var customQueryUnmanaged = new CAPI.ovrMatchmakingCustomQueryData();

                if (criteria != null && criteria.Length > 0)
                {
                    customQueryUnmanaged.criterionArrayCount = (uint)criteria.Length;
                    var temp = new CAPI.ovrMatchmakingCriterion[criteria.Length];

                    for (int i = 0; i < criteria.Length; i++)
                    {
                        temp[i].importance_ = criteria[i].importance;
                        temp[i].key_        = criteria[i].key;

                        if (criteria[i].parameters != null && criteria[i].parameters.Count > 0)
                        {
                            temp[i].parameterArrayCount = (uint)criteria[i].parameters.Count;
                            temp[i].parameterArray      = CAPI.ArrayOfStructsToIntPtr(CAPI.DictionaryToOVRKeyValuePairs(criteria[i].parameters));
                        }
                        else
                        {
                            temp[i].parameterArrayCount = 0;
                            temp[i].parameterArray      = IntPtr.Zero;
                        }
                    }

                    customQueryUnmanaged.criterionArray = CAPI.ArrayOfStructsToIntPtr(temp);
                }
                else
                {
                    customQueryUnmanaged.criterionArrayCount = 0;
                    customQueryUnmanaged.criterionArray      = IntPtr.Zero;
                }


                if (data != null && data.Count > 0)
                {
                    customQueryUnmanaged.dataArrayCount = (uint)data.Count;
                    customQueryUnmanaged.dataArray      = CAPI.ArrayOfStructsToIntPtr(CAPI.DictionaryToOVRKeyValuePairs(data));
                }
                else
                {
                    customQueryUnmanaged.dataArrayCount = 0;
                    customQueryUnmanaged.dataArray      = IntPtr.Zero;
                }

                IntPtr res = Marshal.AllocHGlobal(Marshal.SizeOf(customQueryUnmanaged));

                Marshal.StructureToPtr(customQueryUnmanaged, res, true);
                return(res);
            }
Beispiel #16
0
 public void ClearEnqueueAdditionalUsers()
 {
     CAPI.ovr_MatchmakingOptions_ClearEnqueueAdditionalUsers(Handle) :
 }
Beispiel #17
0
 public static bool IsConnected(UInt64 userID)
 {
     return(Core.IsInitialized() && CAPI.ovr_Net_IsConnected(userID));
 }
Beispiel #18
0
 public void SetEnqueueDataSettings(string key, string value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsString(Handle, key, value) :
 }
Beispiel #19
0
 /// If report_type is content, a string representing the type of content being
 /// reported. This should correspond to the object_type string used in the UI
 public void SetObjectType(string value)
 {
     CAPI.ovr_AdvancedAbuseReportOptions_SetObjectType(Handle, value);
 }
Beispiel #20
0
 public void ClearEnqueueDataSettings()
 {
     CAPI.ovr_MatchmakingOptions_ClearEnqueueDataSettings(Handle) :
 }
Beispiel #21
0
 public void SetVideoMode(AbuseReportVideoMode value)
 {
     CAPI.ovr_AdvancedAbuseReportOptions_SetVideoMode(Handle, value);
 }
Beispiel #22
0
 public void SetEnqueueIsDebug(bool value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueIsDebug(Handle, value) :
 }
Beispiel #23
0
 public void SetDescription(string value)
 {
     CAPI.ovr_ChallengeOptions_SetDescription(Handle, value);
 }
Beispiel #24
0
 public void SetEnqueueQueryKey(string value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueQueryKey(Handle, value) :
 }
Beispiel #25
0
 /// Optional: Only find challenges belonging to this leaderboard.
 public void SetLeaderboardName(string value)
 {
     CAPI.ovr_ChallengeOptions_SetLeaderboardName(Handle, value);
 }
Beispiel #26
0
 protected override string GetDataFromMessage(IntPtr c_message)
 {
     return(CAPI.ovr_Message_GetString(c_message));
 }
Beispiel #27
0
 public void SetTitle(string value)
 {
     CAPI.ovr_ChallengeOptions_SetTitle(Handle, value);
 }
Beispiel #28
0
 public static void CrashApplication()
 {
     CAPI.ovr_CrashApplication();
 }
Beispiel #29
0
 public void SetVisibility(ChallengeVisibility value)
 {
     CAPI.ovr_ChallengeOptions_SetVisibility(Handle, value);
 }
Beispiel #30
0
 public void AddServiceProvider(ServiceProvider value)
 {
     CAPI.ovr_UserOptions_AddServiceProvider(Handle, value);
 }