Пример #1
0
 public void Set(LobbySearchSetMaxResultsOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbySearch.LobbysearchSetmaxresultsApiLatest;
         MaxResults   = other.MaxResults;
     }
 }
Пример #2
0
        /// <summary>
        /// Set the maximum number of search results to return in the query, can't be more than <see cref="LobbyInterface.MaxSearchResults" />
        /// </summary>
        /// <param name="options">maximum number of search results to return in the query</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting the max results was successful
        /// <see cref="Result.InvalidParameters" /> if the number of results requested is invalid
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetMaxResults(LobbySearchSetMaxResultsOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbySearchSetMaxResultsOptionsInternal, LobbySearchSetMaxResultsOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbySearch_SetMaxResults(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }