You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Achievements
{
/// <summary>
/// Input parameters for the <see cref="AchievementsInterface.UnlockAchievements" /> function.
/// </summary>
public struct UnlockAchievementsOptions
{
/// <summary>
/// The Product User ID for the user whose achievements we want to unlock.
/// </summary>
public ProductUserId UserId { get; set; }
/// <summary>
/// An array of Achievement IDs to unlock.
/// </summary>
public Utf8String[] AchievementIds { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UnlockAchievementsOptionsInternal : ISettable<UnlockAchievementsOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_UserId;
private System.IntPtr m_AchievementIds;
private uint m_AchievementsCount;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public Utf8String[] AchievementIds
{
set
{
Helper.Set(value, ref m_AchievementIds, true, out m_AchievementsCount);
}
}
public void Set(ref UnlockAchievementsOptions other)
{
m_ApiVersion = AchievementsInterface.UnlockachievementsApiLatest;
UserId = other.UserId;
AchievementIds = other.AchievementIds;
}
public void Set(ref UnlockAchievementsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = AchievementsInterface.UnlockachievementsApiLatest;
UserId = other.Value.UserId;
AchievementIds = other.Value.AchievementIds;
}
}
public void Dispose()
{
Helper.Dispose(ref m_UserId);
Helper.Dispose(ref m_AchievementIds);
}
}
}