示例#1
0
 public void ClearServiceProviders()
 {
     CAPI.ovr_UserOptions_ClearServiceProviders(Handle);
 }
示例#2
0
 public void SetStartDate(DateTime value)
 {
     CAPI.ovr_ChallengeOptions_SetStartDate(Handle, value);
 }
示例#3
0
 public void SetViewerFilter(ChallengeViewerFilter value)
 {
     CAPI.ovr_ChallengeOptions_SetViewerFilter(Handle, value);
 }
示例#4
0
 public ChallengeOptions()
 {
     Handle = CAPI.ovr_ChallengeOptions_Create();
 }
示例#5
0
 public void SetIncludePastChallenges(bool value)
 {
     CAPI.ovr_ChallengeOptions_SetIncludePastChallenges(Handle, value);
 }
示例#6
0
 public AdvancedAbuseReportOptions()
 {
     Handle = CAPI.ovr_AdvancedAbuseReportOptions_Create();
 }
示例#7
0
 public void SetReportType(AbuseReportType value)
 {
     CAPI.ovr_AdvancedAbuseReportOptions_SetReportType(Handle, value);
 }
示例#8
0
 public void SetCreateRoomMaxUsers(uint value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomMaxUsers(Handle, value) :
 }
示例#9
0
 public void AddEnqueueAdditionalUser(UInt64 userID)
 {
     CAPI.ovr_MatchmakingOptions_AddEnqueueAdditionalUser(Handle, userID) :
 }
示例#10
0
 public void ClearCreateRoomDataStore()
 {
     CAPI.ovr_MatchmakingOptions_ClearCreateRoomDataStore(Handle) :
 }
示例#11
0
 public void SetCreateRoomJoinPolicy(RoomJoinPolicy value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value) :
 }
示例#12
0
 public void SetCreateRoomDataStore(string key, string value)
 {
     CAPI.ovr_MatchmakingOptions_SetCreateRoomDataStoreString(Handle, key, value) :
 }
示例#13
0
 public MatchmakingOptions()
 {
     Handle = CAPI.ovr_MatchmakingOptions_Create() :
 }
示例#14
0
 public void SetTimeWindow(TimeWindow value)
 {
     CAPI.ovr_UserOptions_SetTimeWindow(Handle, value);
 }
示例#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);
            }
示例#16
0
 public void ClearEnqueueAdditionalUsers()
 {
     CAPI.ovr_MatchmakingOptions_ClearEnqueueAdditionalUsers(Handle) :
 }
示例#17
0
 public static bool IsConnected(UInt64 userID)
 {
     return(Core.IsInitialized() && CAPI.ovr_Net_IsConnected(userID));
 }
示例#18
0
 public void SetEnqueueDataSettings(string key, string value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsString(Handle, key, value) :
 }
示例#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);
 }
示例#20
0
 public void ClearEnqueueDataSettings()
 {
     CAPI.ovr_MatchmakingOptions_ClearEnqueueDataSettings(Handle) :
 }
示例#21
0
 public void SetVideoMode(AbuseReportVideoMode value)
 {
     CAPI.ovr_AdvancedAbuseReportOptions_SetVideoMode(Handle, value);
 }
示例#22
0
 public void SetEnqueueIsDebug(bool value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueIsDebug(Handle, value) :
 }
示例#23
0
 public void SetDescription(string value)
 {
     CAPI.ovr_ChallengeOptions_SetDescription(Handle, value);
 }
示例#24
0
 public void SetEnqueueQueryKey(string value)
 {
     CAPI.ovr_MatchmakingOptions_SetEnqueueQueryKey(Handle, value) :
 }
示例#25
0
 /// Optional: Only find challenges belonging to this leaderboard.
 public void SetLeaderboardName(string value)
 {
     CAPI.ovr_ChallengeOptions_SetLeaderboardName(Handle, value);
 }
示例#26
0
 protected override string GetDataFromMessage(IntPtr c_message)
 {
     return(CAPI.ovr_Message_GetString(c_message));
 }
示例#27
0
 public void SetTitle(string value)
 {
     CAPI.ovr_ChallengeOptions_SetTitle(Handle, value);
 }
示例#28
0
 public static void CrashApplication()
 {
     CAPI.ovr_CrashApplication();
 }
示例#29
0
 public void SetVisibility(ChallengeVisibility value)
 {
     CAPI.ovr_ChallengeOptions_SetVisibility(Handle, value);
 }
示例#30
0
 public void AddServiceProvider(ServiceProvider value)
 {
     CAPI.ovr_UserOptions_AddServiceProvider(Handle, value);
 }