870 lines
53 KiB
C#
870 lines
53 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x0200182F RID: 6191
|
|
[Token(Token = "0x200182F")]
|
|
public static class SteamUserStats
|
|
{
|
|
// Token: 0x06008E9E RID: 36510 RVA: 0x001D766C File Offset: 0x001D586C
|
|
[Token(Token = "0x6008E9E")]
|
|
[Address(RVA = "0x1A9FFB0", Offset = "0x1A9EDB0", VA = "0x181A9FFB0")]
|
|
public static bool RequestCurrentStats()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_RequestCurrentStats(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x06008E9F RID: 36511 RVA: 0x001D768C File Offset: 0x001D588C
|
|
[Token(Token = "0x6008E9F")]
|
|
[Address(RVA = "0x1A9F8F0", Offset = "0x1A9E6F0", VA = "0x181A9F8F0")]
|
|
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: 0x06008EA0 RID: 36512 RVA: 0x001D76C0 File Offset: 0x001D58C0
|
|
[Token(Token = "0x6008EA0")]
|
|
[Address(RVA = "0x1A9F7E0", Offset = "0x1A9E5E0", VA = "0x181A9F7E0")]
|
|
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: 0x06008EA1 RID: 36513 RVA: 0x001D76F4 File Offset: 0x001D58F4
|
|
[Token(Token = "0x6008EA1")]
|
|
[Address(RVA = "0x1AA0440", Offset = "0x1A9F240", VA = "0x181AA0440")]
|
|
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: 0x06008EA2 RID: 36514 RVA: 0x001D7728 File Offset: 0x001D5928
|
|
[Token(Token = "0x6008EA2")]
|
|
[Address(RVA = "0x1AA0320", Offset = "0x1A9F120", VA = "0x181AA0320")]
|
|
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: 0x06008EA3 RID: 36515 RVA: 0x001D775C File Offset: 0x001D595C
|
|
[Token(Token = "0x6008EA3")]
|
|
[Address(RVA = "0x1AA05A0", Offset = "0x1A9F3A0", VA = "0x181AA05A0")]
|
|
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: 0x06008EA4 RID: 36516 RVA: 0x001D7790 File Offset: 0x001D5990
|
|
[Token(Token = "0x6008EA4")]
|
|
[Address(RVA = "0x1A9ED80", Offset = "0x1A9DB80", VA = "0x181A9ED80")]
|
|
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: 0x06008EA5 RID: 36517 RVA: 0x001D77C4 File Offset: 0x001D59C4
|
|
[Token(Token = "0x6008EA5")]
|
|
[Address(RVA = "0x1AA0220", Offset = "0x1A9F020", VA = "0x181AA0220")]
|
|
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: 0x06008EA6 RID: 36518 RVA: 0x001D77F8 File Offset: 0x001D59F8
|
|
[Token(Token = "0x6008EA6")]
|
|
[Address(RVA = "0x1A9E350", Offset = "0x1A9D150", VA = "0x181A9E350")]
|
|
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: 0x06008EA7 RID: 36519 RVA: 0x001D782C File Offset: 0x001D5A2C
|
|
[Token(Token = "0x6008EA7")]
|
|
[Address(RVA = "0x1A9E970", Offset = "0x1A9D770", VA = "0x181A9E970")]
|
|
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: 0x06008EA8 RID: 36520 RVA: 0x001D7860 File Offset: 0x001D5A60
|
|
[Token(Token = "0x6008EA8")]
|
|
[Address(RVA = "0x1AA0550", Offset = "0x1A9F350", VA = "0x181AA0550")]
|
|
public static bool StoreStats()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_StoreStats(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x06008EA9 RID: 36521 RVA: 0x001D7880 File Offset: 0x001D5A80
|
|
[Token(Token = "0x6008EA9")]
|
|
[Address(RVA = "0x1A9EC20", Offset = "0x1A9DA20", VA = "0x181A9EC20")]
|
|
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: 0x06008EAA RID: 36522 RVA: 0x001D78B4 File Offset: 0x001D5AB4
|
|
[Token(Token = "0x6008EAA")]
|
|
[Address(RVA = "0x1A9EA90", Offset = "0x1A9D890", VA = "0x181A9EA90")]
|
|
public static string GetAchievementDisplayAttribute(string pchName, string pchKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EAA)
|
|
|
|
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: 0x06008EAB RID: 36523 RVA: 0x001D7908 File Offset: 0x001D5B08
|
|
[Token(Token = "0x6008EAB")]
|
|
[Address(RVA = "0x1A9FE90", Offset = "0x1A9EC90", VA = "0x181A9FE90")]
|
|
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: 0x06008EAC RID: 36524 RVA: 0x001D793C File Offset: 0x001D5B3C
|
|
[Token(Token = "0x6008EAC")]
|
|
[Address(RVA = "0x1A9F700", Offset = "0x1A9E500", VA = "0x181A9F700")]
|
|
public static uint GetNumAchievements()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetNumAchievements(CSteamAPIContext.m_pSteamUserStats);
|
|
}
|
|
|
|
// Token: 0x06008EAD RID: 36525 RVA: 0x001D795C File Offset: 0x001D5B5C
|
|
[Token(Token = "0x6008EAD")]
|
|
[Address(RVA = "0x1A9ED20", Offset = "0x1A9DB20", VA = "0x181A9ED20")]
|
|
public static string GetAchievementName(uint iAchievement)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = CSteamAPIContext.m_pSteamUserStats;
|
|
intPtr = NativeMethods.ISteamUserStats_GetAchievementName(intPtr, iAchievement);
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x06008EAE RID: 36526 RVA: 0x001D7984 File Offset: 0x001D5B84
|
|
[Token(Token = "0x6008EAE")]
|
|
[Address(RVA = "0x1AA0130", Offset = "0x1A9EF30", VA = "0x181AA0130")]
|
|
public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EAE)
|
|
|
|
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: 0x06008EAF RID: 36527 RVA: 0x001D79A8 File Offset: 0x001D5BA8
|
|
[Token(Token = "0x6008EAF")]
|
|
[Address(RVA = "0x1A9FD70", Offset = "0x1A9EB70", VA = "0x181A9FD70")]
|
|
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: 0x06008EB0 RID: 36528 RVA: 0x001D79DC File Offset: 0x001D5BDC
|
|
[Token(Token = "0x6008EB0")]
|
|
[Address(RVA = "0x1A9FC50", Offset = "0x1A9EA50", VA = "0x181A9FC50")]
|
|
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: 0x06008EB1 RID: 36529 RVA: 0x001D7A10 File Offset: 0x001D5C10
|
|
[Token(Token = "0x6008EB1")]
|
|
[Address(RVA = "0x1A9FB30", Offset = "0x1A9E930", VA = "0x181A9FB30")]
|
|
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: 0x06008EB2 RID: 36530 RVA: 0x001D7A44 File Offset: 0x001D5C44
|
|
[Token(Token = "0x6008EB2")]
|
|
[Address(RVA = "0x1A9FA00", Offset = "0x1A9E800", VA = "0x181A9FA00")]
|
|
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: 0x06008EB3 RID: 36531 RVA: 0x001D7A7C File Offset: 0x001D5C7C
|
|
[Token(Token = "0x6008EB3")]
|
|
[Address(RVA = "0x1AA01D0", Offset = "0x1A9EFD0", VA = "0x181AA01D0")]
|
|
public static bool ResetAllStats(bool bAchievementsToo)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_ResetAllStats(CSteamAPIContext.m_pSteamUserStats, bAchievementsToo);
|
|
}
|
|
|
|
// Token: 0x06008EB4 RID: 36532 RVA: 0x001D7A9C File Offset: 0x001D5C9C
|
|
[Token(Token = "0x6008EB4")]
|
|
[Address(RVA = "0x1A9E710", Offset = "0x1A9D510", VA = "0x181A9E710")]
|
|
public static SteamAPICall_t FindOrCreateLeaderboard(string pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EB4)
|
|
|
|
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: 0x06008EB5 RID: 36533 RVA: 0x001D7AC8 File Offset: 0x001D5CC8
|
|
[Token(Token = "0x6008EB5")]
|
|
[Address(RVA = "0x1A9E5E0", Offset = "0x1A9D3E0", VA = "0x181A9E5E0")]
|
|
public static SteamAPICall_t FindLeaderboard(string pchLeaderboardName)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EB5)
|
|
|
|
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: 0x06008EB6 RID: 36534 RVA: 0x001D7B00 File Offset: 0x001D5D00
|
|
[Token(Token = "0x6008EB6")]
|
|
[Address(RVA = "0x1A9F420", Offset = "0x1A9E220", VA = "0x181A9F420")]
|
|
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: 0x06008EB7 RID: 36535 RVA: 0x001D7B28 File Offset: 0x001D5D28
|
|
[Token(Token = "0x6008EB7")]
|
|
[Address(RVA = "0x1A9F3D0", Offset = "0x1A9E1D0", VA = "0x181A9F3D0")]
|
|
public static int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardEntryCount(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06008EB8 RID: 36536 RVA: 0x001D7B48 File Offset: 0x001D5D48
|
|
[Token(Token = "0x6008EB8")]
|
|
[Address(RVA = "0x1A9F480", Offset = "0x1A9E280", VA = "0x181A9F480")]
|
|
public static ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardSortMethod(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06008EB9 RID: 36537 RVA: 0x001D7B68 File Offset: 0x001D5D68
|
|
[Token(Token = "0x6008EB9")]
|
|
[Address(RVA = "0x1A9F380", Offset = "0x1A9E180", VA = "0x181A9F380")]
|
|
public static ELeaderboardDisplayType GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamUserStats_GetLeaderboardDisplayType(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
|
|
}
|
|
|
|
// Token: 0x06008EBA RID: 36538 RVA: 0x001D7B88 File Offset: 0x001D5D88
|
|
[Token(Token = "0x6008EBA")]
|
|
[Address(RVA = "0x1A9E510", Offset = "0x1A9D310", VA = "0x181A9E510")]
|
|
public static SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EBA)
|
|
|
|
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: 0x06008EBB RID: 36539 RVA: 0x001D7BA4 File Offset: 0x001D5DA4
|
|
[Token(Token = "0x6008EBB")]
|
|
[Address(RVA = "0x1A9E450", Offset = "0x1A9D250", VA = "0x181A9E450")]
|
|
public static SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, CSteamID[] prgUsers, int cUsers)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EBB)
|
|
|
|
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: 0x06008EBC RID: 36540 RVA: 0x001D7BC8 File Offset: 0x001D5DC8
|
|
[Token(Token = "0x6008EBC")]
|
|
[Address(RVA = "0x1A9EE90", Offset = "0x1A9DC90", VA = "0x181A9EE90")]
|
|
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: 0x06008EBD RID: 36541 RVA: 0x001D7BE4 File Offset: 0x001D5DE4
|
|
[Token(Token = "0x6008EBD")]
|
|
[Address(RVA = "0x1AA06D0", Offset = "0x1A9F4D0", VA = "0x181AA06D0")]
|
|
public static SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, int[] pScoreDetails, int cScoreDetailsCount)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EBD)
|
|
|
|
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: 0x06008EBE RID: 36542 RVA: 0x001D7C00 File Offset: 0x001D5E00
|
|
[Token(Token = "0x6008EBE")]
|
|
[Address(RVA = "0x1A9E2A0", Offset = "0x1A9D0A0", VA = "0x181A9E2A0")]
|
|
public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EBE)
|
|
|
|
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: 0x06008EBF RID: 36543 RVA: 0x001D7C20 File Offset: 0x001D5E20
|
|
[Token(Token = "0x6008EBF")]
|
|
[Address(RVA = "0x1A9F750", Offset = "0x1A9E550", VA = "0x181A9F750")]
|
|
public static SteamAPICall_t GetNumberOfCurrentPlayers()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EBF)
|
|
|
|
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: 0x06008EC0 RID: 36544 RVA: 0x001D7C44 File Offset: 0x001D5E44
|
|
[Token(Token = "0x6008EC0")]
|
|
[Address(RVA = "0x1AA0000", Offset = "0x1A9EE00", VA = "0x181AA0000")]
|
|
public static SteamAPICall_t RequestGlobalAchievementPercentages()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EC0)
|
|
|
|
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: 0x06008EC1 RID: 36545 RVA: 0x001D7C68 File Offset: 0x001D5E68
|
|
[Token(Token = "0x6008EC1")]
|
|
[Address(RVA = "0x1A9F4D0", Offset = "0x1A9E2D0", VA = "0x181A9F4D0")]
|
|
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: 0x06008EC2 RID: 36546 RVA: 0x001D7CB0 File Offset: 0x001D5EB0
|
|
[Token(Token = "0x6008EC2")]
|
|
[Address(RVA = "0x1A9F5E0", Offset = "0x1A9E3E0", VA = "0x181A9F5E0")]
|
|
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: 0x06008EC3 RID: 36547 RVA: 0x001D7CEC File Offset: 0x001D5EEC
|
|
[Token(Token = "0x6008EC3")]
|
|
[Address(RVA = "0x1A9E860", Offset = "0x1A9D660", VA = "0x181A9E860")]
|
|
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: 0x06008EC4 RID: 36548 RVA: 0x001D7D20 File Offset: 0x001D5F20
|
|
[Token(Token = "0x6008EC4")]
|
|
[Address(RVA = "0x1AA0090", Offset = "0x1A9EE90", VA = "0x181AA0090")]
|
|
public static SteamAPICall_t RequestGlobalStats(int nHistoryDays)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008EC4)
|
|
|
|
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: 0x06008EC5 RID: 36549 RVA: 0x001D7D44 File Offset: 0x001D5F44
|
|
[Token(Token = "0x6008EC5")]
|
|
[Address(RVA = "0x1A9F160", Offset = "0x1A9DF60", VA = "0x181A9F160")]
|
|
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: 0x06008EC6 RID: 36550 RVA: 0x001D7D78 File Offset: 0x001D5F78
|
|
[Token(Token = "0x6008EC6")]
|
|
[Address(RVA = "0x1A9F270", Offset = "0x1A9E070", VA = "0x181A9F270")]
|
|
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: 0x06008EC7 RID: 36551 RVA: 0x001D7DAC File Offset: 0x001D5FAC
|
|
[Token(Token = "0x6008EC7")]
|
|
[Address(RVA = "0x1A9EF20", Offset = "0x1A9DD20", VA = "0x181A9EF20")]
|
|
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: 0x06008EC8 RID: 36552 RVA: 0x001D7DE0 File Offset: 0x001D5FE0
|
|
[Token(Token = "0x6008EC8")]
|
|
[Address(RVA = "0x1A9F040", Offset = "0x1A9DE40", VA = "0x181A9F040")]
|
|
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;
|
|
}
|
|
}
|
|
}
|