Class PurchasableDetailDefinition
Namespace: UnityEngine .GameFoundation
Assembly: solution.dll
Syntax
public class PurchasableDetailDefinition : BaseDetailDefinition
Constructors
Name | Description |
---|---|
Purchasable |
Sets up a detail for multiple price points and a single payout. Also has optional parameters for default source and destination overrides. |
Purchasable |
Sets up a detail for a single price and single payout. Also has optional parameters for default source and destination overrides. |
Properties
Name | Description |
---|---|
default |
Inventory to deposit into if OutputItem doesn't specify an inventory to deposit into. |
default |
Inventory to look into if InputItem doesn't specify an inventory to look into. |
payout | The output for this transaction |
Methods
Name | Description |
---|---|
Get |
Retrieve the price with the given id on this detail. Ideally this method should only be used when the developer knows the detail only has one price with the given id. If there are multiple prices with that id, it will simply return the first one, which is hard to determine exactly what it will be with multiple. |
Get |
Checks all prices for keys and returns an array of all keys with no duplicates. |
Get |
This is for getting all prices with a given id. |