mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Inventory.FetchItemDefinitions is now public
This commit is contained in:
parent
aa3a6d4d24
commit
99c77f1997
@ -48,7 +48,6 @@ internal Inventory( BaseSteamworks steamworks, SteamNative.SteamInventory c, boo
|
||||
|
||||
Result.Pending = new Dictionary<int, Result>();
|
||||
|
||||
inventory.LoadItemDefinitions();
|
||||
FetchItemDefinitions();
|
||||
UpdatePrices();
|
||||
|
||||
@ -198,12 +197,17 @@ public Definition CreateDefinition( int id )
|
||||
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 @@ public void Update()
|
||||
}
|
||||
|
||||
FetchItemDefinitions();
|
||||
inventory.LoadItemDefinitions();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user