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.
67 lines
1.7 KiB
67 lines
1.7 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Sanctions
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="SanctionsInterface.CopyPlayerSanctionByIndex" /> function
|
|
/// </summary>
|
|
public struct CopyPlayerSanctionByIndexOptions
|
|
{
|
|
/// <summary>
|
|
/// Product User ID of the user whose active sanctions are to be copied
|
|
/// </summary>
|
|
public ProductUserId TargetUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Index of the sanction to retrieve from the cache
|
|
/// </summary>
|
|
public uint SanctionIndex { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct CopyPlayerSanctionByIndexOptionsInternal : ISettable<CopyPlayerSanctionByIndexOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_TargetUserId;
|
|
private uint m_SanctionIndex;
|
|
|
|
public ProductUserId TargetUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_TargetUserId);
|
|
}
|
|
}
|
|
|
|
public uint SanctionIndex
|
|
{
|
|
set
|
|
{
|
|
m_SanctionIndex = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref CopyPlayerSanctionByIndexOptions other)
|
|
{
|
|
m_ApiVersion = SanctionsInterface.CopyplayersanctionbyindexApiLatest;
|
|
TargetUserId = other.TargetUserId;
|
|
SanctionIndex = other.SanctionIndex;
|
|
}
|
|
|
|
public void Set(ref CopyPlayerSanctionByIndexOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = SanctionsInterface.CopyplayersanctionbyindexApiLatest;
|
|
TargetUserId = other.Value.TargetUserId;
|
|
SanctionIndex = other.Value.SanctionIndex;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_TargetUserId);
|
|
}
|
|
}
|
|
}
|