Show / Hide Table of Contents

Class CurrencyAndAmountGameValues

Inheritance
System.Object
CurrencyAndAmountGameValues
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IDescribable
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

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IDescribable

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾