Stores bank user data for the operating system.
More...
#include "OperatingSystemBankManager.h"
|
bool | UpdateFunds (const FText &Description, const FText &Remarks, const float &Amount, const int64 &AccountNumber) |
| Updates the funds for a bank account.
|
|
FORCEINLINE void | AddEntry (const FOperatingSystemBankAccount &Bank) |
| Adds a new bank entry to the operating system bank manager's list of bank accounts. The bank entry must be a valid bank account.
|
|
FORCEINLINE bool | RemoveEntry (const FName &BankName, FOperatingSystemBankAccount &RemovedAccount) |
| Removes a bank account entry with the specified bank name from the operating system bank manager's list of bank accounts.
|
|
FORCEINLINE bool | HasEntry (const FName &BankName, FOperatingSystemBankAccount &OutAccount) const |
| Checks if a bank entry with the specified bank name exists in the operating system bank manager's list of bank accounts.
|
|
FORCEINLINE bool | HasEntry (const int64 &AccNumber, FOperatingSystemBankAccount &OutAccount) const |
| Checks if a bank entry with the specified account number exists in the operating system bank manager's list of bank accounts.
|
|
FORCEINLINE bool | FindCreditCardByName (const FName CardName, FOperatingSystemCreditCard &OutCard) |
| Finds a credit card by name in the list of bank accounts managed by the operating system bank manager.
|
|
FORCEINLINE bool | FindCreditCardByNumber (const int64 CardNumber, FOperatingSystemCreditCard &OutCard) |
| Finds a credit card by its number in the list of bank accounts managed by the operating system bank manager.
|
|
Stores bank user data for the operating system.
◆ AddEntry()
Adds a new bank entry to the operating system bank manager's list of bank accounts. The bank entry must be a valid bank account.
- Parameters
-
Bank | The bank account to add. |
- Warning
- The bank account must be a valid bank account. If not, check assert is triggered.
◆ FindCreditCardByName()
FORCEINLINE bool FOperatingSystemBankUserData::FindCreditCardByName |
( |
const FName | CardName, |
|
|
FOperatingSystemCreditCard & | OutCard ) |
|
inline |
Finds a credit card by name in the list of bank accounts managed by the operating system bank manager.
- Parameters
-
CardName | The name of the credit card to find. |
OutCard | [out] The found credit card, if it exists. |
- Returns
- True if a credit card with the specified name is found and successfully assigned to OutCard, false otherwise.
◆ FindCreditCardByNumber()
FORCEINLINE bool FOperatingSystemBankUserData::FindCreditCardByNumber |
( |
const int64 | CardNumber, |
|
|
FOperatingSystemCreditCard & | OutCard ) |
|
inline |
Finds a credit card by its number in the list of bank accounts managed by the operating system bank manager.
- Parameters
-
CardNumber | The number of the credit card to find. |
OutCard | [out] The found credit card, if it exists. |
- Returns
- True if a credit card with the specified number is found and successfully assigned to OutCard, false otherwise.
◆ HasEntry() [1/2]
Checks if a bank entry with the specified bank name exists in the operating system bank manager's list of bank accounts.
- Parameters
-
BankName | The name of the bank account entry to check. |
OutAccount | [out] The bank account entry with the specified bank name, if found. |
- Returns
- True if a bank entry with the specified bank name exists, false otherwise.
◆ HasEntry() [2/2]
Checks if a bank entry with the specified account number exists in the operating system bank manager's list of bank accounts.
- Parameters
-
AccNumber | The account number of the bank entry to check. |
OutAccount | [out] The bank account entry with the specified account number if found. |
- Returns
- True if a bank entry with the specified account number exists, false otherwise.
◆ RemoveEntry()
Removes a bank account entry with the specified bank name from the operating system bank manager's list of bank accounts.
- Parameters
-
BankName | The name of the bank account entry to remove. |
RemovedAccount | [out] The removed bank account entry. |
- Returns
- True if the bank account entry was successfully removed, false otherwise.
◆ UpdateFunds()
bool FOperatingSystemBankUserData::UpdateFunds |
( |
const FText & | Description, |
|
|
const FText & | Remarks, |
|
|
const float & | Amount, |
|
|
const int64 & | AccountNumber ) |
Updates the funds for a bank account.
- Parameters
-
Description | The description of the transaction. |
Remarks | Additional remarks for the transaction. |
Amount | The amount to be updated. Negative value denotes withdrawal, positive value denotes deposit. |
AccountNumber | The account number to update the funds for. |
- Returns
- True if the funds were successfully updated, false otherwise.
The documentation for this struct was generated from the following files: