private void OnLeaderboardFindResult(LeaderboardFindResult_t pCallback, bool bIOFailure) {
		Debug.Log("[" + LeaderboardFindResult_t.k_iCallback + " - LeaderboardFindResult] - " + pCallback.m_hSteamLeaderboard + " -- " + pCallback.m_bLeaderboardFound);

		if (pCallback.m_bLeaderboardFound != 0) {
			m_SteamLeaderboard = pCallback.m_hSteamLeaderboard;
		}
	}
 internal async Task <LeaderboardFindResult_t?> FindLeaderboard([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLeaderboardName)
 {
     return(await LeaderboardFindResult_t.GetResultAsync(_FindLeaderboard( Self, pchLeaderboardName )));
 }
		static void OnFindLeaderboard(LeaderboardFindResult_t pCallback, bool bIOFailure) {
			Console.WriteLine("[" + LeaderboardFindResult_t.k_iCallback + " - LeaderboardFindResult] - " + pCallback.m_bLeaderboardFound + " -- " + pCallback.m_hSteamLeaderboard);
		}
 internal async Task <LeaderboardFindResult_t?> FindLeaderboard(string pchLeaderboardName)
 {
     return(await LeaderboardFindResult_t.GetResultAsync(_FindLeaderboard( Self, pchLeaderboardName )));
 }
 internal async Task <LeaderboardFindResult_t?> FindOrCreateLeaderboard([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLeaderboardName, LeaderboardSort eLeaderboardSortMethod, LeaderboardDisplay eLeaderboardDisplayType)
 {
     return(await LeaderboardFindResult_t.GetResultAsync(_FindOrCreateLeaderboard( Self, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType )));
 }
 internal async Task <LeaderboardFindResult_t?> FindOrCreateLeaderboard(string pchLeaderboardName, LeaderboardSort eLeaderboardSortMethod, LeaderboardDisplay eLeaderboardDisplayType)
 {
     return(await LeaderboardFindResult_t.GetResultAsync(_FindOrCreateLeaderboard( Self, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType )));
 }
Exemple #7
0
 private static void TimeLeaderBoardCallBack(LeaderboardFindResult_t result, bool failure)
 {
     leaderBoards[1] = result.m_hSteamLeaderboard;
 }
Exemple #8
0
 private static void ScoreLeaderBoardCallBack(LeaderboardFindResult_t result, bool failure)
 {
     leaderBoards[0] = result.m_hSteamLeaderboard;
     Console.WriteLine(result.m_bLeaderboardFound);
 }
	private void OnFindLeaderboard(LeaderboardFindResult_t pFindLeaderboardResult, bool bIOFailure) {
		// See if we encountered an error during the call
		if (bIOFailure) {
			return;
		}

		if(pFindLeaderboardResult.m_bLeaderboardFound == 0) {
			Debug.LogWarning("Could not find one of the Leaderboards, was it named correctly?");
			return;
		}

		// check to see which leaderboard handle we just retrieved
		string pchName = SteamUserStats.GetLeaderboardName(pFindLeaderboardResult.m_hSteamLeaderboard);
		int i = 0;
		for (; i < m_Leaderboards.Length; ++i) {
			if (pchName == m_Leaderboards[i].m_strName) {
				m_Leaderboards[i].m_hHandle = pFindLeaderboardResult.m_hSteamLeaderboard;
				break;
			}
		}

		// look up any other leaderboards
		if (i + 1 < m_Leaderboards.Length) {
			FindLeaderboards(i + 1);
		}
		else {
			m_bLoading = false;
		}
	}
Exemple #10
0
        internal async Task <LeaderboardFindResult_t?> FindLeaderboard(string pchLeaderboardName)
        {
            LeaderboardFindResult_t?resultAsync = await LeaderboardFindResult_t.GetResultAsync(this._FindLeaderboard(this.Self, pchLeaderboardName));

            return(resultAsync);
        }