Show / Hide Table of Contents

Class FinanceManager

Inheritance
System.Object
FinanceManager
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Economy
Assembly: Eco.Gameplay.dll
Syntax
public class FinanceManager : Object, IController, IViewController, IHasUniversalID

Constructors

FinanceManager()

Declaration
public FinanceManager()

Fields

TransferSum

Declaration
public ThreadSafeDictionary<Currency, float> TransferSum
Field Value
Type Description
ThreadSafeDictionary<Currency, System.Single>

Properties

AllDebts

Declaration
public IEnumerable<Debt> AllDebts { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Debt>

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

TotalDebt

Declaration
public float TotalDebt { get; }
Property Value
Type Description
System.Single

Methods

AddDebt(Currency, String, String, Single, Single, Double, BankAccount)

Declaration
public Debt AddDebt(Currency currency, string lender, string borrower, float interestPercent, float paybackAmount, double dueDate, BankAccount payIntoAccount)
Parameters
Type Name Description
Currency currency
System.String lender
System.String borrower
System.Single interestPercent
System.Single paybackAmount
System.Double dueDate
BankAccount payIntoAccount
Returns
Type Description
Debt

DebtChanged()

Declaration
public void DebtChanged()

DebtsBetween(String, String)

Declaration
public IEnumerable<Debt> DebtsBetween(string lender, string borrower)
Parameters
Type Name Description
System.String lender
System.String borrower
Returns
Type Description
System.Collections.Generic.IEnumerable<Debt>

DescribeDebts(Currency)

Declaration
public string DescribeDebts(Currency currency)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.String

GetCurrencyDebt(Currency)

Declaration
public float GetCurrencyDebt(Currency currency)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

RemoveDebt(Debt)

Declaration
public void RemoveDebt(Debt debt)
Parameters
Type Name Description
Debt debt

Implements

IController
IViewController
IHasUniversalID

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