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.
86 lines
2.1 KiB
86 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.Stats
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="StatsInterface.IngestStat" /> function.
|
|
/// </summary>
|
|
public struct IngestStatOptions
|
|
{
|
|
/// <summary>
|
|
/// The Product User ID of the local user requesting the ingest. Set to null for dedicated server.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Stats to ingest.
|
|
/// </summary>
|
|
public IngestData[] Stats { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID for the user whose stat is being ingested.
|
|
/// </summary>
|
|
public ProductUserId TargetUserId { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct IngestStatOptionsInternal : ISettable<IngestStatOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_Stats;
|
|
private uint m_StatsCount;
|
|
private System.IntPtr m_TargetUserId;
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public IngestData[] Stats
|
|
{
|
|
set
|
|
{
|
|
Helper.Set<IngestData, IngestDataInternal>(ref value, ref m_Stats, out m_StatsCount);
|
|
}
|
|
}
|
|
|
|
public ProductUserId TargetUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_TargetUserId);
|
|
}
|
|
}
|
|
|
|
public void Set(ref IngestStatOptions other)
|
|
{
|
|
m_ApiVersion = StatsInterface.IngeststatApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
Stats = other.Stats;
|
|
TargetUserId = other.TargetUserId;
|
|
}
|
|
|
|
public void Set(ref IngestStatOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = StatsInterface.IngeststatApiLatest;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
Stats = other.Value.Stats;
|
|
TargetUserId = other.Value.TargetUserId;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_Stats);
|
|
Helper.Dispose(ref m_TargetUserId);
|
|
}
|
|
}
|
|
}
|