Class PlayerInventory
Obsolete, please use EconomyService.Instance.PlayerInventory
Inherited Members
Namespace: Unity.Services.Economy
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)
Obsolete, please use EconomyService.Instance.PlayerInventory
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
Type | Name | Description |
---|---|---|
string | inventoryItemId | Obsolete |
PlayerInventory.AddInventoryItemOptions | options | Obsolete |
Returns
Type | Description |
---|---|
Task<PlayersInventoryItem> | Obsolete |
DeletePlayersInventoryItemAsync(string, DeletePlayersInventoryItemOptions)
Obsolete, please use EconomyService.Instance.PlayerInventory
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
Type | Name | Description |
---|---|---|
string | playersInventoryItemId | Obsolete |
PlayerInventory.DeletePlayersInventoryItemOptions | options | Obsolete |
Returns
Type | Description |
---|---|
Task | Obsolete |
GetInventoryAsync(GetInventoryOptions)
Obsolete, please use EconomyService.Instance.PlayerInventory
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
Type | Name | Description |
---|---|---|
PlayerInventory.GetInventoryOptions | options | Obsolete |
Returns
Type | Description |
---|---|
Task<GetInventoryResult> | Obsolete |
UpdatePlayersInventoryItemAsync(string, Dictionary<string, object>, UpdatePlayersInventoryItemOptions)
Obsolete, please use EconomyService.Instance.PlayerInventory
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
Type | Name | Description |
---|---|---|
string | playersInventoryItemId | Obsolete |
Dictionary<string, object> | instanceData | Obsolete |
PlayerInventory.UpdatePlayersInventoryItemOptions | options | Obsolete |
Returns
Type | Description |
---|---|
Task<PlayersInventoryItem> | Obsolete |