870 lines
53 KiB
C#
870 lines
53 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x0200190F RID: 6415
|
|
[Token(Token = "0x200190F")]
|
|
public static class SteamUserStats
|
|
{
|
|
// Token: 0x0600926C RID: 37484 RVA: 0x001E0764 File Offset: 0x001DE964
|
|
[Token(Token = "0x600926C")]
|
|
[Address(RVA = "0x5A2C00", Offset = "0x5A1C00", VA = "0x1805A2C00")]
|
|
public static bool RequestCurrentStats()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_RequestCurrentStats(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x0600926D RID: 37485 RVA: 0x001E0784 File Offset: 0x001DE984
|
|
[Token(Token = "0x600926D")]
|
|
[Address(RVA = "0x5A2540", Offset = "0x5A1540", VA = "0x1805A2540")]
|
|
public static bool GetStat(string pchName, out int pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetStatInt32(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600926E RID: 37486 RVA: 0x001E07B8 File Offset: 0x001DE9B8
|
|
[Token(Token = "0x600926E")]
|
|
[Address(RVA = "0x5A2430", Offset = "0x5A1430", VA = "0x1805A2430")]
|
|
public static bool GetStat(string pchName, out float pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetStatFloat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600926F RID: 37487 RVA: 0x001E07EC File Offset: 0x001DE9EC
|
|
[Token(Token = "0x600926F")]
|
|
[Address(RVA = "0x5A3090", Offset = "0x5A2090", VA = "0x1805A3090")]
|
|
public static bool SetStat(string pchName, int nData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_SetStatInt32(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, nData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009270 RID: 37488 RVA: 0x001E0820 File Offset: 0x001DEA20
|
|
[Token(Token = "0x6009270")]
|
|
[Address(RVA = "0x5A2F70", Offset = "0x5A1F70", VA = "0x1805A2F70")]
|
|
public static bool SetStat(string pchName, float fData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_SetStatFloat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, fData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009271 RID: 37489 RVA: 0x001E0854 File Offset: 0x001DEA54
|
|
[Token(Token = "0x6009271")]
|
|
[Address(RVA = "0x5A31F0", Offset = "0x5A21F0", VA = "0x1805A31F0")]
|
|
public static bool UpdateAvgRateStat(string pchName, float flCountThisSession, double dSessionLength)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_UpdateAvgRateStat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, flCountThisSession, dSessionLength);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009272 RID: 37490 RVA: 0x001E0888 File Offset: 0x001DEA88
|
|
[Token(Token = "0x6009272")]
|
|
[Address(RVA = "0x5A19D0", Offset = "0x5A09D0", VA = "0x1805A19D0")]
|
|
public static bool GetAchievement(string pchName, out bool pbAchieved)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pbAchieved);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009273 RID: 37491 RVA: 0x001E08BC File Offset: 0x001DEABC
|
|
[Token(Token = "0x6009273")]
|
|
[Address(RVA = "0x5A2E70", Offset = "0x5A1E70", VA = "0x1805A2E70")]
|
|
public static bool SetAchievement(string pchName)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_SetAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009274 RID: 37492 RVA: 0x001E08F0 File Offset: 0x001DEAF0
|
|
[Token(Token = "0x6009274")]
|
|
[Address(RVA = "0x5A0FA0", Offset = "0x59FFA0", VA = "0x1805A0FA0")]
|
|
public static bool ClearAchievement(string pchName)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_ClearAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009275 RID: 37493 RVA: 0x001E0924 File Offset: 0x001DEB24
|
|
[Token(Token = "0x6009275")]
|
|
[Address(RVA = "0x5A15C0", Offset = "0x5A05C0", VA = "0x1805A15C0")]
|
|
public static bool GetAchievementAndUnlockTime(string pchName, out bool pbAchieved, out uint punUnlockTime)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetAchievementAndUnlockTime(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pbAchieved, out punUnlockTime);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009276 RID: 37494 RVA: 0x001E0958 File Offset: 0x001DEB58
|
|
[Token(Token = "0x6009276")]
|
|
[Address(RVA = "0x5A31A0", Offset = "0x5A21A0", VA = "0x1805A31A0")]
|
|
public static bool StoreStats()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_StoreStats(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x06009277 RID: 37495 RVA: 0x001E0978 File Offset: 0x001DEB78
|
|
[Token(Token = "0x6009277")]
|
|
[Address(RVA = "0x5A1870", Offset = "0x5A0870", VA = "0x1805A1870")]
|
|
public static int GetAchievementIcon(string pchName)
|
|
{
|
|
int num;
|
|
int num2;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
num2 = NativeMethods.ISteamUserStats_GetAchievementIcon(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return num2;
|
|
}
|
|
|
|
// Token: 0x06009278 RID: 37496 RVA: 0x001E09AC File Offset: 0x001DEBAC
|
|
[Token(Token = "0x6009278")]
|
|
[Address(RVA = "0x5A16E0", Offset = "0x5A06E0", VA = "0x1805A16E0")]
|
|
public static string GetAchievementDisplayAttribute(string pchName, string pchKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009278)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Steamworks.SteamUserStats::GetAchievementDisplayAttribute(System.String,System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_42:
|
|
brtrue(IL_00, cne:bool(ldloc:int32(var_0_01), ldc.i4:int32(0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009279 RID: 37497 RVA: 0x001E0A00 File Offset: 0x001DEC00
|
|
[Token(Token = "0x6009279")]
|
|
[Address(RVA = "0x5A2AE0", Offset = "0x5A1AE0", VA = "0x1805A2AE0")]
|
|
public static bool IndicateAchievementProgress(string pchName, uint nCurProgress, uint nMaxProgress)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_IndicateAchievementProgress(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, nCurProgress, nMaxProgress);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600927A RID: 37498 RVA: 0x001E0A34 File Offset: 0x001DEC34
|
|
[Token(Token = "0x600927A")]
|
|
[Address(RVA = "0x5A2350", Offset = "0x5A1350", VA = "0x1805A2350")]
|
|
public static uint GetNumAchievements()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetNumAchievements(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x0600927B RID: 37499 RVA: 0x001E0A54 File Offset: 0x001DEC54
|
|
[Token(Token = "0x600927B")]
|
|
[Address(RVA = "0x5A1970", Offset = "0x5A0970", VA = "0x1805A1970")]
|
|
public static string GetAchievementName(uint iAchievement)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = CSteamAPIContext.m_pSteamUserStats;
|
|
intPtr = NativeMethods.ISteamUserStats_GetAchievementName(intPtr, iAchievement);
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x0600927C RID: 37500 RVA: 0x001E0A7C File Offset: 0x001DEC7C
|
|
[Token(Token = "0x600927C")]
|
|
[Address(RVA = "0x5A2D80", Offset = "0x5A1D80", VA = "0x1805A2D80")]
|
|
public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600927C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestUserStats(Steamworks.CSteamID)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:TimeSpan(var_1_17, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestUserStats, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:CSteamID(steamIDUser))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600927D RID: 37501 RVA: 0x001E0AA0 File Offset: 0x001DECA0
|
|
[Token(Token = "0x600927D")]
|
|
[Address(RVA = "0x5A29C0", Offset = "0x5A19C0", VA = "0x1805A29C0")]
|
|
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetUserStatInt32(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600927E RID: 37502 RVA: 0x001E0AD4 File Offset: 0x001DECD4
|
|
[Token(Token = "0x600927E")]
|
|
[Address(RVA = "0x5A28A0", Offset = "0x5A18A0", VA = "0x1805A28A0")]
|
|
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetUserStatFloat(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600927F RID: 37503 RVA: 0x001E0B08 File Offset: 0x001DED08
|
|
[Token(Token = "0x600927F")]
|
|
[Address(RVA = "0x5A2780", Offset = "0x5A1780", VA = "0x1805A2780")]
|
|
public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetUserAchievement(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pbAchieved);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009280 RID: 37504 RVA: 0x001E0B3C File Offset: 0x001DED3C
|
|
[Token(Token = "0x6009280")]
|
|
[Address(RVA = "0x5A2650", Offset = "0x5A1650", VA = "0x1805A2650")]
|
|
public static bool GetUserAchievementAndUnlockTime(CSteamID steamIDUser, string pchName, out bool pbAchieved, out uint punUnlockTime)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetUserAchievementAndUnlockTime(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pbAchieved, out punUnlockTime);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009281 RID: 37505 RVA: 0x001E0B74 File Offset: 0x001DED74
|
|
[Token(Token = "0x6009281")]
|
|
[Address(RVA = "0x5A2E20", Offset = "0x5A1E20", VA = "0x1805A2E20")]
|
|
public static bool ResetAllStats(bool bAchievementsToo)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_ResetAllStats(CSteamAPIContext.m_pSteamUserStats, bAchievementsToo);
|
|
}
|
|
|
|
// Token: 0x06009282 RID: 37506 RVA: 0x001E0B94 File Offset: 0x001DED94
|
|
[Token(Token = "0x6009282")]
|
|
[Address(RVA = "0x5A1360", Offset = "0x5A0360", VA = "0x1805A1360")]
|
|
public static SteamAPICall_t FindOrCreateLeaderboard(string pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009282)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::FindOrCreateLeaderboard(System.String,Steamworks.ELeaderboardSortMethod,Steamworks.ELeaderboardDisplayType)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_1A:
|
|
brtrue(IL_00, cne:bool(ldloc:int32(var_0_01), ldc.i4:int32(0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009283 RID: 37507 RVA: 0x001E0BC0 File Offset: 0x001DEDC0
|
|
[Token(Token = "0x6009283")]
|
|
[Address(RVA = "0x5A1230", Offset = "0x5A0230", VA = "0x1805A1230")]
|
|
public static SteamAPICall_t FindLeaderboard(string pchLeaderboardName)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009283)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::FindLeaderboard(System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_25:
|
|
brtrue(IL_00, cne:bool(ldloc:int32(var_0_01), ldc.i4:int32(0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009284 RID: 37508 RVA: 0x001E0BF8 File Offset: 0x001DEDF8
|
|
[Token(Token = "0x6009284")]
|
|
[Address(RVA = "0x5A2070", Offset = "0x5A1070", VA = "0x1805A2070")]
|
|
public static string GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = CSteamAPIContext.m_pSteamUserStats;
|
|
intPtr = NativeMethods.ISteamUserStats_GetLeaderboardName(intPtr, hSteamLeaderboard);
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x06009285 RID: 37509 RVA: 0x001E0C20 File Offset: 0x001DEE20
|
|
[Token(Token = "0x6009285")]
|
|
[Address(RVA = "0x5A2020", Offset = "0x5A1020", VA = "0x1805A2020")]
|
|
public static int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardEntryCount(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06009286 RID: 37510 RVA: 0x001E0C40 File Offset: 0x001DEE40
|
|
[Token(Token = "0x6009286")]
|
|
[Address(RVA = "0x5A20D0", Offset = "0x5A10D0", VA = "0x1805A20D0")]
|
|
public static ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardSortMethod(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06009287 RID: 37511 RVA: 0x001E0C60 File Offset: 0x001DEE60
|
|
[Token(Token = "0x6009287")]
|
|
[Address(RVA = "0x5A1FD0", Offset = "0x5A0FD0", VA = "0x1805A1FD0")]
|
|
public static ELeaderboardDisplayType GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardDisplayType(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06009288 RID: 37512 RVA: 0x001E0C80 File Offset: 0x001DEE80
|
|
[Token(Token = "0x6009288")]
|
|
[Address(RVA = "0x5A1160", Offset = "0x5A0160", VA = "0x1805A1160")]
|
|
public static SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009288)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::DownloadLeaderboardEntries(Steamworks.SteamLeaderboard_t,Steamworks.ELeaderboardDataRequest,System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:native int(var_2_0C, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009289 RID: 37513 RVA: 0x001E0C9C File Offset: 0x001DEE9C
|
|
[Token(Token = "0x6009289")]
|
|
[Address(RVA = "0x5A10A0", Offset = "0x5A00A0", VA = "0x1805A10A0")]
|
|
public static SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, CSteamID[] prgUsers, int cUsers)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009289)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::DownloadLeaderboardEntriesForUsers(Steamworks.SteamLeaderboard_t,Steamworks.CSteamID[],System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:uint64(var_2_14, call:uint64(NativeMethods::ISteamUserStats_DownloadLeaderboardEntriesForUsers, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:SteamLeaderboard_t(hSteamLeaderboard), ldloc:valuetype Steamworks.CSteamID[](prgUsers), ldloc:int32(cUsers)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600928A RID: 37514 RVA: 0x001E0CC0 File Offset: 0x001DEEC0
|
|
[Token(Token = "0x600928A")]
|
|
[Address(RVA = "0x5A1AE0", Offset = "0x5A0AE0", VA = "0x1805A1AE0")]
|
|
public static bool GetDownloadedLeaderboardEntry(SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, int[] pDetails, int cDetailsMax)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr pSteamUserStats = CSteamAPIContext.m_pSteamUserStats;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600928B RID: 37515 RVA: 0x001E0CDC File Offset: 0x001DEEDC
|
|
[Token(Token = "0x600928B")]
|
|
[Address(RVA = "0x5A3320", Offset = "0x5A2320", VA = "0x1805A3320")]
|
|
public static SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, int[] pScoreDetails, int cScoreDetailsCount)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600928B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::UploadLeaderboardScore(Steamworks.SteamLeaderboard_t,Steamworks.ELeaderboardUploadScoreMethod,System.Int32,System.Int32[],System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:native int(var_2_0C, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600928C RID: 37516 RVA: 0x001E0CF8 File Offset: 0x001DEEF8
|
|
[Token(Token = "0x600928C")]
|
|
[Address(RVA = "0x5A0EF0", Offset = "0x59FEF0", VA = "0x1805A0EF0")]
|
|
public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600928C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::AttachLeaderboardUGC(Steamworks.SteamLeaderboard_t,Steamworks.UGCHandle_t)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:uint64(var_1_13, call:uint64(NativeMethods::ISteamUserStats_AttachLeaderboardUGC, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:SteamLeaderboard_t(hSteamLeaderboard), ldloc:UGCHandle_t(hUGC)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600928D RID: 37517 RVA: 0x001E0D18 File Offset: 0x001DEF18
|
|
[Token(Token = "0x600928D")]
|
|
[Address(RVA = "0x5A23A0", Offset = "0x5A13A0", VA = "0x1805A23A0")]
|
|
public static SteamAPICall_t GetNumberOfCurrentPlayers()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600928D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::GetNumberOfCurrentPlayers()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:TimeSpan(var_1_16, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_GetNumberOfCurrentPlayers, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600928E RID: 37518 RVA: 0x001E0D3C File Offset: 0x001DEF3C
|
|
[Token(Token = "0x600928E")]
|
|
[Address(RVA = "0x5A2C50", Offset = "0x5A1C50", VA = "0x1805A2C50")]
|
|
public static SteamAPICall_t RequestGlobalAchievementPercentages()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600928E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestGlobalAchievementPercentages()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:TimeSpan(var_1_16, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestGlobalAchievementPercentages, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600928F RID: 37519 RVA: 0x001E0D60 File Offset: 0x001DEF60
|
|
[Token(Token = "0x600928F")]
|
|
[Address(RVA = "0x5A2120", Offset = "0x5A1120", VA = "0x1805A2120")]
|
|
public static int GetMostAchievedAchievementInfo(out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = Marshal.AllocHGlobal((int)unNameBufLen);
|
|
IntPtr intPtr2 = CSteamAPIContext.m_pSteamUserStats;
|
|
int num = NativeMethods.ISteamUserStats_GetMostAchievedAchievementInfo(intPtr2, intPtr, unNameBufLen, out pflPercent, out pbAchieved);
|
|
if (num != -1)
|
|
{
|
|
intPtr2 = intPtr;
|
|
string text = InteropHelp.PtrToStringUTF8(intPtr2);
|
|
}
|
|
Marshal.FreeHGlobal(intPtr);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06009290 RID: 37520 RVA: 0x001E0DA8 File Offset: 0x001DEFA8
|
|
[Token(Token = "0x6009290")]
|
|
[Address(RVA = "0x5A2230", Offset = "0x5A1230", VA = "0x1805A2230")]
|
|
public static int GetNextMostAchievedAchievementInfo(int iIteratorPrevious, out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = Marshal.AllocHGlobal((int)unNameBufLen);
|
|
IntPtr intPtr2 = CSteamAPIContext.m_pSteamUserStats;
|
|
int num;
|
|
if (num != -1)
|
|
{
|
|
intPtr2 = intPtr;
|
|
string text = InteropHelp.PtrToStringUTF8(intPtr2);
|
|
}
|
|
Marshal.FreeHGlobal(intPtr);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06009291 RID: 37521 RVA: 0x001E0DE4 File Offset: 0x001DEFE4
|
|
[Token(Token = "0x6009291")]
|
|
[Address(RVA = "0x5A14B0", Offset = "0x5A04B0", VA = "0x1805A14B0")]
|
|
public static bool GetAchievementAchievedPercent(string pchName, out float pflPercent)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamUserStats_GetAchievementAchievedPercent(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pflPercent);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009292 RID: 37522 RVA: 0x001E0E18 File Offset: 0x001DF018
|
|
[Token(Token = "0x6009292")]
|
|
[Address(RVA = "0x5A2CE0", Offset = "0x5A1CE0", VA = "0x1805A2CE0")]
|
|
public static SteamAPICall_t RequestGlobalStats(int nHistoryDays)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009292)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestGlobalStats(System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:TimeSpan(var_1_17, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestGlobalStats, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:int32(nHistoryDays))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009293 RID: 37523 RVA: 0x001E0E3C File Offset: 0x001DF03C
|
|
[Token(Token = "0x6009293")]
|
|
[Address(RVA = "0x5A1DB0", Offset = "0x5A0DB0", VA = "0x1805A1DB0")]
|
|
public static bool GetGlobalStat(string pchStatName, out long pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
|
|
flag = NativeMethods.ISteamUserStats_GetGlobalStatInt64(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009294 RID: 37524 RVA: 0x001E0E70 File Offset: 0x001DF070
|
|
[Token(Token = "0x6009294")]
|
|
[Address(RVA = "0x5A1EC0", Offset = "0x5A0EC0", VA = "0x1805A1EC0")]
|
|
public static bool GetGlobalStat(string pchStatName, out double pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
|
|
flag = NativeMethods.ISteamUserStats_GetGlobalStatDouble(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009295 RID: 37525 RVA: 0x001E0EA4 File Offset: 0x001DF0A4
|
|
[Token(Token = "0x6009295")]
|
|
[Address(RVA = "0x5A1B70", Offset = "0x5A0B70", VA = "0x1805A1B70")]
|
|
public static int GetGlobalStatHistory(string pchStatName, long[] pData, uint cubData)
|
|
{
|
|
int num;
|
|
int num2;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
|
|
num2 = NativeMethods.ISteamUserStats_GetGlobalStatHistoryInt64(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, pData, cubData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return num2;
|
|
}
|
|
|
|
// Token: 0x06009296 RID: 37526 RVA: 0x001E0ED8 File Offset: 0x001DF0D8
|
|
[Token(Token = "0x6009296")]
|
|
[Address(RVA = "0x5A1C90", Offset = "0x5A0C90", VA = "0x1805A1C90")]
|
|
public static int GetGlobalStatHistory(string pchStatName, double[] pData, uint cubData)
|
|
{
|
|
int num;
|
|
int num2;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableClient();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
|
|
num2 = NativeMethods.ISteamUserStats_GetGlobalStatHistoryDouble(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, pData, cubData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return num2;
|
|
}
|
|
}
|
|
}
|