// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Stats { /// /// Input parameters for the function. /// public class CopyStatByNameOptions { /// /// The Product User ID of the user who owns the stat /// public ProductUserId TargetUserId { get; set; } /// /// Name of the stat to retrieve from the cache /// public string Name { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct CopyStatByNameOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_TargetUserId; private System.IntPtr m_Name; public ProductUserId TargetUserId { set { Helper.TryMarshalSet(ref m_TargetUserId, value); } } public string Name { set { Helper.TryMarshalSet(ref m_Name, value); } } public void Set(CopyStatByNameOptions other) { if (other != null) { m_ApiVersion = StatsInterface.CopystatbynameApiLatest; TargetUserId = other.TargetUserId; Name = other.Name; } } public void Set(object other) { Set(other as CopyStatByNameOptions); } public void Dispose() { Helper.TryMarshalDispose(ref m_TargetUserId); Helper.TryMarshalDispose(ref m_Name); } } }