// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Leaderboards { /// /// Input parameters for the function. /// /// public struct QueryLeaderboardRanksOptions { /// /// The ID of the leaderboard whose information you want to retrieve. /// public Utf8String LeaderboardId { get; set; } /// /// Product User ID for user who is querying ranks. /// 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. /// public ProductUserId LocalUserId { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct QueryLeaderboardRanksOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_LeaderboardId; private System.IntPtr m_LocalUserId; public Utf8String LeaderboardId { set { Helper.Set(value, ref m_LeaderboardId); } } public ProductUserId LocalUserId { set { Helper.Set(value, ref m_LocalUserId); } } public void Set(ref QueryLeaderboardRanksOptions other) { m_ApiVersion = LeaderboardsInterface.QueryleaderboardranksApiLatest; LeaderboardId = other.LeaderboardId; LocalUserId = other.LocalUserId; } public void Set(ref QueryLeaderboardRanksOptions? other) { if (other.HasValue) { m_ApiVersion = LeaderboardsInterface.QueryleaderboardranksApiLatest; LeaderboardId = other.Value.LeaderboardId; LocalUserId = other.Value.LocalUserId; } } public void Dispose() { Helper.Dispose(ref m_LeaderboardId); Helper.Dispose(ref m_LocalUserId); } } }