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.

113 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>
/// Contains information about a collection of stat info data.
/// <seealso cref="PlayerAchievement" />
/// </summary>
public class PlayerStatInfo : ISettable
{
/// <summary>
/// The name of the stat.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The current value of the stat.
/// </summary>
public int CurrentValue { get; set; }
/// <summary>
/// The threshold value of the stat, used in determining when to unlock an achievement.
/// </summary>
public int ThresholdValue { get; set; }
internal void Set(PlayerStatInfoInternal? other)
{
if (other != null)
{
Name = other.Value.Name;
CurrentValue = other.Value.CurrentValue;
ThresholdValue = other.Value.ThresholdValue;
}
}
public void Set(object other)
{
Set(other as PlayerStatInfoInternal?);
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct PlayerStatInfoInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_Name;
private int m_CurrentValue;
private int m_ThresholdValue;
public string Name
{
get
{
string value;
Helper.TryMarshalGet(m_Name, out value);
return value;
}
set
{
Helper.TryMarshalSet(ref m_Name, value);
}
}
public int CurrentValue
{
get
{
return m_CurrentValue;
}
set
{
m_CurrentValue = value;
}
}
public int ThresholdValue
{
get
{
return m_ThresholdValue;
}
set
{
m_ThresholdValue = value;
}
}
public void Set(PlayerStatInfo other)
{
if (other != null)
{
m_ApiVersion = AchievementsInterface.PlayerstatinfoApiLatest;
Name = other.Name;
CurrentValue = other.CurrentValue;
ThresholdValue = other.ThresholdValue;
}
}
public void Set(object other)
{
Set(other as PlayerStatInfo);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_Name);
}
}
}