Пример #1
0
 public void Set(LobbyModificationSetInvitesAllowedOptions other)
 {
     if (other != null)
     {
         m_ApiVersion   = LobbyModification.LobbymodificationSetinvitesallowedApiLatest;
         InvitesAllowed = other.InvitesAllowed;
     }
 }
Пример #2
0
        /// <summary>
        /// Allows enabling or disabling invites for this lobby.
        /// The lobby will also need to have `bPresenceEnabled` true.
        /// </summary>
        /// <param name="options">Options associated with invites allowed flag for 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 SetInvitesAllowed(LobbyModificationSetInvitesAllowedOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyModificationSetInvitesAllowedOptionsInternal, LobbyModificationSetInvitesAllowedOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyModification_SetInvitesAllowed(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }