596 lines
35 KiB
C#
596 lines
35 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x020011FA RID: 4602
|
|
[Token(Token = "0x20011FA")]
|
|
[StructLayout(3)]
|
|
public static class SteamGameServerInventory
|
|
{
|
|
// Token: 0x06006C9F RID: 27807 RVA: 0x0016FD34 File Offset: 0x0016DF34
|
|
[Token(Token = "0x6006C9F")]
|
|
[Address(RVA = "0x2A25920", Offset = "0x2A24320", VA = "0x182A25920")]
|
|
public static EResult GetResultStatus(SteamInventoryResult_t resultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
EResult eresult;
|
|
return eresult;
|
|
}
|
|
|
|
// Token: 0x06006CA0 RID: 27808 RVA: 0x0016FD50 File Offset: 0x0016DF50
|
|
[Token(Token = "0x6006CA0")]
|
|
[Address(RVA = "0x2A25850", Offset = "0x2A24250", VA = "0x182A25850")]
|
|
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: 0x06006CA1 RID: 27809 RVA: 0x0016FD84 File Offset: 0x0016DF84
|
|
[Token(Token = "0x6006CA1")]
|
|
[Address(RVA = "0x2A25670", Offset = "0x2A24070", VA = "0x182A25670")]
|
|
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);
|
|
}
|
|
intPtr.m_value = num;
|
|
Marshal.FreeHGlobal(intPtr2);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CA2 RID: 27810 RVA: 0x0016FDD8 File Offset: 0x0016DFD8
|
|
[Token(Token = "0x6006CA2")]
|
|
[Address(RVA = "0x2A25970", Offset = "0x2A24370", VA = "0x182A25970")]
|
|
public static uint GetResultTimestamp(SteamInventoryResult_t resultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
uint num;
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06006CA3 RID: 27811 RVA: 0x0016FDF4 File Offset: 0x0016DFF4
|
|
[Token(Token = "0x6006CA3")]
|
|
[Address(RVA = "0x2A24D00", Offset = "0x2A23700", VA = "0x182A24D00")]
|
|
public static bool CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CA4 RID: 27812 RVA: 0x0016FE10 File Offset: 0x0016E010
|
|
[Token(Token = "0x6006CA4")]
|
|
[Address(RVA = "0x2A24E70", Offset = "0x2A23870", VA = "0x182A24E70")]
|
|
public static void DestroyResult(SteamInventoryResult_t resultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
}
|
|
|
|
// Token: 0x06006CA5 RID: 27813 RVA: 0x0016FE2C File Offset: 0x0016E02C
|
|
[Token(Token = "0x6006CA5")]
|
|
[Address(RVA = "0x2A25000", Offset = "0x2A23A00", VA = "0x182A25000")]
|
|
public static bool GetAllItems(out SteamInventoryResult_t pResultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamInventory_GetAllItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle);
|
|
}
|
|
|
|
// Token: 0x06006CA6 RID: 27814 RVA: 0x0016FE4C File Offset: 0x0016E04C
|
|
[Token(Token = "0x6006CA6")]
|
|
[Address(RVA = "0x2A25430", Offset = "0x2A23E30", VA = "0x182A25430")]
|
|
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: 0x06006CA7 RID: 27815 RVA: 0x0016FE70 File Offset: 0x0016E070
|
|
[Token(Token = "0x6006CA7")]
|
|
[Address(RVA = "0x2A25D20", Offset = "0x2A24720", VA = "0x182A25D20")]
|
|
public static bool SerializeResult(SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CA8 RID: 27816 RVA: 0x0016FE8C File Offset: 0x0016E08C
|
|
[Token(Token = "0x6006CA8")]
|
|
[Address(RVA = "0x2A24DE0", Offset = "0x2A237E0", VA = "0x182A24DE0")]
|
|
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: 0x06006CA9 RID: 27817 RVA: 0x0016FEB0 File Offset: 0x0016E0B0
|
|
[Token(Token = "0x6006CA9")]
|
|
[Address(RVA = "0x2A24F70", Offset = "0x2A23970", VA = "0x182A24F70")]
|
|
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: 0x06006CAA RID: 27818 RVA: 0x0016FED4 File Offset: 0x0016E0D4
|
|
[Token(Token = "0x6006CAA")]
|
|
[Address(RVA = "0x2A259C0", Offset = "0x2A243C0", VA = "0x182A259C0")]
|
|
public static bool GrantPromoItems(out SteamInventoryResult_t pResultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamInventory_GrantPromoItems(CSteamGameServerAPIContext.m_pSteamInventory, out pResultHandle);
|
|
}
|
|
|
|
// Token: 0x06006CAB RID: 27819 RVA: 0x0016FEF4 File Offset: 0x0016E0F4
|
|
[Token(Token = "0x6006CAB")]
|
|
[Address(RVA = "0x2A24C20", Offset = "0x2A23620", VA = "0x182A24C20")]
|
|
public static bool AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CAC RID: 27820 RVA: 0x0016FF10 File Offset: 0x0016E110
|
|
[Token(Token = "0x6006CAC")]
|
|
[Address(RVA = "0x2A24C80", Offset = "0x2A23680", VA = "0x182A24C80")]
|
|
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: 0x06006CAD RID: 27821 RVA: 0x0016FF34 File Offset: 0x0016E134
|
|
[Token(Token = "0x6006CAD")]
|
|
[Address(RVA = "0x2A24D60", Offset = "0x2A23760", VA = "0x182A24D60")]
|
|
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: 0x06006CAE RID: 27822 RVA: 0x0016FF58 File Offset: 0x0016E158
|
|
[Token(Token = "0x6006CAE")]
|
|
[Address(RVA = "0x2A24EC0", Offset = "0x2A238C0", VA = "0x182A24EC0")]
|
|
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: 0x06006CAF RID: 27823 RVA: 0x0016FF74 File Offset: 0x0016E174
|
|
[Token(Token = "0x6006CAF")]
|
|
[Address(RVA = "0x2A26600", Offset = "0x2A25000", VA = "0x182A26600")]
|
|
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: 0x06006CB0 RID: 27824 RVA: 0x0016FF98 File Offset: 0x0016E198
|
|
[Token(Token = "0x6006CB0")]
|
|
[Address(RVA = "0x2A25CD0", Offset = "0x2A246D0", VA = "0x182A25CD0")]
|
|
public static void SendItemDropHeartbeat()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
NativeMethods.ISteamInventory_SendItemDropHeartbeat(CSteamGameServerAPIContext.m_pSteamInventory);
|
|
}
|
|
|
|
// Token: 0x06006CB1 RID: 27825 RVA: 0x0016FFB8 File Offset: 0x0016E1B8
|
|
[Token(Token = "0x6006CB1")]
|
|
[Address(RVA = "0x2A26690", Offset = "0x2A25090", VA = "0x182A26690")]
|
|
public static bool TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamInventory = CSteamGameServerAPIContext.m_pSteamInventory;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CB2 RID: 27826 RVA: 0x0016FFD4 File Offset: 0x0016E1D4
|
|
[Token(Token = "0x6006CB2")]
|
|
[Address(RVA = "0x2A26540", Offset = "0x2A24F40", VA = "0x182A26540")]
|
|
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: 0x06006CB3 RID: 27827 RVA: 0x0016FFF0 File Offset: 0x0016E1F0
|
|
[Token(Token = "0x6006CB3")]
|
|
[Address(RVA = "0x2A25A10", Offset = "0x2A24410", VA = "0x182A25A10")]
|
|
public static bool LoadItemDefinitions()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamInventory_LoadItemDefinitions(CSteamGameServerAPIContext.m_pSteamInventory);
|
|
}
|
|
|
|
// Token: 0x06006CB4 RID: 27828 RVA: 0x00170010 File Offset: 0x0016E210
|
|
[Token(Token = "0x6006CB4")]
|
|
[Address(RVA = "0x2A25120", Offset = "0x2A23B20", VA = "0x182A25120")]
|
|
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: 0x06006CB5 RID: 27829 RVA: 0x00170048 File Offset: 0x0016E248
|
|
[Token(Token = "0x6006CB5")]
|
|
[Address(RVA = "0x2A251E0", Offset = "0x2A23BE0", VA = "0x182A251E0")]
|
|
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)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CB6 RID: 27830 RVA: 0x0017009C File Offset: 0x0016E29C
|
|
[Token(Token = "0x6006CB6")]
|
|
[Address(RVA = "0x2A25BB0", Offset = "0x2A245B0", VA = "0x182A25BB0")]
|
|
public static SteamAPICall_t RequestEligiblePromoItemDefinitionsIDs(CSteamID steamID)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CB6)
|
|
|
|
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: 0x06006CB7 RID: 27831 RVA: 0x001700BC File Offset: 0x0016E2BC
|
|
[Token(Token = "0x6006CB7")]
|
|
[Address(RVA = "0x2A25050", Offset = "0x2A23A50", VA = "0x182A25050")]
|
|
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: 0x06006CB8 RID: 27832 RVA: 0x001700F4 File Offset: 0x0016E2F4
|
|
[Token(Token = "0x6006CB8")]
|
|
[Address(RVA = "0x2A26390", Offset = "0x2A24D90", VA = "0x182A26390")]
|
|
public static SteamAPICall_t StartPurchase(SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CB8)
|
|
|
|
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: 0x06006CB9 RID: 27833 RVA: 0x00170118 File Offset: 0x0016E318
|
|
[Token(Token = "0x6006CB9")]
|
|
[Address(RVA = "0x2A25C40", Offset = "0x2A24640", VA = "0x182A25C40")]
|
|
public static SteamAPICall_t RequestPrices()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CB9)
|
|
|
|
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: 0x06006CBA RID: 27834 RVA: 0x00170138 File Offset: 0x0016E338
|
|
[Token(Token = "0x6006CBA")]
|
|
[Address(RVA = "0x2A25620", Offset = "0x2A24020", VA = "0x182A25620")]
|
|
public static uint GetNumItemsWithPrices()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamInventory_GetNumItemsWithPrices(CSteamGameServerAPIContext.m_pSteamInventory);
|
|
}
|
|
|
|
// Token: 0x06006CBB RID: 27835 RVA: 0x00170158 File Offset: 0x0016E358
|
|
[Token(Token = "0x6006CBB")]
|
|
[Address(RVA = "0x2A254B0", Offset = "0x2A23EB0", VA = "0x182A254B0")]
|
|
public static bool GetItemsWithPrices(SteamItemDef_t[] pArrayItemDefs, ulong[] pCurrentPrices, ulong[] pBasePrices, uint unArrayLength)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CBB)
|
|
|
|
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: 0x06006CBC RID: 27836 RVA: 0x001701C4 File Offset: 0x0016E3C4
|
|
[Token(Token = "0x6006CBC")]
|
|
[Address(RVA = "0x2A253B0", Offset = "0x2A23DB0", VA = "0x182A253B0")]
|
|
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: 0x06006CBD RID: 27837 RVA: 0x001701E0 File Offset: 0x0016E3E0
|
|
[Token(Token = "0x6006CBD")]
|
|
[Address(RVA = "0x2A26450", Offset = "0x2A24E50", VA = "0x182A26450")]
|
|
public static SteamInventoryUpdateHandle_t StartUpdateProperties()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CBD)
|
|
|
|
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: 0x06006CBE RID: 27838 RVA: 0x00170204 File Offset: 0x0016E404
|
|
[Token(Token = "0x6006CBE")]
|
|
[Address(RVA = "0x2A25A60", Offset = "0x2A24460", VA = "0x182A25A60")]
|
|
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)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CBF RID: 27839 RVA: 0x0017023C File Offset: 0x0016E43C
|
|
[Token(Token = "0x6006CBF")]
|
|
[Address(RVA = "0x2A261C0", Offset = "0x2A24BC0", VA = "0x182A261C0")]
|
|
public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, string pchPropertyValue)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006CBF)
|
|
|
|
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_3B:
|
|
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: 0x06006CC0 RID: 27840 RVA: 0x00170288 File Offset: 0x0016E488
|
|
[Token(Token = "0x6006CC0")]
|
|
[Address(RVA = "0x2A26060", Offset = "0x2A24A60", VA = "0x182A26060")]
|
|
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)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CC1 RID: 27841 RVA: 0x001702C4 File Offset: 0x0016E4C4
|
|
[Token(Token = "0x6006CC1")]
|
|
[Address(RVA = "0x2A25DA0", Offset = "0x2A247A0", VA = "0x182A25DA0")]
|
|
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)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CC2 RID: 27842 RVA: 0x00170300 File Offset: 0x0016E500
|
|
[Token(Token = "0x6006CC2")]
|
|
[Address(RVA = "0x2A25F00", Offset = "0x2A24900", VA = "0x182A25F00")]
|
|
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)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006CC3 RID: 27843 RVA: 0x0017033C File Offset: 0x0016E53C
|
|
[Token(Token = "0x6006CC3")]
|
|
[Address(RVA = "0x2A264E0", Offset = "0x2A24EE0", VA = "0x182A264E0")]
|
|
public static bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamInventory_SubmitUpdateProperties(CSteamGameServerAPIContext.m_pSteamInventory, handle, out pResultHandle);
|
|
}
|
|
}
|
|
}
|