예제 #1
0
        public static Request <Models.RoomList> Browse(string pool, CustomQuery customQuery = null)
        {
            if (Core.IsInitialized())
            {
                return(new Request <Models.RoomList>(CAPI.ovr_Matchmaking_Browse(
                                                         pool,
                                                         customQuery != null ? customQuery.ToUnmanaged() : IntPtr.Zero
                                                         )));
            }

            return(null);
        }
예제 #2
0
        public static Request EnqueueRoom(UInt64 roomID, CustomQuery customQuery = null)
        {
            if (Core.IsInitialized())
            {
                return(new Request(CAPI.ovr_Matchmaking_EnqueueRoom(
                                       roomID,
                                       customQuery != null ? customQuery.ToUnmanaged() : IntPtr.Zero
                                       )));
            }

            return(null);
        }
예제 #3
0
        public static Request <Models.Room> CreateAndEnqueueRoom(
            string pool,
            uint maxUsers,
            bool subscribeToNotifications = false,
            CustomQuery customQuery       = null)
        {
            if (Core.IsInitialized())
            {
                return(new Request <Models.Room>(CAPI.ovr_Matchmaking_CreateAndEnqueueRoom(
                                                     pool,
                                                     maxUsers,
                                                     subscribeToNotifications,
                                                     customQuery != null ? customQuery.ToUnmanaged() : IntPtr.Zero
                                                     )));
            }

            return(null);
        }