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.
69 lines
1.8 KiB
69 lines
1.8 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Ecom
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="EcomInterface.RedeemEntitlements" /> function.
|
|
/// </summary>
|
|
public struct RedeemEntitlementsOptions
|
|
{
|
|
/// <summary>
|
|
/// The Epic Account ID of the user who is redeeming Entitlements
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The array of Entitlements to redeem
|
|
/// </summary>
|
|
public Utf8String[] EntitlementIds { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct RedeemEntitlementsOptionsInternal : ISettable<RedeemEntitlementsOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private uint m_EntitlementIdCount;
|
|
private System.IntPtr m_EntitlementIds;
|
|
|
|
public EpicAccountId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public Utf8String[] EntitlementIds
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_EntitlementIds, out m_EntitlementIdCount);
|
|
}
|
|
}
|
|
|
|
public void Set(ref RedeemEntitlementsOptions other)
|
|
{
|
|
m_ApiVersion = EcomInterface.RedeementitlementsApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
EntitlementIds = other.EntitlementIds;
|
|
}
|
|
|
|
public void Set(ref RedeemEntitlementsOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = EcomInterface.RedeementitlementsApiLatest;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
EntitlementIds = other.Value.EntitlementIds;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_EntitlementIds);
|
|
}
|
|
}
|
|
}
|