public void Set(SessionModificationSetMaxPlayersOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SessionModification.SessionmodificationSetmaxplayersApiLatest;
         MaxPlayers   = other.MaxPlayers;
     }
 }
        /// <summary>
        /// Set the maximum number of players allowed in this session.
        /// When updating the session, it is not possible to reduce this number below the current number of existing players
        /// </summary>
        /// <param name="options">Options associated with max number of players in this session</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 SetMaxPlayers(SessionModificationSetMaxPlayersOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SessionModificationSetMaxPlayersOptionsInternal, SessionModificationSetMaxPlayersOptions>(ref optionsAddress, options);

            var funcResult = EOS_SessionModification_SetMaxPlayers(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }