Show / Hide Table of Contents

Class MoneyTransferBase_LegalAction

Inheritance
System.Object
LegalAction
MoneyTransferBase_LegalAction
TaxPayBase_LegalAction
TransferToAccount_LegalAction
Implements
System.ComponentModel.INotifyPropertyChanged
IExecutiveAction
IController
IViewController
IHasUniversalID
IDescribable
ICustomValidity
IValidity
Inherited Members
LegalAction.Description()
LegalAction.PerformAndProcessResult(Law, GameAction, AccountChangeSet)
LegalAction.ContainsAction(Type)
LegalAction.DescribeForNotification(Law, GameAction)
LegalAction.InfoboxOnSuccess
LegalAction.ControllerID
LegalAction.PropertyChanged
Namespace: Eco.Gameplay.Civics.Laws.LegalActions.Money
Assembly: Eco.Gameplay.dll
Syntax
public abstract class MoneyTransferBase_LegalAction : LegalAction, INotifyPropertyChanged, IExecutiveAction, IController, IViewController, IHasUniversalID, IDescribable, ICustomValidity, IValidity

Constructors

MoneyTransferBase_LegalAction()

Declaration
protected MoneyTransferBase_LegalAction()

Properties

Amount

Declaration
public GameValue<float> Amount { get; set; }
Property Value
Type Description
GameValue<System.Single>

Currency

Declaration
public GameValue<Currency> Currency { get; set; }
Property Value
Type Description
GameValue<Currency>

PreventIfUnableToPay

Declaration
public GameValue<bool> PreventIfUnableToPay { get; set; }
Property Value
Type Description
GameValue<System.Boolean>

Methods

CheckJurisdiction(Eval<BankAccount>, Settlement, Boolean, out LocString)

We check whether the specified account can be used with the specified context and if not we return false and an error message.

Declaration
protected bool CheckJurisdiction(Eval<BankAccount> account, Settlement jurisdictionSettlement, bool mustBeGovernmentAccount, out LocString errorMessage)
Parameters
Type Name Description
Eval<BankAccount> account
Settlement jurisdictionSettlement
System.Boolean mustBeGovernmentAccount
LocString errorMessage
Returns
Type Description
System.Boolean

DescribeUnableToPay()

Declaration
protected LocString DescribeUnableToPay()
Returns
Type Description
LocString

DoTransfer(LocString, IContextObject, Settlement, Single, Currency, Boolean, AccountChangeSet)

Declaration
protected abstract PostResult DoTransfer(LocString description, IContextObject context, Settlement jurisdictionSettlement, float val, Currency currency, bool preventIfUnableToPay, AccountChangeSet acc)
Parameters
Type Name Description
LocString description
IContextObject context
Settlement jurisdictionSettlement
System.Single val
Currency currency
System.Boolean preventIfUnableToPay
AccountChangeSet acc
Returns
Type Description
PostResult

Perform(Law, GameAction, AccountChangeSet)

Declaration
protected override PostResult Perform(Law law, GameAction action, AccountChangeSet acc)
Parameters
Type Name Description
Law law
GameAction action
AccountChangeSet acc
Returns
Type Description
PostResult
Overrides
LegalAction.Perform(Law, GameAction, AccountChangeSet)

PerformExecutiveAction(User, IContextObject, Settlement, AccountChangeSet)

Declaration
public PostResult PerformExecutiveAction(User user, IContextObject context, Settlement jurisdictionSettlement, AccountChangeSet acc)
Parameters
Type Name Description
User user
IContextObject context
Settlement jurisdictionSettlement
AccountChangeSet acc
Returns
Type Description
PostResult

Valid()

Declaration
public Result Valid()
Returns
Type Description
Result

Implements

System.ComponentModel.INotifyPropertyChanged
IExecutiveAction
IController
IViewController
IHasUniversalID
IDescribable
ICustomValidity
IValidity

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
☀
☾