mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 07:35:55 +03:00
Fixed some SteamInventory methods not being public
This commit is contained in:
parent
1dc804c7ac
commit
6ecc68e5d7
@ -180,7 +180,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
/// or if you don't care about hacked clients granting arbitrary items.
|
/// or if you don't care about hacked clients granting arbitrary items.
|
||||||
/// This call can be disabled by a setting on Steamworks.
|
/// This call can be disabled by a setting on Steamworks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static async Task<InventoryResult?> GenerateItem( InventoryDef target, int amount )
|
public static async Task<InventoryResult?> GenerateItem( InventoryDef target, int amount )
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
var sresult = default( SteamInventoryResult_t );
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
/// You need to have set up the appropriate exchange rules in your item
|
/// You need to have set up the appropriate exchange rules in your item
|
||||||
/// definitions. This assumes all the items passed in aren't stacked.
|
/// definitions. This assumes all the items passed in aren't stacked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static async Task<InventoryResult?> CraftItem( InventoryItem[] list, InventoryDef target )
|
public static async Task<InventoryResult?> CraftItem( InventoryItem[] list, InventoryDef target )
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
var sresult = default( SteamInventoryResult_t );
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
/// You should call CheckResultSteamID on the result handle when it completes to verify
|
/// You should call CheckResultSteamID on the result handle when it completes to verify
|
||||||
/// that a remote player is not pretending to have a different user's inventory.
|
/// that a remote player is not pretending to have a different user's inventory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static async Task<InventoryResult?> DeserializeAsync( byte[] data, int dataLength = -1 )
|
public static async Task<InventoryResult?> DeserializeAsync( byte[] data, int dataLength = -1 )
|
||||||
{
|
{
|
||||||
if ( data == null )
|
if ( data == null )
|
||||||
throw new ArgumentException( "data should nto be null" );
|
throw new ArgumentException( "data should nto be null" );
|
||||||
|
Loading…
Reference in New Issue
Block a user