Added Inventory.Definition.IconUrl

This commit is contained in:
Garry Newman 2016-11-10 10:05:07 +00:00
parent 8aed047784
commit 158a102060
2 changed files with 6 additions and 0 deletions

View File

@ -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 );
}
}
}

View File

@ -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; }
/// <summary>
/// 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<DateTime>( "timestamp" );
Modified = GetProperty<DateTime>( "modified" );
ExchangeSchema = GetStringProperty( "exchange" );
IconUrl = GetStringProperty( "icon_url" );
IconLargeUrl = GetStringProperty( "icon_url_large" );
}
/// <summary>