Class Payout
Represents a set of items to grant for a successful transaction.
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public class Payout
Constructors
Name | Description |
---|---|
Payout(List<OutputItem>, PayoutEvent) | Constructor for setting up a payout with multiple outputs. |
Payout(OutputItem, PayoutEvent) | Constructor for setting up a payout with a single output. Many payouts will be simple 1 items so this constructor allows easy setup for that without need of an external list. |
Payout(Payout) | Copy constructor for setting up a new payout based off of an existing one. |
Methods
Name | Description |
---|---|
GetPayoutItems() | Array of OutputItems to be paid out. |
GetPayoutItems(List<OutputItem>) | Puts all payout items into the given list. |
InvokePayoutEvent() | Simply invokes the payout event. This ensures other classes will only be able to trigger the event and not be able to do things like clear it. |