public void Set(SessionModificationSetBucketIdOptions other) { if (other != null) { m_ApiVersion = SessionModification.SessionmodificationSetbucketidApiLatest; BucketId = other.BucketId; } }
/// <summary> /// Set the bucket ID associated with this session. /// 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 session</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(SessionModificationSetBucketIdOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SessionModificationSetBucketIdOptionsInternal, SessionModificationSetBucketIdOptions>(ref optionsAddress, options); var funcResult = EOS_SessionModification_SetBucketId(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }