// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Achievements { /// /// Contains information about a collection of stat info data. /// /// public class PlayerStatInfo : ISettable { /// /// The name of the stat. /// public string Name { get; set; } /// /// The current value of the stat. /// public int CurrentValue { get; set; } /// /// The threshold value of the stat, used in determining when to unlock an achievement. /// 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); } } }