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.
93 lines
2.1 KiB
93 lines
2.1 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>
|
|
/// Output parameters for the <see cref="OnAchievementsUnlockedCallback" /> Function.
|
|
/// </summary>
|
|
public class OnAchievementsUnlockedCallbackInfo : ICallbackInfo, ISettable
|
|
{
|
|
/// <summary>
|
|
/// Context that was passed into <see cref="AchievementsInterface.AddNotifyAchievementsUnlocked" />
|
|
/// </summary>
|
|
public object ClientData { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID for the user who received the unlocked achievements notification
|
|
/// </summary>
|
|
public ProductUserId UserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// This member is not used and will always be set to NULL.
|
|
/// </summary>
|
|
public string[] AchievementIds { get; private set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
internal void Set(OnAchievementsUnlockedCallbackInfoInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
ClientData = other.Value.ClientData;
|
|
UserId = other.Value.UserId;
|
|
AchievementIds = other.Value.AchievementIds;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as OnAchievementsUnlockedCallbackInfoInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct OnAchievementsUnlockedCallbackInfoInternal : ICallbackInfoInternal
|
|
{
|
|
private System.IntPtr m_ClientData;
|
|
private System.IntPtr m_UserId;
|
|
private uint m_AchievementsCount;
|
|
private System.IntPtr m_AchievementIds;
|
|
|
|
public object ClientData
|
|
{
|
|
get
|
|
{
|
|
object value;
|
|
Helper.TryMarshalGet(m_ClientData, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ClientDataAddress
|
|
{
|
|
get
|
|
{
|
|
return m_ClientData;
|
|
}
|
|
}
|
|
|
|
public ProductUserId UserId
|
|
{
|
|
get
|
|
{
|
|
ProductUserId value;
|
|
Helper.TryMarshalGet(m_UserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public string[] AchievementIds
|
|
{
|
|
get
|
|
{
|
|
string[] value;
|
|
Helper.TryMarshalGet(m_AchievementIds, out value, m_AchievementsCount, true);
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
}
|