// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Achievements
{
///
/// Input parameters for the function.
///
public struct QueryDefinitionsOptions
{
///
/// Product User ID for user who is querying definitions.
/// The localized text returned will be based on the locale code of the given user if they have a linked Epic Account ID.
/// The localized text returned can also be overridden using to override the locale.
/// If the locale code is not overridden and LocalUserId is not valid, default text will be returned.
///
public ProductUserId LocalUserId { get; set; }
///
/// Deprecated
///
public EpicAccountId EpicUserId_DEPRECATED { get; set; }
///
/// Deprecated
///
public Utf8String[] HiddenAchievementIds_DEPRECATED { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct QueryDefinitionsOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_EpicUserId_DEPRECATED;
private System.IntPtr m_HiddenAchievementIds_DEPRECATED;
private uint m_HiddenAchievementsCount_DEPRECATED;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public EpicAccountId EpicUserId_DEPRECATED
{
set
{
Helper.Set(value, ref m_EpicUserId_DEPRECATED);
}
}
public Utf8String[] HiddenAchievementIds_DEPRECATED
{
set
{
Helper.Set(value, ref m_HiddenAchievementIds_DEPRECATED, true, out m_HiddenAchievementsCount_DEPRECATED);
}
}
public void Set(ref QueryDefinitionsOptions other)
{
m_ApiVersion = AchievementsInterface.QuerydefinitionsApiLatest;
LocalUserId = other.LocalUserId;
EpicUserId_DEPRECATED = other.EpicUserId_DEPRECATED;
HiddenAchievementIds_DEPRECATED = other.HiddenAchievementIds_DEPRECATED;
}
public void Set(ref QueryDefinitionsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = AchievementsInterface.QuerydefinitionsApiLatest;
LocalUserId = other.Value.LocalUserId;
EpicUserId_DEPRECATED = other.Value.EpicUserId_DEPRECATED;
HiddenAchievementIds_DEPRECATED = other.Value.HiddenAchievementIds_DEPRECATED;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_EpicUserId_DEPRECATED);
Helper.Dispose(ref m_HiddenAchievementIds_DEPRECATED);
}
}
}