diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs index d6de777..e758ee0 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs @@ -285,13 +285,13 @@ public bool SetProperty0( SteamInventoryUpdateHandle_t handle /*SteamInventoryUp } // bool - public bool SetProperty0( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, long nValue /*int64*/ ) + public bool SetProperty1( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, long nValue /*int64*/ ) { return platform.ISteamInventory_SetProperty0( handle.Value, nItemID.Value, pchPropertyName, nValue ); } // bool - public bool SetProperty0( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, float flValue /*float*/ ) + public bool SetProperty2( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, float flValue /*float*/ ) { return platform.ISteamInventory_SetProperty0( handle.Value, nItemID.Value, pchPropertyName, flValue ); } diff --git a/Generator/CodeWriter/Class.cs b/Generator/CodeWriter/Class.cs index 896a5fd..5325278 100644 --- a/Generator/CodeWriter/Class.cs +++ b/Generator/CodeWriter/Class.cs @@ -9,6 +9,7 @@ namespace Generator public partial class CodeWriter { string LastMethodName; + int MethodNameCount; List BeforeLines; List AfterLines; string ReturnType; @@ -143,8 +144,15 @@ private void ClassMethod( string classname, SteamApiDefinition.MethodDef m ) var methodName = m.Name; - if ( LastMethodName == methodName ) - methodName += "0"; + if (LastMethodName == methodName) + { + methodName += MethodNameCount.ToString(); + MethodNameCount++; + } + else + { + MethodNameCount = 0; + } var argString = string.Join( ", ", argList.Select( x => x.ManagedParameter() ) ); if ( argString != "" ) argString = " " + argString + " ";