Exemplo n.º 1
0
 internal override void Shutdown()
 {
     base.Shutdown();
     this._RequestCurrentStats                 = null;
     this._GetStat1                            = null;
     this._GetStat2                            = null;
     this._SetStat1                            = null;
     this._SetStat2                            = null;
     this._UpdateAvgRateStat                   = null;
     this._GetAchievement                      = null;
     this._SetAchievement                      = null;
     this._ClearAchievement                    = null;
     this._GetAchievementAndUnlockTime         = null;
     this._StoreStats                          = null;
     this._GetAchievementIcon                  = null;
     this._GetAchievementDisplayAttribute      = null;
     this._IndicateAchievementProgress         = null;
     this._GetNumAchievements                  = null;
     this._GetAchievementName                  = null;
     this._RequestUserStats                    = null;
     this._GetUserStat1                        = null;
     this._GetUserStat2                        = null;
     this._GetUserAchievement                  = null;
     this._GetUserAchievementAndUnlockTime     = null;
     this._ResetAllStats                       = null;
     this._FindOrCreateLeaderboard             = null;
     this._FindLeaderboard                     = null;
     this._GetLeaderboardName                  = null;
     this._GetLeaderboardEntryCount            = null;
     this._GetLeaderboardSortMethod            = null;
     this._GetLeaderboardDisplayType           = null;
     this._DownloadLeaderboardEntries          = null;
     this._DownloadLeaderboardEntriesForUsers  = null;
     this._GetDownloadedLeaderboardEntry       = null;
     this._UploadLeaderboardScore              = null;
     this._AttachLeaderboardUGC                = null;
     this._GetNumberOfCurrentPlayers           = null;
     this._RequestGlobalAchievementPercentages = null;
     this._GetMostAchievedAchievementInfo      = null;
     this._GetNextMostAchievedAchievementInfo  = null;
     this._GetAchievementAchievedPercent       = null;
     this._RequestGlobalStats                  = null;
     this._GetGlobalStat1                      = null;
     this._GetGlobalStat2                      = null;
     this._GetGlobalStatHistory1               = null;
     this._GetGlobalStatHistory2               = null;
 }
Exemplo n.º 2
0
 public override void InitInternals()
 {
     this._RequestCurrentStats                 = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FRequestCurrentStats>(Marshal.ReadIntPtr(this.VTable, 0));
     this._GetStat1                            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 16 : 8)));
     this._GetStat2                            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 8 : 16)));
     this._SetStat1                            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FSetStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 32 : 24)));
     this._SetStat2                            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FSetStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 24 : 32)));
     this._UpdateAvgRateStat                   = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FUpdateAvgRateStat>(Marshal.ReadIntPtr(this.VTable, 40));
     this._GetAchievement                      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievement>(Marshal.ReadIntPtr(this.VTable, 48));
     this._SetAchievement                      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FSetAchievement>(Marshal.ReadIntPtr(this.VTable, 56));
     this._ClearAchievement                    = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FClearAchievement>(Marshal.ReadIntPtr(this.VTable, 64));
     this._GetAchievementAndUnlockTime         = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievementAndUnlockTime>(Marshal.ReadIntPtr(this.VTable, 72));
     this._StoreStats                          = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FStoreStats>(Marshal.ReadIntPtr(this.VTable, 80));
     this._GetAchievementIcon                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievementIcon>(Marshal.ReadIntPtr(this.VTable, 88));
     this._GetAchievementDisplayAttribute      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievementDisplayAttribute>(Marshal.ReadIntPtr(this.VTable, 96));
     this._IndicateAchievementProgress         = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FIndicateAchievementProgress>(Marshal.ReadIntPtr(this.VTable, 104));
     this._GetNumAchievements                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetNumAchievements>(Marshal.ReadIntPtr(this.VTable, 112));
     this._GetAchievementName                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievementName>(Marshal.ReadIntPtr(this.VTable, 120));
     this._RequestUserStats                    = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FRequestUserStats>(Marshal.ReadIntPtr(this.VTable, 128));
     this._GetUserStat1                        = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetUserStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 144 : 136)));
     this._GetUserStat2                        = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetUserStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 136 : 144)));
     this._GetUserAchievement                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetUserAchievement>(Marshal.ReadIntPtr(this.VTable, 152));
     this._GetUserAchievementAndUnlockTime     = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetUserAchievementAndUnlockTime>(Marshal.ReadIntPtr(this.VTable, 160));
     this._ResetAllStats                       = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FResetAllStats>(Marshal.ReadIntPtr(this.VTable, 168));
     this._FindOrCreateLeaderboard             = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FFindOrCreateLeaderboard>(Marshal.ReadIntPtr(this.VTable, 176));
     this._FindLeaderboard                     = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FFindLeaderboard>(Marshal.ReadIntPtr(this.VTable, 184));
     this._GetLeaderboardName                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetLeaderboardName>(Marshal.ReadIntPtr(this.VTable, 192));
     this._GetLeaderboardEntryCount            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetLeaderboardEntryCount>(Marshal.ReadIntPtr(this.VTable, 200));
     this._GetLeaderboardSortMethod            = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetLeaderboardSortMethod>(Marshal.ReadIntPtr(this.VTable, 208));
     this._GetLeaderboardDisplayType           = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetLeaderboardDisplayType>(Marshal.ReadIntPtr(this.VTable, 216));
     this._DownloadLeaderboardEntries          = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FDownloadLeaderboardEntries>(Marshal.ReadIntPtr(this.VTable, 224));
     this._DownloadLeaderboardEntriesForUsers  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FDownloadLeaderboardEntriesForUsers>(Marshal.ReadIntPtr(this.VTable, 232));
     this._GetDownloadedLeaderboardEntry       = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetDownloadedLeaderboardEntry>(Marshal.ReadIntPtr(this.VTable, 240));
     this._UploadLeaderboardScore              = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FUploadLeaderboardScore>(Marshal.ReadIntPtr(this.VTable, 248));
     this._AttachLeaderboardUGC                = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FAttachLeaderboardUGC>(Marshal.ReadIntPtr(this.VTable, 256));
     this._GetNumberOfCurrentPlayers           = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetNumberOfCurrentPlayers>(Marshal.ReadIntPtr(this.VTable, 264));
     this._RequestGlobalAchievementPercentages = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FRequestGlobalAchievementPercentages>(Marshal.ReadIntPtr(this.VTable, 272));
     this._GetMostAchievedAchievementInfo      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetMostAchievedAchievementInfo>(Marshal.ReadIntPtr(this.VTable, 280));
     this._GetNextMostAchievedAchievementInfo  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetNextMostAchievedAchievementInfo>(Marshal.ReadIntPtr(this.VTable, 288));
     this._GetAchievementAchievedPercent       = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetAchievementAchievedPercent>(Marshal.ReadIntPtr(this.VTable, 296));
     this._RequestGlobalStats                  = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FRequestGlobalStats>(Marshal.ReadIntPtr(this.VTable, 304));
     this._GetGlobalStat1                      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetGlobalStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 320 : 312)));
     this._GetGlobalStat2                      = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetGlobalStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 312 : 320)));
     this._GetGlobalStatHistory1               = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetGlobalStatHistory1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 336 : 328)));
     this._GetGlobalStatHistory2               = Marshal.GetDelegateForFunctionPointer <ISteamUserStats.FGetGlobalStatHistory2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 328 : 336)));
 }