コード例 #1
0
ファイル: Platform.cs プロジェクト: swipswaps/VoloAirsport
        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
ファイル: Platform.cs プロジェクト: swipswaps/VoloAirsport
        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);
        }