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.
87 lines
2.5 KiB
87 lines
2.5 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Leaderboards
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="LeaderboardsInterface.QueryLeaderboardDefinitions" /> function.
|
|
/// StartTime and EndTime are optional parameters, they can be used to limit the list of definitions
|
|
/// to overlap the time window specified.
|
|
/// </summary>
|
|
public struct QueryLeaderboardDefinitionsOptions
|
|
{
|
|
/// <summary>
|
|
/// An optional POSIX timestamp for the leaderboard's start time, or <see cref="LeaderboardsInterface.TimeUndefined" />
|
|
/// </summary>
|
|
public System.DateTimeOffset? StartTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// An optional POSIX timestamp for the leaderboard's end time, or <see cref="LeaderboardsInterface.TimeUndefined" />
|
|
/// </summary>
|
|
public System.DateTimeOffset? EndTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Product User ID for user who is querying definitions.
|
|
/// Must be set when using a client policy that requires a valid logged in user.
|
|
/// Not used for Dedicated Server where no user is available.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryLeaderboardDefinitionsOptionsInternal : ISettable<QueryLeaderboardDefinitionsOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private long m_StartTime;
|
|
private long m_EndTime;
|
|
private System.IntPtr m_LocalUserId;
|
|
|
|
public System.DateTimeOffset? StartTime
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_StartTime);
|
|
}
|
|
}
|
|
|
|
public System.DateTimeOffset? EndTime
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_EndTime);
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public void Set(ref QueryLeaderboardDefinitionsOptions other)
|
|
{
|
|
m_ApiVersion = LeaderboardsInterface.QueryleaderboarddefinitionsApiLatest;
|
|
StartTime = other.StartTime;
|
|
EndTime = other.EndTime;
|
|
LocalUserId = other.LocalUserId;
|
|
}
|
|
|
|
public void Set(ref QueryLeaderboardDefinitionsOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = LeaderboardsInterface.QueryleaderboarddefinitionsApiLatest;
|
|
StartTime = other.Value.StartTime;
|
|
EndTime = other.Value.EndTime;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
}
|
|
}
|
|
}
|