Class CurrencyAndAmountGameValues
Inheritance
System.Object
CurrencyAndAmountGameValues
Implements
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Economy
Assembly: Eco.Gameplay.dll
Syntax
public class CurrencyAndAmountGameValues : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IDescribable
Constructors
CurrencyAndAmountGameValues()
Declaration
public CurrencyAndAmountGameValues()
Properties
Amount
Declaration
public GameValue<float> Amount { get; set; }
Property Value
Type | Description |
---|---|
GameValue<System.Single> |
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Currency
Declaration
public GameValue<Currency> Currency { get; set; }
Property Value
Type | Description |
---|---|
GameValue<Currency> |
Methods
Description()
Declaration
public LocString Description()
Returns
Type | Description |
---|---|
LocString |
DoTransferLoc(FormattableString, User, IContextObject, BankAccount, TransferType)
Try to pay the fee in the given currency, querying for the bank account source. Handles all errors and notifications.
Declaration
public Task<(bool, GameActionPack, float, Currency)> DoTransferLoc(FormattableString propName, User user, IContextObject context, BankAccount targetAccount, TransferType type)
Parameters
Type | Name | Description |
---|---|---|
System.FormattableString | propName | Name of the property as you want it displayed in the notifications, ie 'tuition fee'. It will be localized. |
User | user | The user making the payment. |
IContextObject | context | Context with which we query these params. |
BankAccount | targetAccount | Account that its paid into. |
TransferType | type | The kind of transfer it classifies as. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, GameActionPack, System.Single, Currency>> |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged