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.
98 lines
2.0 KiB
98 lines
2.0 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 threshold data.
|
|
///
|
|
/// The threshold will depend on the stat aggregate type:
|
|
/// LATEST (Tracks the latest value)
|
|
/// MAX (Tracks the maximum value)
|
|
/// MIN (Tracks the minimum value)
|
|
/// SUM (Generates a rolling sum of the value)
|
|
/// <seealso cref="Definition" />
|
|
/// </summary>
|
|
public class StatThresholds : ISettable
|
|
{
|
|
/// <summary>
|
|
/// The name of the stat.
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// The value that the stat must surpass to satisfy the requirement for unlocking an achievement.
|
|
/// </summary>
|
|
public int Threshold { get; set; }
|
|
|
|
internal void Set(StatThresholdsInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
Name = other.Value.Name;
|
|
Threshold = other.Value.Threshold;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as StatThresholdsInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct StatThresholdsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_Name;
|
|
private int m_Threshold;
|
|
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
string value;
|
|
Helper.TryMarshalGet(m_Name, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Name, value);
|
|
}
|
|
}
|
|
|
|
public int Threshold
|
|
{
|
|
get
|
|
{
|
|
return m_Threshold;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_Threshold = value;
|
|
}
|
|
}
|
|
|
|
public void Set(StatThresholds other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = AchievementsInterface.StatthresholdsApiLatest;
|
|
Name = other.Name;
|
|
Threshold = other.Threshold;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as StatThresholds);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_Name);
|
|
}
|
|
}
|
|
}
|