Пример #1
0
 public void Set(LobbyModificationSetMaxMembersOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbyModification.LobbymodificationSetmaxmembersApiLatest;
         MaxMembers   = other.MaxMembers;
     }
 }
Пример #2
0
        /// <summary>
        /// Set the maximum number of members allowed in this lobby.
        /// When updating the lobby, it is not possible to reduce this number below the current number of existing members
        /// </summary>
        /// <param name="options">Options associated with max number of members in this lobby</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this parameter was successful
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetMaxMembers(LobbyModificationSetMaxMembersOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyModificationSetMaxMembersOptionsInternal, LobbyModificationSetMaxMembersOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyModification_SetMaxMembers(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }