Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

576 lines
35 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x020018F9 RID: 6393
[Token(Token = "0x20018F9")]
public static class SteamGameServerInventory
{
// Token: 0x06008FE6 RID: 36838 RVA: 0x001DA5A8 File Offset: 0x001D87A8
[Token(Token = "0x6008FE6")]
[Address(RVA = "0xF64CE0", Offset = "0xF63CE0", VA = "0x180F64CE0")]
public static EResult GetResultStatus(SteamInventoryResult_t resultHandle)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
EResult eresult;
return eresult;
}
// Token: 0x06008FE7 RID: 36839 RVA: 0x001DA5C4 File Offset: 0x001D87C4
[Token(Token = "0x6008FE7")]
[Address(RVA = "0xF64C10", Offset = "0xF63C10", VA = "0x180F64C10")]
public static bool GetResultItems(SteamInventoryResult_t resultHandle, SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize)
{
InteropHelp.TestIfAvailableGameServer();
if (pOutItemsArray != 0)
{
int length = pOutItemsArray.Length;
}
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FE8 RID: 36840 RVA: 0x001DA5F8 File Offset: 0x001D87F8
[Token(Token = "0x6008FE8")]
[Address(RVA = "0xF64A60", Offset = "0xF63A60", VA = "0x180F64A60")]
public static bool GetResultItemProperty(SteamInventoryResult_t resultHandle, uint unItemIndex, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
IntPtr intPtr = CSteamGameServerAPIContext.m_pSteamInventory;
IntPtr intPtr2;
if (flag)
{
intPtr = intPtr2;
string text = InteropHelp.PtrToStringUTF8(intPtr);
}
Marshal.FreeHGlobal(intPtr2);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06008FE9 RID: 36841 RVA: 0x001DA640 File Offset: 0x001D8840
[Token(Token = "0x6008FE9")]
[Address(RVA = "0xF64D30", Offset = "0xF63D30", VA = "0x180F64D30")]
public static uint GetResultTimestamp(SteamInventoryResult_t resultHandle)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
uint num;
return num;
}
// Token: 0x06008FEA RID: 36842 RVA: 0x001DA65C File Offset: 0x001D885C
[Token(Token = "0x6008FEA")]
[Address(RVA = "0xF64120", Offset = "0xF63120", VA = "0x180F64120")]
public static bool CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FEB RID: 36843 RVA: 0x001DA678 File Offset: 0x001D8878
[Token(Token = "0x6008FEB")]
[Address(RVA = "0xF64290", Offset = "0xF63290", VA = "0x180F64290")]
public static void DestroyResult(SteamInventoryResult_t resultHandle)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
}
// Token: 0x06008FEC RID: 36844 RVA: 0x001DA694 File Offset: 0x001D8894
[Token(Token = "0x6008FEC")]
[Address(RVA = "0xF64420", Offset = "0xF63420", VA = "0x180F64420")]
public static bool GetAllItems(out SteamInventoryResult_t pResultHandle)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_GetAllItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle);
}
// Token: 0x06008FED RID: 36845 RVA: 0x001DA6B4 File Offset: 0x001D88B4
[Token(Token = "0x6008FED")]
[Address(RVA = "0xF64820", Offset = "0xF63820", VA = "0x180F64820")]
public static bool GetItemsByID(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_GetItemsByID(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle, pInstanceIDs, unCountInstanceIDs);
}
// Token: 0x06008FEE RID: 36846 RVA: 0x001DA6D8 File Offset: 0x001D88D8
[Token(Token = "0x6008FEE")]
[Address(RVA = "0xF650B0", Offset = "0xF640B0", VA = "0x180F650B0")]
public static bool SerializeResult(SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FEF RID: 36847 RVA: 0x001DA6F4 File Offset: 0x001D88F4
[Token(Token = "0x6008FEF")]
[Address(RVA = "0xF64200", Offset = "0xF63200", VA = "0x180F64200")]
public static bool DeserializeResult(out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE = false)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_DeserializeResult(CSteamGameServerAPIContext.m_pSteamInventory, out pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE);
}
// Token: 0x06008FF0 RID: 36848 RVA: 0x001DA718 File Offset: 0x001D8918
[Token(Token = "0x6008FF0")]
[Address(RVA = "0xF64390", Offset = "0xF63390", VA = "0x180F64390")]
public static bool GenerateItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_GenerateItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength);
}
// Token: 0x06008FF1 RID: 36849 RVA: 0x001DA73C File Offset: 0x001D893C
[Token(Token = "0x6008FF1")]
[Address(RVA = "0xF64D80", Offset = "0xF63D80", VA = "0x180F64D80")]
public static bool GrantPromoItems(out SteamInventoryResult_t pResultHandle)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_GrantPromoItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle);
}
// Token: 0x06008FF2 RID: 36850 RVA: 0x001DA75C File Offset: 0x001D895C
[Token(Token = "0x6008FF2")]
[Address(RVA = "0xF64040", Offset = "0xF63040", VA = "0x180F64040")]
public static bool AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FF3 RID: 36851 RVA: 0x001DA778 File Offset: 0x001D8978
[Token(Token = "0x6008FF3")]
[Address(RVA = "0xF640A0", Offset = "0xF630A0", VA = "0x180F640A0")]
public static bool AddPromoItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint unArrayLength)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_AddPromoItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle, pArrayItemDefs, unArrayLength);
}
// Token: 0x06008FF4 RID: 36852 RVA: 0x001DA79C File Offset: 0x001D899C
[Token(Token = "0x6008FF4")]
[Address(RVA = "0xF64180", Offset = "0xF63180", VA = "0x180F64180")]
public static bool ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_ConsumeItem(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle, itemConsume, unQuantity);
}
// Token: 0x06008FF5 RID: 36853 RVA: 0x001DA7C0 File Offset: 0x001D89C0
[Token(Token = "0x6008FF5")]
[Address(RVA = "0xF642E0", Offset = "0xF632E0", VA = "0x180F642E0")]
public static bool ExchangeItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FF6 RID: 36854 RVA: 0x001DA7DC File Offset: 0x001D89DC
[Token(Token = "0x6008FF6")]
[Address(RVA = "0xF658F0", Offset = "0xF648F0", VA = "0x180F658F0")]
public static bool TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_TransferItemQuantity(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle, itemIdSource, unQuantity, itemIdDest);
}
// Token: 0x06008FF7 RID: 36855 RVA: 0x001DA800 File Offset: 0x001D8A00
[Token(Token = "0x6008FF7")]
[Address(RVA = "0xF65060", Offset = "0xF64060", VA = "0x180F65060")]
public static void SendItemDropHeartbeat()
{
InteropHelp.TestIfAvailableGameServer();
NativeMethods.ISteamInventory_SendItemDropHeartbeat(CSteamGameServerAPIContext.m_pSteamInventory);
}
// Token: 0x06008FF8 RID: 36856 RVA: 0x001DA820 File Offset: 0x001D8A20
[Token(Token = "0x6008FF8")]
[Address(RVA = "0xF65980", Offset = "0xF64980", VA = "0x180F65980")]
public static bool TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FF9 RID: 36857 RVA: 0x001DA83C File Offset: 0x001D8A3C
[Token(Token = "0x6008FF9")]
[Address(RVA = "0xF65830", Offset = "0xF64830", VA = "0x180F65830")]
public static bool TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, SteamItemInstanceID_t[] pArrayGive, uint[] pArrayGiveQuantity, uint nArrayGiveLength, SteamItemInstanceID_t[] pArrayGet, uint[] pArrayGetQuantity, uint nArrayGetLength)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06008FFA RID: 36858 RVA: 0x001DA858 File Offset: 0x001D8A58
[Token(Token = "0x6008FFA")]
[Address(RVA = "0xF64DD0", Offset = "0xF63DD0", VA = "0x180F64DD0")]
public static bool LoadItemDefinitions()
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_LoadItemDefinitions(CSteamGameServerAPIContext.m_pSteamInventory);
}
// Token: 0x06008FFB RID: 36859 RVA: 0x001DA878 File Offset: 0x001D8A78
[Token(Token = "0x6008FFB")]
[Address(RVA = "0xF64540", Offset = "0xF63540", VA = "0x180F64540")]
public static bool GetItemDefinitionIDs(SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize)
{
InteropHelp.TestIfAvailableGameServer();
if (pItemDefIDs != 0)
{
int length = pItemDefIDs.Length;
}
return NativeMethods.ISteamInventory_GetItemDefinitionIDs(CSteamGameServerAPIContext.m_pSteamInventory, pItemDefIDs, ref punItemDefIDsArraySize);
}
// Token: 0x06008FFC RID: 36860 RVA: 0x001DA8B0 File Offset: 0x001D8AB0
[Token(Token = "0x6008FFC")]
[Address(RVA = "0xF64600", Offset = "0xF63600", VA = "0x180F64600")]
public static bool GetItemDefinitionProperty(SteamItemDef_t iDefinition, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
IntPtr intPtr = CSteamGameServerAPIContext.m_pSteamInventory;
IntPtr intPtr2;
if (flag)
{
intPtr = intPtr2;
string text = InteropHelp.PtrToStringUTF8(intPtr);
}
intPtr.m_value = num;
Marshal.FreeHGlobal(intPtr2);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06008FFD RID: 36861 RVA: 0x001DA900 File Offset: 0x001D8B00
[Token(Token = "0x6008FFD")]
[Address(RVA = "0xF64F40", Offset = "0xF63F40", VA = "0x180F64F40")]
public static SteamAPICall_t RequestEligiblePromoItemDefinitionsIDs(CSteamID steamID)
{
/*
An exception occurred when decompiling this method (06008FFD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerInventory::RequestEligiblePromoItemDefinitionsIDs(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::ISteamInventory_RequestEligiblePromoItemDefinitionsIDs, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamInventory), ldloc:CSteamID(steamID)))
}
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: 0x06008FFE RID: 36862 RVA: 0x001DA920 File Offset: 0x001D8B20
[Token(Token = "0x6008FFE")]
[Address(RVA = "0xF64470", Offset = "0xF63470", VA = "0x180F64470")]
public static bool GetEligiblePromoItemDefinitionIDs(CSteamID steamID, SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize)
{
InteropHelp.TestIfAvailableGameServer();
if (pItemDefIDs != 0)
{
int length = pItemDefIDs.Length;
}
return NativeMethods.ISteamInventory_GetEligiblePromoItemDefinitionIDs(CSteamGameServerAPIContext.m_pSteamInventory, steamID, pItemDefIDs, ref punItemDefIDsArraySize);
}
// Token: 0x06008FFF RID: 36863 RVA: 0x001DA958 File Offset: 0x001D8B58
[Token(Token = "0x6008FFF")]
[Address(RVA = "0xF65680", Offset = "0xF64680", VA = "0x180F65680")]
public static SteamAPICall_t StartPurchase(SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength)
{
/*
An exception occurred when decompiling this method (06008FFF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerInventory::StartPurchase(Steamworks.SteamItemDef_t[],System.UInt32[],System.UInt32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableGameServer)
stloc:uint64(var_2_14, call:uint64(NativeMethods::ISteamInventory_StartPurchase, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamInventory), ldloc:valuetype Steamworks.SteamItemDef_t[](pArrayItemDefs), ldloc:uint32[](punArrayQuantity), ldloc:uint32(unArrayLength)))
}
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: 0x06009000 RID: 36864 RVA: 0x001DA97C File Offset: 0x001D8B7C
[Token(Token = "0x6009000")]
[Address(RVA = "0xF64FD0", Offset = "0xF63FD0", VA = "0x180F64FD0")]
public static SteamAPICall_t RequestPrices()
{
/*
An exception occurred when decompiling this method (06009000)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerInventory::RequestPrices()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableGameServer)
stloc:uint64(var_1_11, call:uint64(NativeMethods::ISteamInventory_RequestPrices, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamInventory)))
}
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: 0x06009001 RID: 36865 RVA: 0x001DA99C File Offset: 0x001D8B9C
[Token(Token = "0x6009001")]
[Address(RVA = "0xF64A10", Offset = "0xF63A10", VA = "0x180F64A10")]
public static uint GetNumItemsWithPrices()
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_GetNumItemsWithPrices(CSteamGameServerAPIContext.m_pSteamInventory);
}
// Token: 0x06009002 RID: 36866 RVA: 0x001DA9BC File Offset: 0x001D8BBC
[Token(Token = "0x6009002")]
[Address(RVA = "0xF648A0", Offset = "0xF638A0", VA = "0x180F648A0")]
public static bool GetItemsWithPrices(SteamItemDef_t[] pArrayItemDefs, ulong[] pCurrentPrices, ulong[] pBasePrices, uint unArrayLength)
{
/*
An exception occurred when decompiling this method (06009002)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Steamworks.SteamGameServerInventory::GetItemsWithPrices(Steamworks.SteamItemDef_t[],System.UInt64[],System.UInt64[],System.UInt32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_53:
stloc:ArgumentException(var_4_5D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("pBasePrices must be the same size as unArrayLength!")))
}
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: 0x06009003 RID: 36867 RVA: 0x001DAA28 File Offset: 0x001D8C28
[Token(Token = "0x6009003")]
[Address(RVA = "0xF647A0", Offset = "0xF637A0", VA = "0x180F647A0")]
public static bool GetItemPrice(SteamItemDef_t iDefinition, out ulong pCurrentPrice, out ulong pBasePrice)
{
InteropHelp.TestIfAvailableGameServer();
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
bool flag;
return flag;
}
// Token: 0x06009004 RID: 36868 RVA: 0x001DAA44 File Offset: 0x001D8C44
[Token(Token = "0x6009004")]
[Address(RVA = "0xF65740", Offset = "0xF64740", VA = "0x180F65740")]
public static SteamInventoryUpdateHandle_t StartUpdateProperties()
{
/*
An exception occurred when decompiling this method (06009004)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamInventoryUpdateHandle_t Steamworks.SteamGameServerInventory::StartUpdateProperties()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableGameServer)
stloc:TimeSpan(var_1_16, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamInventory_StartUpdateProperties, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamInventory))))
}
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: 0x06009005 RID: 36869 RVA: 0x001DAA68 File Offset: 0x001D8C68
[Token(Token = "0x6009005")]
[Address(RVA = "0xF64E20", Offset = "0xF63E20", VA = "0x180F64E20")]
public static bool RemoveProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
flag = NativeMethods.ISteamInventory_RemoveProperty(CSteamGameServerAPIContext.m_pSteamInventory, handle, nItemID, utf8StringHandle);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06009006 RID: 36870 RVA: 0x001DAA9C File Offset: 0x001D8C9C
[Token(Token = "0x6009006")]
[Address(RVA = "0xF654D0", Offset = "0xF644D0", VA = "0x180F654D0")]
public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, string pchPropertyValue)
{
/*
An exception occurred when decompiling this method (06009006)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Steamworks.SteamGameServerInventory::SetProperty(Steamworks.SteamInventoryUpdateHandle_t,Steamworks.SteamItemInstanceID_t,System.String,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_37:
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: 0x06009007 RID: 36871 RVA: 0x001DAAE4 File Offset: 0x001D8CE4
[Token(Token = "0x6009007")]
[Address(RVA = "0xF65390", Offset = "0xF64390", VA = "0x180F65390")]
public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, bool bValue)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
flag = NativeMethods.ISteamInventory_SetPropertyBool(CSteamGameServerAPIContext.m_pSteamInventory, handle, nItemID, utf8StringHandle, bValue);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06009008 RID: 36872 RVA: 0x001DAB1C File Offset: 0x001D8D1C
[Token(Token = "0x6009008")]
[Address(RVA = "0xF65130", Offset = "0xF64130", VA = "0x180F65130")]
public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, long nValue)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
flag = NativeMethods.ISteamInventory_SetPropertyInt64(CSteamGameServerAPIContext.m_pSteamInventory, handle, nItemID, utf8StringHandle, nValue);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06009009 RID: 36873 RVA: 0x001DAB54 File Offset: 0x001D8D54
[Token(Token = "0x6009009")]
[Address(RVA = "0xF65260", Offset = "0xF64260", VA = "0x180F65260")]
public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, float flValue)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableGameServer();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchPropertyName);
flag = NativeMethods.ISteamInventory_SetPropertyFloat(CSteamGameServerAPIContext.m_pSteamInventory, handle, nItemID, utf8StringHandle, flValue);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x0600900A RID: 36874 RVA: 0x001DAB8C File Offset: 0x001D8D8C
[Token(Token = "0x600900A")]
[Address(RVA = "0xF657D0", Offset = "0xF647D0", VA = "0x180F657D0")]
public static bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle)
{
InteropHelp.TestIfAvailableGameServer();
return NativeMethods.ISteamInventory_SubmitUpdateProperties(CSteamGameServerAPIContext.m_pSteamInventory, handle, out pResultHandle);
}
}
}