Esempio n. 1
0
 public override void InitInternals()
 {
     this._RequestUserStats      = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FRequestUserStats>(Marshal.ReadIntPtr(this.VTable, 0));
     this._GetUserStat1          = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FGetUserStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 16 : 8)));
     this._GetUserStat2          = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FGetUserStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 8 : 16)));
     this._GetUserAchievement    = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FGetUserAchievement>(Marshal.ReadIntPtr(this.VTable, 24));
     this._SetUserStat1          = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FSetUserStat1>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 40 : 32)));
     this._SetUserStat2          = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FSetUserStat2>(Marshal.ReadIntPtr(this.VTable, (Config.Os == OsType.Windows ? 32 : 40)));
     this._UpdateUserAvgRateStat = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FUpdateUserAvgRateStat>(Marshal.ReadIntPtr(this.VTable, 48));
     this._SetUserAchievement    = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FSetUserAchievement>(Marshal.ReadIntPtr(this.VTable, 56));
     this._ClearUserAchievement  = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FClearUserAchievement>(Marshal.ReadIntPtr(this.VTable, 64));
     this._StoreUserStats        = Marshal.GetDelegateForFunctionPointer <ISteamGameServerStats.FStoreUserStats>(Marshal.ReadIntPtr(this.VTable, 72));
 }
Esempio n. 2
0
 internal override void Shutdown()
 {
     base.Shutdown();
     this._RequestUserStats      = null;
     this._GetUserStat1          = null;
     this._GetUserStat2          = null;
     this._GetUserAchievement    = null;
     this._SetUserStat1          = null;
     this._SetUserStat2          = null;
     this._UpdateUserAvgRateStat = null;
     this._SetUserAchievement    = null;
     this._ClearUserAchievement  = null;
     this._StoreUserStats        = null;
 }