internal static void OnQueryLeaderboardRanksComplete(IntPtr address) { OnQueryLeaderboardRanksCompleteCallback callback = null; OnQueryLeaderboardRanksCompleteCallbackInfo callbackInfo = null; if (Helper.TryGetAndRemoveCallback <OnQueryLeaderboardRanksCompleteCallback, OnQueryLeaderboardRanksCompleteCallbackInfoInternal, OnQueryLeaderboardRanksCompleteCallbackInfo>(address, out callback, out callbackInfo)) { callback(callbackInfo); } }
/// <summary> /// Retrieves top leaderboard records by rank in the leaderboard matching the given leaderboard ID. /// </summary> /// <param name="options">Structure containing information about the leaderboard records we're retrieving.</param> /// <param name="clientData">Arbitrary data that is passed back to you in the CompletionDelegate.</param> /// <param name="completionDelegate">This function is called when the query operation completes.</param> /// <returns> /// <see cref="Result.Success" /> if the operation completes successfully /// <see cref="Result.InvalidParameters" /> if any of the options are incorrect /// </returns> public void QueryLeaderboardRanks(QueryLeaderboardRanksOptions options, object clientData, OnQueryLeaderboardRanksCompleteCallback completionDelegate) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <QueryLeaderboardRanksOptionsInternal, QueryLeaderboardRanksOptions>(ref optionsAddress, options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnQueryLeaderboardRanksCompleteCallbackInternal(OnQueryLeaderboardRanksCompleteCallbackInternalImplementation); Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal); EOS_Leaderboards_QueryLeaderboardRanks(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal); Helper.TryMarshalDispose(ref optionsAddress); }
/// <summary> /// Retrieves top leaderboard records by rank in the leaderboard matching the given leaderboard ID. /// </summary> /// <param name="options">Structure containing information about the leaderboard records we're retrieving.</param> /// <param name="clientData">Arbitrary data that is passed back to you in the CompletionDelegate.</param> /// <param name="completionDelegate">This function is called when the query operation completes.</param> /// <returns> /// <see cref="Result.Success" /> if the operation completes successfully /// <see cref="Result.InvalidParameters" /> if any of the options are incorrect /// </returns> public void QueryLeaderboardRanks(QueryLeaderboardRanksOptions options, object clientData, OnQueryLeaderboardRanksCompleteCallback completionDelegate) { var optionsInternal = Helper.CopyProperties <QueryLeaderboardRanksOptionsInternal>(options); var completionDelegateInternal = new OnQueryLeaderboardRanksCompleteCallbackInternal(OnQueryLeaderboardRanksComplete); var clientDataAddress = IntPtr.Zero; Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal); EOS_Leaderboards_QueryLeaderboardRanks(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.TryMarshalDispose(ref optionsInternal); }