233 lines
11 KiB
C#
233 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x020018FB RID: 6395
|
|
[Token(Token = "0x20018FB")]
|
|
public static class SteamGameServerStats
|
|
{
|
|
// Token: 0x06009021 RID: 36897 RVA: 0x001DAE40 File Offset: 0x001D9040
|
|
[Token(Token = "0x6009021")]
|
|
[Address(RVA = "0xF66840", Offset = "0xF65840", VA = "0x180F66840")]
|
|
public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009021)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerStats::RequestUserStats(Steamworks.CSteamID)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableGameServer)
|
|
stloc:uint64(var_1_12, call:uint64(NativeMethods::ISteamGameServerStats_RequestUserStats, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamGameServerStats), 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: 0x06009022 RID: 36898 RVA: 0x001DAE60 File Offset: 0x001D9060
|
|
[Token(Token = "0x6009022")]
|
|
[Address(RVA = "0xF66600", Offset = "0xF65600", VA = "0x180F66600")]
|
|
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_GetUserStatInt32(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009023 RID: 36899 RVA: 0x001DAE94 File Offset: 0x001D9094
|
|
[Token(Token = "0x6009023")]
|
|
[Address(RVA = "0xF66720", Offset = "0xF65720", VA = "0x180F66720")]
|
|
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_GetUserStatFloat(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle, out pData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009024 RID: 36900 RVA: 0x001DAEC8 File Offset: 0x001D90C8
|
|
[Token(Token = "0x6009024")]
|
|
[Address(RVA = "0xF664E0", Offset = "0xF654E0", VA = "0x180F664E0")]
|
|
public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_GetUserAchievement(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle, out pbAchieved);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009025 RID: 36901 RVA: 0x001DAEFC File Offset: 0x001D90FC
|
|
[Token(Token = "0x6009025")]
|
|
[Address(RVA = "0xF66B10", Offset = "0xF65B10", VA = "0x180F66B10")]
|
|
public static bool SetUserStat(CSteamID steamIDUser, string pchName, int nData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_SetUserStatInt32(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle, nData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009026 RID: 36902 RVA: 0x001DAF30 File Offset: 0x001D9130
|
|
[Token(Token = "0x6009026")]
|
|
[Address(RVA = "0xF669E0", Offset = "0xF659E0", VA = "0x180F669E0")]
|
|
public static bool SetUserStat(CSteamID steamIDUser, string pchName, float fData)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_SetUserStatFloat(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle, fData);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009027 RID: 36903 RVA: 0x001DAF64 File Offset: 0x001D9164
|
|
[Token(Token = "0x6009027")]
|
|
[Address(RVA = "0xF66CC0", Offset = "0xF65CC0", VA = "0x180F66CC0")]
|
|
public static bool UpdateUserAvgRateStat(CSteamID steamIDUser, string pchName, float flCountThisSession, double dSessionLength)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
IntPtr pSteamGameServerStats = CSteamGameServerAPIContext.m_pSteamGameServerStats;
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009028 RID: 36904 RVA: 0x001DAF94 File Offset: 0x001D9194
|
|
[Token(Token = "0x6009028")]
|
|
[Address(RVA = "0xF668D0", Offset = "0xF658D0", VA = "0x180F668D0")]
|
|
public static bool SetUserAchievement(CSteamID steamIDUser, string pchName)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_SetUserAchievement(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009029 RID: 36905 RVA: 0x001DAFC8 File Offset: 0x001D91C8
|
|
[Token(Token = "0x6009029")]
|
|
[Address(RVA = "0xF663D0", Offset = "0xF653D0", VA = "0x180F663D0")]
|
|
public static bool ClearUserAchievement(CSteamID steamIDUser, string pchName)
|
|
{
|
|
int num;
|
|
bool flag;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
|
|
flag = NativeMethods.ISteamGameServerStats_ClearUserAchievement(CSteamGameServerAPIContext.m_pSteamGameServerStats, steamIDUser, utf8StringHandle);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600902A RID: 36906 RVA: 0x001DAFFC File Offset: 0x001D91FC
|
|
[Token(Token = "0x600902A")]
|
|
[Address(RVA = "0xF66C30", Offset = "0xF65C30", VA = "0x180F66C30")]
|
|
public static SteamAPICall_t StoreUserStats(CSteamID steamIDUser)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600902A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerStats::StoreUserStats(Steamworks.CSteamID)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableGameServer)
|
|
stloc:uint64(var_1_12, call:uint64(NativeMethods::ISteamGameServerStats_StoreUserStats, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamGameServerStats), 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
|
|
*/;
|
|
}
|
|
}
|
|
}
|