Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
This class represents a BIOS widget in the operating system simulator. More...
#include "OperatingSystemBiosWidget.h"
Public Member Functions | |
UOperatingSystemBiosWidget () | |
Default constructor for the UOperatingSystemBiosWidget class. | |
void | OnHardwareError (const FGenericError &Error) |
This method handles a hardware error in the BIOS widget. | |
void | SetParentMotherboard (TWeakObjectPtr< UOperatingSystemMBB > InMotherboard, TWeakObjectPtr< UOperatingSystemBIOS > OwningBIOS) |
Sets the parent motherboard and BIOS of the BIOS widget. | |
Protected Member Functions | |
virtual void | NativeConstruct () override |
void | K2_OnHardwareError (const FGenericError &Error) |
Protected Attributes | |
TObjectPtr< UOperatingSystemMBB > | ParentMotherboard |
TObjectPtr< UOperatingSystemBIOS > | ParentBIOS |
FGenericError | HardwareError |
This class represents a BIOS widget in the operating system simulator.
The BIOS widget is responsible for handling hardware errors and communicating with the motherboard and the BIOS. It provides the functionality to handle hardware errors and to set the parent motherboard. Additionally, it includes an event called when a hardware failure occurs.
UOperatingSystemBiosWidget::UOperatingSystemBiosWidget | ( | ) |
Default constructor for the UOperatingSystemBiosWidget class.
Initializes the ParentMotherboard pointer to nullptr and the HardwareError instance to a default generic error.
|
protected |
protected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs.
Error | [const FGenericError&] Error information |
|
overrideprotectedvirtual |
void UOperatingSystemBiosWidget::OnHardwareError | ( | const FGenericError & | Error | ) |
This method handles a hardware error in the BIOS widget.
When a hardware error occurs, this method is called to handle the error. It sets the hardware error to the provided error, and then calls the K2_OnHardwareError method to further handle the error.
Error | The hardware error object containing information about the error. |
void UOperatingSystemBiosWidget::SetParentMotherboard | ( | TWeakObjectPtr< UOperatingSystemMBB > | InMotherboard, |
TWeakObjectPtr< UOperatingSystemBIOS > | OwningBIOS ) |
Sets the parent motherboard and BIOS of the BIOS widget.
This method sets the parent motherboard and BIOS of the BIOS widget. The parent motherboard represents the hardware component that the BIOS widget is associated with, and the parent BIOS represents the BIOS component that owns the BIOS widget.
InMotherboard | The parent motherboard to set. It is represented as a weak object pointer to the UOperatingSystemMBB class. |
OwningBIOS | The parent BIOS to set. It is represented as a weak object pointer to the UOperatingSystemBIOS class. |
|
protected |
|
protected |
Represents a pointer to the parent BIOS object.
|
protected |
Represents a pointer to the parent motherboard object.