Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
#include "OperatingSystemBaseHardware.h"
Public Member Functions | |
UOperatingSystemBaseHardware () | |
FText | GetHardwareName () const |
FText | GetHardwareMadeBy () const |
FText | GetModelNumber () const |
FString | GetHardwareNameAsString () const |
Returns the name of the hardware as a string. | |
FGameplayTag | GetHardwareTag () const |
Returns the hardware tag associated with the hardware object. | |
Protected Member Functions | |
bool | Validate (FGenericError &OutError) const |
Validates the current state of the operating system hardware object. | |
virtual bool | OnValidate (FGenericError &OutError) const |
This method is called to validate the current state of the object. | |
bool | K2_OnValidate (FGenericError &OutError) const |
Protected Attributes | |
FText | Name |
FText | MadeBy |
FText | ModelNumber |
FGameplayTag | HardwareTag |
bool | bHasBlueprintValidateFunction |
Base class for operating system hardware.
This class represents a base class for operating system hardware objects. It contains properties and methods that are common for all types of hardware.
UOperatingSystemBaseHardware::UOperatingSystemBaseHardware | ( | ) |
|
inline |
Retrieves the manufacturer of the hardware.
|
inline |
Returns the name of the hardware.
|
inline |
Returns the name of the hardware as a string.
This method returns the name of the hardware object as a string. It converts the FText value of the name property to a string and returns it.
|
inline |
Returns the hardware tag associated with the hardware object.
This method returns the hardware tag associated with the hardware object. The hardware tag is a unique identifier that can be used to distinguish between different types of hardware. It is represented as a FGameplayTag object.
|
inline |
This method returns the model number of the hardware.
|
protected |
This method is called to validate the current state of the object. It is a BlueprintNativeEvent, which means that it can be overridden in Blueprint subclasses. You must NOT call super (or parent in Blueprint) on this event since native event will always return false.
OutError | A reference to a FGenericError object to receive any error messages if the validation fails. |
|
protectedvirtual |
This method is called to validate the current state of the object.
OutError | A reference to a FGenericError object to receive any error messages if the validation fails. |
Reimplemented in UOperatingSystemCPU, UOperatingSystemGPU, UOperatingSystemHDD, UOperatingSystemMBB, UOperatingSystemPSU, and UOperatingSystemRAM.
|
protected |
Validates the current state of the operating system hardware object.
This method is called to validate the current state of the operating system hardware object. It checks if the name and tag of the hardware are valid, and optionally calls the K2_On Validate or OnValidate method to perform additional validation.
OutError | A reference to a FGenericError object to receive any error messages if the validation fails. |
|
protected |
|
protected |
A tag that identifies this hardware
|
protected |
Which company made this?
|
protected |
A model number.
|
protected |
Name of this hardware.