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.
89 lines
2.7 KiB
89 lines
2.7 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.QueryDefinitions" /> function.
|
|
/// </summary>
|
|
public struct QueryDefinitionsOptions
|
|
{
|
|
/// <summary>
|
|
/// 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 <see cref="Platform.PlatformInterface.SetOverrideLocaleCode" /> to override the locale.
|
|
/// If the locale code is not overridden and LocalUserId is not valid, default text will be returned.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Deprecated
|
|
/// </summary>
|
|
public EpicAccountId EpicUserId_DEPRECATED { get; set; }
|
|
|
|
/// <summary>
|
|
/// Deprecated
|
|
/// </summary>
|
|
public Utf8String[] HiddenAchievementIds_DEPRECATED { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryDefinitionsOptionsInternal : ISettable<QueryDefinitionsOptions>, 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);
|
|
}
|
|
}
|
|
}
|