mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +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>();
|
Result.Pending = new Dictionary<int, Result>();
|
||||||
|
|
||||||
inventory.LoadItemDefinitions();
|
|
||||||
FetchItemDefinitions();
|
FetchItemDefinitions();
|
||||||
UpdatePrices();
|
UpdatePrices();
|
||||||
|
|
||||||
@ -198,12 +197,17 @@ public Definition CreateDefinition( int id )
|
|||||||
return new Definition( this, 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.
|
// Make sure item definitions are loaded, because we're going to be using them.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
inventory.LoadItemDefinitions();
|
||||||
|
|
||||||
var ids = inventory.GetItemDefinitionIDs();
|
var ids = inventory.GetItemDefinitionIDs();
|
||||||
if ( ids == null )
|
if ( ids == null )
|
||||||
return;
|
return;
|
||||||
@ -238,7 +242,6 @@ public void Update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
FetchItemDefinitions();
|
FetchItemDefinitions();
|
||||||
inventory.LoadItemDefinitions();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user