Exemple #1
0
 public void Set(LobbyModificationSetBucketIdOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbyModification.LobbymodificationSetbucketidApiLatest;
         BucketId     = other.BucketId;
     }
 }
Exemple #2
0
        /// <summary>
        /// Set the bucket ID associated with this lobby.
        /// Values such as region, game mode, etc can be combined here depending on game need.
        /// Setting this is strongly recommended to improve search performance.
        /// </summary>
        /// <param name="options">Options associated with the bucket ID of the lobby</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this parameter was successful
        /// <see cref="Result.InvalidParameters" /> if the bucket ID is invalid or null
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetBucketId(LobbyModificationSetBucketIdOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyModificationSetBucketIdOptionsInternal, LobbyModificationSetBucketIdOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyModification_SetBucketId(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }