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<Output |
Constructor for setting up a payout with multiple outputs. |
Payout(Output |
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 |
---|---|
Get |
Array of OutputItems to be paid out. |
Get |
Puts all payout items into the given list. |
Invoke |
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. |