// This file is automatically generated. using System; using System.Text; using System.Runtime.InteropServices; namespace Steam4NET { [StructLayout(LayoutKind.Sequential,Pack=4)] public class ISteamUserStats004VTable { public IntPtr RequestCurrentStats0; public IntPtr GetStat1; public IntPtr GetStat2; public IntPtr SetStat3; public IntPtr SetStat4; public IntPtr UpdateAvgRateStat5; public IntPtr GetAchievement6; public IntPtr SetAchievement7; public IntPtr ClearAchievement8; public IntPtr StoreStats9; public IntPtr GetAchievementIcon10; public IntPtr GetAchievementDisplayAttribute11; public IntPtr IndicateAchievementProgress12; public IntPtr RequestUserStats13; public IntPtr GetUserStat14; public IntPtr GetUserStat15; public IntPtr GetUserAchievement16; public IntPtr ResetAllStats17; private IntPtr DTorISteamUserStats00418; }; [InteropHelp.InterfaceVersion("STEAMUSERSTATS_INTERFACE_VERSION004")] public class ISteamUserStats004 : InteropHelp.NativeWrapper { [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeRequestCurrentStats( IntPtr thisptr ); public bool RequestCurrentStats( ) { return this.GetFunction( this.Functions.RequestCurrentStats0 )( this.ObjectAddress ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetStatSF( IntPtr thisptr, string pchName, ref float pData ); public bool GetStat( string pchName, ref float pData ) { return this.GetFunction( this.Functions.GetStat1 )( this.ObjectAddress, pchName, ref pData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetStatSI( IntPtr thisptr, string pchName, ref Int32 pData ); public bool GetStat( string pchName, ref Int32 pData ) { return this.GetFunction( this.Functions.GetStat2 )( this.ObjectAddress, pchName, ref pData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetStatSF( IntPtr thisptr, string pchName, float fData ); public bool SetStat( string pchName, float fData ) { return this.GetFunction( this.Functions.SetStat3 )( this.ObjectAddress, pchName, fData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetStatSI( IntPtr thisptr, string pchName, Int32 nData ); public bool SetStat( string pchName, Int32 nData ) { return this.GetFunction( this.Functions.SetStat4 )( this.ObjectAddress, pchName, nData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeUpdateAvgRateStatSFD( IntPtr thisptr, string pchName, float arg1, double dSessionLength ); public bool UpdateAvgRateStat( string pchName, float arg1, double dSessionLength ) { return this.GetFunction( this.Functions.UpdateAvgRateStat5 )( this.ObjectAddress, pchName, arg1, dSessionLength ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetAchievementSB( IntPtr thisptr, string pchName, ref bool pbAchieved ); public bool GetAchievement( string pchName, ref bool pbAchieved ) { return this.GetFunction( this.Functions.GetAchievement6 )( this.ObjectAddress, pchName, ref pbAchieved ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetAchievementS( IntPtr thisptr, string pchName ); public bool SetAchievement( string pchName ) { return this.GetFunction( this.Functions.SetAchievement7 )( this.ObjectAddress, pchName ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeClearAchievementS( IntPtr thisptr, string pchName ); public bool ClearAchievement( string pchName ) { return this.GetFunction( this.Functions.ClearAchievement8 )( this.ObjectAddress, pchName ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeStoreStats( IntPtr thisptr ); public bool StoreStats( ) { return this.GetFunction( this.Functions.StoreStats9 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate Int32 NativeGetAchievementIconS( IntPtr thisptr, string pchName ); public Int32 GetAchievementIcon( string pchName ) { return this.GetFunction( this.Functions.GetAchievementIcon10 )( this.ObjectAddress, pchName ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate IntPtr NativeGetAchievementDisplayAttributeSS( IntPtr thisptr, string pchName, string pchKey ); public string GetAchievementDisplayAttribute( string pchName, string pchKey ) { return InteropHelp.DecodeANSIReturn( Marshal.PtrToStringAnsi( this.GetFunction( this.Functions.GetAchievementDisplayAttribute11 )( this.ObjectAddress, pchName, pchKey ) ) ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeIndicateAchievementProgressSUU( IntPtr thisptr, string pchName, UInt32 nCurProgress, UInt32 nMaxProgress ); public bool IndicateAchievementProgress( string pchName, UInt32 nCurProgress, UInt32 nMaxProgress ) { return this.GetFunction( this.Functions.IndicateAchievementProgress12 )( this.ObjectAddress, pchName, nCurProgress, nMaxProgress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate UInt64 NativeRequestUserStatsC( IntPtr thisptr, UInt64 steamIDUser ); public UInt64 RequestUserStats( CSteamID steamIDUser ) { return this.GetFunction( this.Functions.RequestUserStats13 )( this.ObjectAddress, steamIDUser.ConvertToUint64() ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetUserStatCSF( IntPtr thisptr, UInt64 steamIDUser, string pchName, ref float pData ); public bool GetUserStat( CSteamID steamIDUser, string pchName, ref float pData ) { return this.GetFunction( this.Functions.GetUserStat14 )( this.ObjectAddress, steamIDUser.ConvertToUint64(), pchName, ref pData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetUserStatCSI( IntPtr thisptr, UInt64 steamIDUser, string pchName, ref Int32 pData ); public bool GetUserStat( CSteamID steamIDUser, string pchName, ref Int32 pData ) { return this.GetFunction( this.Functions.GetUserStat15 )( this.ObjectAddress, steamIDUser.ConvertToUint64(), pchName, ref pData ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetUserAchievementCSB( IntPtr thisptr, UInt64 steamIDUser, string pchName, ref bool pbAchieved ); public bool GetUserAchievement( CSteamID steamIDUser, string pchName, ref bool pbAchieved ) { return this.GetFunction( this.Functions.GetUserAchievement16 )( this.ObjectAddress, steamIDUser.ConvertToUint64(), pchName, ref pbAchieved ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeResetAllStatsB( IntPtr thisptr, [MarshalAs(UnmanagedType.I1)] bool bAchievementsToo ); public bool ResetAllStats( bool bAchievementsToo ) { return this.GetFunction( this.Functions.ResetAllStats17 )( this.ObjectAddress, bAchievementsToo ); } }; }