Inventory.FetchItemDefinitions is now public

This commit is contained in:
André Straubmeier 2018-03-19 19:36:06 +01:00
parent aa3a6d4d24
commit 99c77f1997

View File

@ -48,7 +48,6 @@ namespace Facepunch.Steamworks
Result.Pending = new Dictionary<int, Result>();
inventory.LoadItemDefinitions();
FetchItemDefinitions();
UpdatePrices();
@ -198,12 +197,17 @@ namespace Facepunch.Steamworks
return new Definition( this, id );
}
internal void FetchItemDefinitions()
/// <summary>
/// Fetch item definitions in case new ones have been added since we've initialized
/// </summary>
public void FetchItemDefinitions()
{
//
// Make sure item definitions are loaded, because we're going to be using them.
//
inventory.LoadItemDefinitions();
var ids = inventory.GetItemDefinitionIDs();
if ( ids == null )
return;
@ -238,7 +242,6 @@ namespace Facepunch.Steamworks
}
FetchItemDefinitions();
inventory.LoadItemDefinitions();
}
}