Skip to main content

PurchaseResult

A class in Root.Township, Features.Main_Menu.Scripts.TalemShop.

Result of a Talem shop purchase: success, or a PurchaseError saying why it failed.

Constructors​

MemberWhat it is
PurchaseResult()Creates a PurchaseResult from error.
PurchaseResult(PurchaseError error)Creates a PurchaseResult from error.

Fields​

MemberWhat it is
PurchaseError ErrorWhy the purchase failed. Only meaningful when IsSuccess is false.
bool IsSuccessTrue when the purchase went through. The no-argument constructor sets it.

Used in​

Members of other types that take, return or hold a PurchaseResult: