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

Structure representing a bank setting in the operating system. More...

#include "OperatingSystemBankSetting.h"

Inheritance diagram for FOperatingSystemBankSetting:
[legend]
Collaboration diagram for FOperatingSystemBankSetting:
[legend]

Public Member Functions

FORCEINLINE bool IsValid () const
 Checks if the bank setting is valid.
 
FORCEINLINE bool operator== (const FOperatingSystemBankSetting &Other) const
 
FORCEINLINE bool operator!= (const FOperatingSystemBankSetting &Other) const
 
 FOperatingSystemBankSetting ()
 Default constructor for initializing an instance of FOperatingSystemBankSetting.
 

Static Public Member Functions

static FORCEINLINE int64 GenerateAccountNumber ()
 Generates a random account number within the range defined by ACC_MIN and ACC_MAX.
 

Public Attributes

FName BankName
 
FName BankIdentifier
 
FName CurrencyShortCode
 
float TransactionChargePercentage
 Represents the transaction charge percentage for a bank setting in the operating system. The value should be between 0 and 70. It is used to calculate the transaction charge for a given amount.
 
TSoftObjectPtr< UObject > Icon
 Represents the icon associated with a bank setting in the operating system.
 

Static Public Attributes

static constexpr int64 ACC_MIN
 Minimum account number for a bank setting in the operating system.
 
static constexpr int64 ACC_MAX
 Maximum account number for a bank setting in the operating system.
 

Friends

uint32 GetTypeHash (const FOperatingSystemBankSetting &Other)
 Calculates the hash value for an instance of FOperatingSystemBankSetting.
 

Detailed Description

Structure representing a bank setting in the operating system.

Constructor & Destructor Documentation

◆ FOperatingSystemBankSetting()

FOperatingSystemBankSetting::FOperatingSystemBankSetting ( )
inline

Default constructor for initializing an instance of FOperatingSystemBankSetting.

This constructor initializes the member variables of the FOperatingSystemBankSetting struct to their default values.

  • BankName: NAME_None
  • BankIdentifier: NAME_None
  • CurrencyShortCode: NAME_None
  • TransactionChargePercentage: A random value between 0.02 and 0.2, generated using FMath::FRandRange(0.02, 0.2)
  • Icon: nullptr

Member Function Documentation

◆ GenerateAccountNumber()

static FORCEINLINE int64 FOperatingSystemBankSetting::GenerateAccountNumber ( )
inlinestatic

Generates a random account number within the range defined by ACC_MIN and ACC_MAX.

Returns
A randomly generated account number.
See also
FOperatingSystemBankSettings::ACC_MIN
FOperatingSystemBankSettings::ACC_MAX
Here is the call graph for this function:

◆ IsValid()

FORCEINLINE bool FOperatingSystemBankSetting::IsValid ( ) const
inline

Checks if the bank setting is valid.

A bank setting is considered valid if the following conditions are met:

  • BankName is not equal to NAME_None
  • BankIdentifier is not equal to NAME_None
  • CurrencyShortCode is not equal to NAME_None
  • TransactionChargePercentage is greater than or equal to 0 and less than or equal to 99
Returns
True if the bank setting is valid, false otherwise.
See also
FOperatingSystemBankSetting
FOperatingSystemBankSetting::BankName
FOperatingSystemBankSetting::BankIdentifier
FOperatingSystemBankSetting::CurrencyShortCode
FOperatingSystemBankSetting::TransactionChargePercentage
Here is the caller graph for this function:

◆ operator!=()

FORCEINLINE bool FOperatingSystemBankSetting::operator!= ( const FOperatingSystemBankSetting & Other) const
inline

◆ operator==()

FORCEINLINE bool FOperatingSystemBankSetting::operator== ( const FOperatingSystemBankSetting & Other) const
inline

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FOperatingSystemBankSetting & Other)
friend

Calculates the hash value for an instance of FOperatingSystemBankSetting.

The hash value is calculated using the xor operator on the hash values of the individual properties of FOperatingSystemBankSetting.

Parameters
Other- The FOperatingSystemBankSetting instance for which the hash value should be calculated.
Returns
The hash value of the FOperatingSystemBankSetting instance.
See also
FOperatingSystemBankSetting
GetTypeHash()
^ (xor operator)

Member Data Documentation

◆ ACC_MAX

constexpr int64 FOperatingSystemBankSetting::ACC_MAX
staticconstexpr

Maximum account number for a bank setting in the operating system.

This value represents the maximum allowable account number for a bank setting in the operating system. The account number should be less than or equal to this value.

See also
FOperatingSystemBankSetting
FOperatingSystemBankSetting::GenerateAccountNumber()

◆ ACC_MIN

constexpr int64 FOperatingSystemBankSetting::ACC_MIN
staticconstexpr

Minimum account number for a bank setting in the operating system.

This value represents the minimum allowable account number for a bank setting in the operating system. The account number should be greater than or equal to this value.

◆ BankIdentifier

FName FOperatingSystemBankSetting::BankIdentifier

A unique name for this bank. Must be unique and non empty.

◆ BankName

FName FOperatingSystemBankSetting::BankName

Represents the name of the bank. Cannot be empty.

◆ CurrencyShortCode

FName FOperatingSystemBankSetting::CurrencyShortCode

Short code is used to identify a currency. It must be unique and non-empty. E.g: USD, INR etc.

◆ Icon

TSoftObjectPtr<UObject> FOperatingSystemBankSetting::Icon

Represents the icon associated with a bank setting in the operating system.

The icon is a soft object pointer to a UObject. It is used to display a thumbnail image and is allowed to be of types Texture or MaterialInterface.

◆ TransactionChargePercentage

float FOperatingSystemBankSetting::TransactionChargePercentage

Represents the transaction charge percentage for a bank setting in the operating system. The value should be between 0 and 70. It is used to calculate the transaction charge for a given amount.

See also
FOperatingSystemBankSetting
UOperatingSystemStatics::CalculatePercentageForValue()
Invariant
TransactionChargePercentage >= 0 && TransactionChargePercentage <= 70

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