public void Set(LobbyModificationRemoveAttributeOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbyModification.LobbymodificationRemoveattributeApiLatest;
         Key          = other.Key;
     }
 }
示例#2
0
        /// <summary>
        /// Remove an attribute associated with the lobby
        /// </summary>
        /// <param name="options">Specify the key of the attribute to remove</param>
        /// <returns>
        /// <see cref="Result.Success" /> if removing this parameter was successful
        /// <see cref="Result.InvalidParameters" /> if the key is null or empty
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result RemoveAttribute(LobbyModificationRemoveAttributeOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyModificationRemoveAttributeOptionsInternal, LobbyModificationRemoveAttributeOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyModification_RemoveAttribute(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }