Class BankAccountManager
Inheritance
System.Object
BankAccountManager
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class BankAccountManager : Singleton<BankAccountManager>, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
BankAccountManager()
Declaration
public BankAccountManager()
Fields
MaxAccountsPerUser
Declaration
public int MaxAccountsPerUser
Field Value
Type |
Description |
System.Int32 |
|
OnBankAccountChanged
Declaration
public ThreadSafeAction OnBankAccountChanged
Field Value
Properties
Accounts
Declaration
public IEnumerable<BankAccount> Accounts { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<BankAccount> |
|
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Registrar
Declaration
public Registrar<BankAccount> Registrar { get; }
Property Value
Methods
AddAccountManager(User, BankAccount, User)
Declaration
[ChatSubCommand]
public static void AddAccountManager(User user, BankAccount account, User target)
Parameters
AddAccountUser(User, BankAccount, User)
Declaration
[ChatSubCommand]
public static void AddAccountUser(User user, BankAccount account, User target)
Parameters
CreateAccount(User, String)
Declaration
[ChatSubCommand]
public static void CreateAccount(User user, string name = null)
Parameters
Type |
Name |
Description |
User |
user |
|
System.String |
name |
|
DeleteAccount(User, BankAccount)
Declaration
[ChatSubCommand]
public static void DeleteAccount(User user, BankAccount account)
Parameters
DirectTransfer(User, BankAccount, BankAccount, Currency, Single)
Declaration
public Result DirectTransfer(User user, BankAccount source, BankAccount target, Currency currency, float amount)
Parameters
Returns
DisplayGovernmentAccounts(Player, Settlement)
Declaration
public void DisplayGovernmentAccounts(Player player, Settlement settlement)
Parameters
Escrow()
Declaration
public BankAccount Escrow()
Returns
GetAccountsForCurrency(Currency)
Declaration
public IEnumerable<(BankAccount, CurrencyHolding)> GetAccountsForCurrency(Currency currency)
Parameters
Returns
GetAccountsOfBackedCurrency()
Return a tuple of accounts and holdings for all backed currencies.
Declaration
public IEnumerable<(BankAccount, CurrencyHolding)> GetAccountsOfBackedCurrency()
Returns
GetBankAccount(Int32)
Declaration
public BankAccount GetBankAccount(int accountID)
Parameters
Type |
Name |
Description |
System.Int32 |
accountID |
|
Returns
GetBankAccount(Int32, User, AccountAccess)
Declaration
public BankAccount GetBankAccount(int accountID, User user, AccountAccess access)
Parameters
Returns
GetPersonalBankAccount(String)
Declaration
public PersonalBankAccount GetPersonalBankAccount(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Initialize()
Declaration
RemoveAccountManager(User, BankAccount, User)
Declaration
[ChatSubCommand]
public static void RemoveAccountManager(User user, BankAccount account, User target)
Parameters
RemoveAccountUser(User, BankAccount, User)
Declaration
[ChatSubCommand]
public static void RemoveAccountUser(User user, BankAccount account, User target)
Parameters
SetAccountOwner(User, BankAccount, User)
Declaration
[ChatSubCommand]
public static void SetAccountOwner(User user, BankAccount account, User target)
Parameters
SpawnMoney(Currency, User, Single)
Declaration
public void SpawnMoney(Currency currency, User user, float amount)
Parameters
Type |
Name |
Description |
Currency |
currency |
|
User |
user |
|
System.Single |
amount |
|
Treasury()
Declaration
public BankAccount Treasury()
Returns
TryCreateUserAccount(User)
Create a personal bank account for them with infinite amount of that currency.
Declaration
public void TryCreateUserAccount(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods