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.
67 lines
1.6 KiB
67 lines
1.6 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 class 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 string[] AchievementIds { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct UnlockAchievementsOptionsInternal : ISettable, 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.TryMarshalSet(ref m_UserId, value);
|
|
}
|
|
}
|
|
|
|
public string[] AchievementIds
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_AchievementIds, value, out m_AchievementsCount, true);
|
|
}
|
|
}
|
|
|
|
public void Set(UnlockAchievementsOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = AchievementsInterface.UnlockachievementsApiLatest;
|
|
UserId = other.UserId;
|
|
AchievementIds = other.AchievementIds;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as UnlockAchievementsOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_UserId);
|
|
Helper.TryMarshalDispose(ref m_AchievementIds);
|
|
}
|
|
}
|
|
}
|