public void Set(CopyAchievementDefinitionByAchievementIdOptions other) { if (other != null) { m_ApiVersion = AchievementsInterface.CopydefinitionbyachievementidApiLatest; AchievementId = other.AchievementId; } }
/// <summary> /// DEPRECATED! Use <see cref="CopyAchievementDefinitionV2ByAchievementId" /> instead. /// /// Fetches an achievement definition from a given achievement ID. /// <seealso cref="Release" /> /// <seealso cref="CopyAchievementDefinitionV2ByAchievementId" /> /// </summary> /// <param name="options">Structure containing the achievement ID being accessed</param> /// <param name="outDefinition">The achievement definition for the given achievement ID, 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 CopyAchievementDefinitionByAchievementId(CopyAchievementDefinitionByAchievementIdOptions options, out Definition outDefinition) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <CopyAchievementDefinitionByAchievementIdOptionsInternal, CopyAchievementDefinitionByAchievementIdOptions>(ref optionsAddress, options); var outDefinitionAddress = System.IntPtr.Zero; var funcResult = EOS_Achievements_CopyAchievementDefinitionByAchievementId(InnerHandle, optionsAddress, ref outDefinitionAddress); Helper.TryMarshalDispose(ref optionsAddress); if (Helper.TryMarshalGet <DefinitionInternal, Definition>(outDefinitionAddress, out outDefinition)) { EOS_Achievements_Definition_Release(outDefinitionAddress); } return(funcResult); }