using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace Steamworks { // Token: 0x020011FC RID: 4604 [Token(Token = "0x20011FC")] [StructLayout(3)] public static class SteamGameServerStats { // Token: 0x06006CDA RID: 27866 RVA: 0x001705F0 File Offset: 0x0016E7F0 [Token(Token = "0x6006CDA")] [Address(RVA = "0x2A27610", Offset = "0x2A26010", VA = "0x182A27610")] public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser) { /* An exception occurred when decompiling this method (06006CDA) 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: 0x06006CDB RID: 27867 RVA: 0x00170610 File Offset: 0x0016E810 [Token(Token = "0x6006CDB")] [Address(RVA = "0x2A27370", Offset = "0x2A25D70", VA = "0x182A27370")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CDC RID: 27868 RVA: 0x00170648 File Offset: 0x0016E848 [Token(Token = "0x6006CDC")] [Address(RVA = "0x2A274C0", Offset = "0x2A25EC0", VA = "0x182A274C0")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CDD RID: 27869 RVA: 0x00170680 File Offset: 0x0016E880 [Token(Token = "0x6006CDD")] [Address(RVA = "0x2A27220", Offset = "0x2A25C20", VA = "0x182A27220")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CDE RID: 27870 RVA: 0x001706B8 File Offset: 0x0016E8B8 [Token(Token = "0x6006CDE")] [Address(RVA = "0x2A27930", Offset = "0x2A26330", VA = "0x182A27930")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CDF RID: 27871 RVA: 0x001706F0 File Offset: 0x0016E8F0 [Token(Token = "0x6006CDF")] [Address(RVA = "0x2A277E0", Offset = "0x2A261E0", VA = "0x182A277E0")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CE0 RID: 27872 RVA: 0x00170728 File Offset: 0x0016E928 [Token(Token = "0x6006CE0")] [Address(RVA = "0x2A27B10", Offset = "0x2A26510", VA = "0x182A27B10")] 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) { } if (num != -1) { } } while (num != 0); bool flag; return flag; } // Token: 0x06006CE1 RID: 27873 RVA: 0x0017075C File Offset: 0x0016E95C [Token(Token = "0x6006CE1")] [Address(RVA = "0x2A276A0", Offset = "0x2A260A0", VA = "0x182A276A0")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CE2 RID: 27874 RVA: 0x00170794 File Offset: 0x0016E994 [Token(Token = "0x6006CE2")] [Address(RVA = "0x2A270E0", Offset = "0x2A25AE0", VA = "0x182A270E0")] 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) { } if (num != -1) { } } while (num != 0); return flag; } // Token: 0x06006CE3 RID: 27875 RVA: 0x001707CC File Offset: 0x0016E9CC [Token(Token = "0x6006CE3")] [Address(RVA = "0x2A27A80", Offset = "0x2A26480", VA = "0x182A27A80")] public static SteamAPICall_t StoreUserStats(CSteamID steamIDUser) { /* An exception occurred when decompiling this method (06006CE3) 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 */; } } }