Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
FOperatingSystemBankUserData Struct Reference

Stores bank user data for the operating system. More...

#include "OperatingSystemBankManager.h"

Public Member Functions

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.
 

Detailed Description

Stores bank user data for the operating system.

Member Function Documentation

◆ AddEntry()

FORCEINLINE void FOperatingSystemBankUserData::AddEntry ( const FOperatingSystemBankAccount & Bank)
inline

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
BankThe bank account to add.
Warning
The bank account must be a valid bank account. If not, check assert is triggered.
Here is the call graph for this function:

◆ 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
CardNameThe 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.
Here is the call graph for this function:

◆ 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
CardNumberThe 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.
Here is the call graph for this function:

◆ HasEntry() [1/2]

FORCEINLINE bool FOperatingSystemBankUserData::HasEntry ( const FName & BankName,
FOperatingSystemBankAccount & OutAccount ) const
inline

Checks if a bank entry with the specified bank name exists in the operating system bank manager's list of bank accounts.

Parameters
BankNameThe 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.
Here is the call graph for this function:

◆ HasEntry() [2/2]

FORCEINLINE bool FOperatingSystemBankUserData::HasEntry ( const int64 & AccNumber,
FOperatingSystemBankAccount & OutAccount ) const
inline

Checks if a bank entry with the specified account number exists in the operating system bank manager's list of bank accounts.

Parameters
AccNumberThe 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.
Here is the call graph for this function:

◆ RemoveEntry()

FORCEINLINE bool FOperatingSystemBankUserData::RemoveEntry ( const FName & BankName,
FOperatingSystemBankAccount & RemovedAccount )
inline

Removes a bank account entry with the specified bank name from the operating system bank manager's list of bank accounts.

Parameters
BankNameThe 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
DescriptionThe description of the transaction.
RemarksAdditional remarks for the transaction.
AmountThe amount to be updated. Negative value denotes withdrawal, positive value denotes deposit.
AccountNumberThe account number to update the funds for.
Returns
True if the funds were successfully updated, false otherwise.
Here is the call graph for this function:

The documentation for this struct was generated from the following files: