Exemplo n.º 1
0
 // Token: 0x06001855 RID: 6229 RVA: 0x0008945C File Offset: 0x0008785C
 private void onGlobalStatsReceived(GlobalStatsReceived_t callback)
 {
     if (callback.m_nGameID != (ulong)SteamUtils.GetAppID().m_AppId)
     {
         return;
     }
     this.triggerGlobalStatisticsRequestReady();
 }
Exemplo n.º 2
0
 private unsafe static void OnRequestGlobalStats(GlobalStatsReceived_t result, bool ioFailure)
 {
     if (!_initialized)
     {
         return;
     }
     waitingForGlobalStats = false;
 }
		// SteamAPICall_t
		public CallbackHandle RequestGlobalStats( int nHistoryDays /*int*/, Action<GlobalStatsReceived_t, bool> CallbackFunction = null /*Action<GlobalStatsReceived_t, bool>*/ )
		{
			SteamAPICall_t callback = 0;
			callback = platform.ISteamUserStats_RequestGlobalStats( nHistoryDays );
			
			if ( CallbackFunction == null ) return null;
			
			return GlobalStatsReceived_t.CallResult( steamworks, callback, CallbackFunction );
		}
Exemplo n.º 4
0
 private void OnGlobalStatsReceived(GlobalStatsReceived_t args)
 {
     if (args.m_nGameID == SteamUtils.GetAppID().m_AppId)
     {
         if (args.m_eResult == EResult.k_EResultOK)
         {
             // Collect global stats
             m_globalStats.Clear();
             for (uint i = 0; i < m_statNames.Length; ++i)
             {
                 var  statName    = m_statNames[i];
                 long globalValue = 0;
                 if (SteamUserStats.GetGlobalStat(statName, out globalValue))
                 {
                     m_globalStats[statName] = globalValue;
                 }
             }
         }
     }
 }
 private void OnGlobalStatsReceived(GlobalStatsReceived_t pCallback, bool bIOFailure)
 {
     Debug.Log("[" + GlobalStatsReceived_t.k_iCallback + " - GlobalStatsReceived] - " + pCallback.m_nGameID + " -- " + pCallback.m_eResult);
 }