Beispiel #1
0
 public void Set(LobbySearchSetTargetUserIdOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbySearch.LobbysearchSettargetuseridApiLatest;
         TargetUserId = other.TargetUserId;
     }
 }
        /// <summary>
        /// Set a target user ID to find. Setting LobbyId or SearchParameters will result in <see cref="Find" /> failing
        /// @note a search result will only be found if this user is in a public lobby
        /// </summary>
        /// <param name="options">a specific target user ID to find</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this target user ID was successful
        /// <see cref="Result.InvalidParameters" /> if the target user ID is invalid or null
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetTargetUserId(LobbySearchSetTargetUserIdOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbySearchSetTargetUserIdOptionsInternal, LobbySearchSetTargetUserIdOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbySearch_SetTargetUserId(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }