diff --git a/Facepunch.Steamworks.Test/Client/Client.cs b/Facepunch.Steamworks.Test/Client/Client.cs index 0dbcf27..ed3942c 100644 --- a/Facepunch.Steamworks.Test/Client/Client.cs +++ b/Facepunch.Steamworks.Test/Client/Client.cs @@ -218,6 +218,8 @@ public void InventoryDefinitions() Console.WriteLine( "{0}: {1}", i.Id, i.Name ); Console.WriteLine( " itemshortname: {0}", i.GetStringProperty( "itemshortname" ) ); Console.WriteLine( " workshopdownload: {0}", i.GetStringProperty( "workshopdownload" ) ); + Console.WriteLine( " IconUrl: {0}", i.IconUrl ); + Console.WriteLine( " IconLargeUrl: {0}", i.IconLargeUrl ); } } } diff --git a/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs b/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs index d1f55d5..17dfa35 100644 --- a/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs +++ b/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs @@ -20,6 +20,8 @@ public class Definition public int Id { get; private set; } public string Name { get; set; } public string Description { get; set; } + public string IconUrl { get; set; } + public string IconLargeUrl { get; set; } /// /// If this item can be created using other items this string will contain a comma seperated @@ -103,6 +105,8 @@ internal void SetupCommonProperties() Created = GetProperty( "timestamp" ); Modified = GetProperty( "modified" ); ExchangeSchema = GetStringProperty( "exchange" ); + IconUrl = GetStringProperty( "icon_url" ); + IconLargeUrl = GetStringProperty( "icon_url_large" ); } ///