Class PlayerInventory
Inheritance
PlayerInventory
Assembly: Unity.Services.Economy.dll
Syntax
[Obsolete("The interface provided by Economy.PlayerInventory has been replaced by EconomyService.Instance.PlayerInventory, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public class PlayerInventory
Methods
AddInventoryItemAsync(string, AddInventoryItemOptions)
Declaration
[Obsolete("The interface provided by Economy.PlayerInventory.AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public Task<PlayersInventoryItem> AddInventoryItemAsync(string inventoryItemId, PlayerInventory.AddInventoryItemOptions options = null)
Parameters
Returns
DeletePlayersInventoryItemAsync(string, DeletePlayersInventoryItemOptions)
Declaration
[Obsolete("The interface provided by Economy.PlayerInventory.DeletePlayersInventoryItemAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.DeletePlayersInventoryItemAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public Task DeletePlayersInventoryItemAsync(string playersInventoryItemId, PlayerInventory.DeletePlayersInventoryItemOptions options = null)
Parameters
Returns
GetInventoryAsync(GetInventoryOptions)
Declaration
[Obsolete("The interface provided by Economy.PlayerInventory.GetInventoryAsync(GetInventoryOptions options) has been replaced by EconomyService.Instance.PlayerInventory.GetInventoryAsync(GetInventoryOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public Task<GetInventoryResult> GetInventoryAsync(PlayerInventory.GetInventoryOptions options = null)
Parameters
Returns
UpdatePlayersInventoryItemAsync(string, Dictionary<string, object>, UpdatePlayersInventoryItemOptions)
Declaration
[Obsolete("The interface provided by Economy.PlayerInventory.UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public Task<PlayersInventoryItem> UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, PlayerInventory.UpdatePlayersInventoryItemOptions options = null)
Parameters
Returns