public void Set(CopyAchievementDefinitionByIndexOptions other)
 {
     if (other != null)
     {
         m_ApiVersion     = AchievementsInterface.CopydefinitionbyindexApiLatest;
         AchievementIndex = other.AchievementIndex;
     }
 }
        /// <summary>
        /// DEPRECATED! Use <see cref="CopyAchievementDefinitionV2ByIndex" /> instead.
        ///
        /// Fetches an achievement definition from a given index.
        /// <seealso cref="CopyAchievementDefinitionV2ByIndex" />
        /// <seealso cref="Release" />
        /// </summary>
        /// <param name="options">Structure containing the index being accessed</param>
        /// <param name="outDefinition">The achievement definition for the given index, if it exists and is valid, use <see cref="Release" /> when finished</param>
        /// <returns>
        /// <see cref="Result.Success" /> if the information is available and passed out in OutDefinition
        /// <see cref="Result.InvalidParameters" /> if you pass a null pointer for the out parameter
        /// <see cref="Result.NotFound" /> if the achievement definition is not found
        /// </returns>
        public Result CopyAchievementDefinitionByIndex(CopyAchievementDefinitionByIndexOptions options, out Definition outDefinition)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <CopyAchievementDefinitionByIndexOptionsInternal, CopyAchievementDefinitionByIndexOptions>(ref optionsAddress, options);

            var outDefinitionAddress = System.IntPtr.Zero;

            var funcResult = EOS_Achievements_CopyAchievementDefinitionByIndex(InnerHandle, optionsAddress, ref outDefinitionAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            if (Helper.TryMarshalGet <DefinitionInternal, Definition>(outDefinitionAddress, out outDefinition))
            {
                EOS_Achievements_Definition_Release(outDefinitionAddress);
            }

            return(funcResult);
        }