Show / Hide Table of Contents

Class DaggerfallBankManager

Inheritance
Object
DaggerfallBankManager
Namespace: DaggerfallWorkshop.Game.Banking
Assembly: Assembly-CSharp.dll
Syntax
public static class DaggerfallBankManager

Fields

| Improve this Doc View Source

goldUnitWeightInKg

Declaration
public const float goldUnitWeightInKg = 0.0025F
Field Value
Type Description
Single
| Improve this Doc View Source

loanMaxPerLevel

Declaration
public static int loanMaxPerLevel
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

BankAccounts

Declaration
public static BankRecordData_v1[] BankAccounts { get; set; }
Property Value
Type Description
BankRecordData_v1[]
| Improve this Doc View Source

Houses

Declaration
public static HouseData_v1[] Houses { get; set; }
Property Value
Type Description
HouseData_v1[]
| Improve this Doc View Source

OwnedHouseKey

Declaration
public static int OwnedHouseKey { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

OwnedShip

Declaration
public static ShipType OwnedShip { get; set; }
Property Value
Type Description
ShipType
| Improve this Doc View Source

OwnsHouse

Declaration
public static bool OwnsHouse { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

OwnsShip

Declaration
public static bool OwnsShip { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

AllocateHouseToPlayer(BuildingSummary, Int32)

Declaration
public static void AllocateHouseToPlayer(BuildingSummary house, int regionIndex)
Parameters
Type Name Description
BuildingSummary house
Int32 regionIndex
| Improve this Doc View Source

AssignShipToPlayer(ShipType)

Declaration
public static void AssignShipToPlayer(ShipType shipType)
Parameters
Type Name Description
ShipType shipType
| Improve this Doc View Source

DepositAll_LOC(Int32)

Declaration
public static TransactionResult DepositAll_LOC(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

DepositGold(Int32, Int32)

Declaration
public static TransactionResult DepositGold(int amount, int regionIndex)
Parameters
Type Name Description
Int32 amount
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

GetAccountTotal(Int32)

Gets amount of gold in specified region

Declaration
public static long GetAccountTotal(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
Int64
| Improve this Doc View Source

GetHousePrice(BuildingSummary)

Declaration
public static int GetHousePrice(BuildingSummary house)
Parameters
Type Name Description
BuildingSummary house
Returns
Type Description
Int32
| Improve this Doc View Source

GetHouseSellPrice(BuildingSummary)

Declaration
public static int GetHouseSellPrice(BuildingSummary house)
Parameters
Type Name Description
BuildingSummary house
Returns
Type Description
Int32
| Improve this Doc View Source

GetLoanDueDate(Int32)

Gets loan due date in classic time format for specified region

Declaration
public static long GetLoanDueDate(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
Int64
| Improve this Doc View Source

GetLoanDueDateString(Int32)

Declaration
public static string GetLoanDueDateString(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
String
| Improve this Doc View Source

GetLoanedTotal(Int32)

Gets the amount due for loan in specified region

Declaration
public static long GetLoanedTotal(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
Int64
| Improve this Doc View Source

GetShipCameraDist(ShipType)

Declaration
public static float GetShipCameraDist(ShipType ship)
Parameters
Type Name Description
ShipType ship
Returns
Type Description
Single
| Improve this Doc View Source

GetShipCoords()

Declaration
public static DFPosition GetShipCoords()
Returns
Type Description
DFPosition
| Improve this Doc View Source

GetShipModelId(ShipType)

Declaration
public static uint GetShipModelId(ShipType ship)
Parameters
Type Name Description
ShipType ship
Returns
Type Description
UInt32
| Improve this Doc View Source

GetShipPrice(ShipType)

Declaration
public static int GetShipPrice(ShipType ship)
Parameters
Type Name Description
ShipType ship
Returns
Type Description
Int32
| Improve this Doc View Source

GetShipSellPrice(ShipType)

Declaration
public static int GetShipSellPrice(ShipType ship)
Parameters
Type Name Description
ShipType ship
Returns
Type Description
Int32
| Improve this Doc View Source

HasDefaulted(Int32)

Declaration
public static bool HasDefaulted(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
Boolean
| Improve this Doc View Source

HasLoan(Int32)

Declaration
public static bool HasLoan(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
Boolean
| Improve this Doc View Source

IsHouseOwned(Int32)

Declaration
public static bool IsHouseOwned(int buildingKey)
Parameters
Type Name Description
Int32 buildingKey
Returns
Type Description
Boolean
| Improve this Doc View Source

MakeTransaction(TransactionType, Int32, Int32)

Declaration
public static void MakeTransaction(TransactionType type, int amount, int regionIndex)
Parameters
Type Name Description
TransactionType type
Int32 amount
Int32 regionIndex
| Improve this Doc View Source

PurchaseHouse(BuildingSummary, Int32)

Declaration
public static TransactionResult PurchaseHouse(BuildingSummary house, int regionIndex)
Parameters
Type Name Description
BuildingSummary house
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

PurchaseShip(ShipType, Int32)

Declaration
public static TransactionResult PurchaseShip(ShipType shipType, int regionIndex)
Parameters
Type Name Description
ShipType shipType
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

RaiseTransactionEvent(TransactionType, TransactionResult, Int32)

Declaration
public static void RaiseTransactionEvent(TransactionType type, TransactionResult result, int amount)
Parameters
Type Name Description
TransactionType type
TransactionResult result
Int32 amount
| Improve this Doc View Source

ReadNativeBankData(SaveTreeBaseRecord)

Declaration
public static void ReadNativeBankData(SaveTreeBaseRecord records)
Parameters
Type Name Description
SaveTreeBaseRecord records
| Improve this Doc View Source

ResetShip()

Declaration
public static void ResetShip()
| Improve this Doc View Source

SellHouse(Int32)

Declaration
public static TransactionResult SellHouse(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

SellShip(Int32)

Declaration
public static TransactionResult SellShip(int regionIndex)
Parameters
Type Name Description
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

SetDefaulted(Int32, Boolean)

Declaration
public static void SetDefaulted(int regionIndex, bool defaulted)
Parameters
Type Name Description
Int32 regionIndex
Boolean defaulted
| Improve this Doc View Source

SetupAccounts()

Declaration
public static void SetupAccounts()
| Improve this Doc View Source

SetupHouses()

Declaration
public static void SetupHouses()
| Improve this Doc View Source

Withdraw_LOC(Int32, Int32)

Declaration
public static TransactionResult Withdraw_LOC(int amount, int regionIndex)
Parameters
Type Name Description
Int32 amount
Int32 regionIndex
Returns
Type Description
TransactionResult
| Improve this Doc View Source

WithdrawGold(Int32, Int32)

Declaration
public static TransactionResult WithdrawGold(int amount, int regionIndex)
Parameters
Type Name Description
Int32 amount
Int32 regionIndex
Returns
Type Description
TransactionResult

Events

| Improve this Doc View Source

OnBorrowLoan

Declaration
public static event DaggerfallBankManager.Transaction OnBorrowLoan
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnBuyHouse

Declaration
public static event DaggerfallBankManager.Transaction OnBuyHouse
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnBuyShip

Declaration
public static event DaggerfallBankManager.Transaction OnBuyShip
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnDepositGold

Declaration
public static event DaggerfallBankManager.Transaction OnDepositGold
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnDepositLOC

Declaration
public static event DaggerfallBankManager.Transaction OnDepositLOC
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnRepayLoan

Declaration
public static event DaggerfallBankManager.Transaction OnRepayLoan
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnSellHouse

Declaration
public static event DaggerfallBankManager.Transaction OnSellHouse
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnSellShip

Declaration
public static event DaggerfallBankManager.Transaction OnSellShip
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnTransaction

Declaration
public static event DaggerfallBankManager.Transaction OnTransaction
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnWithdrawGold

Declaration
public static event DaggerfallBankManager.Transaction OnWithdrawGold
Event Type
Type Description
DaggerfallBankManager.Transaction
| Improve this Doc View Source

OnWithdrawLOC

Declaration
public static event DaggerfallBankManager.Transaction OnWithdrawLOC
Event Type
Type Description
DaggerfallBankManager.Transaction
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX