Skip to content

UOperatingSystemBIOS

#include <OperatingSystemSimulator/Public/Core/OperatingSystemBIOS.h>
class UOperatingSystemBIOS

Defined in OperatingSystemBIOS.h:21

Inherits: UObject, FTickableGameObject

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBIOS["UOperatingSystemBIOS"]
  class UObject["UObject"]
  UObject <|-- UOperatingSystemBIOS
  class FTickableGameObject["FTickableGameObject"]
  FTickableGameObject <|-- UOperatingSystemBIOS
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBIOS["UOperatingSystemBIOS"]
  class UOperatingSystemBiosWidget["UOperatingSystemBiosWidget"]
  UOperatingSystemBIOS *-- UOperatingSystemBiosWidget
  class FOperatingSystemVersion["FOperatingSystemVersion"]
  UOperatingSystemBIOS *-- FOperatingSystemVersion
  class UOperatingSystemMBB["UOperatingSystemMBB"]
  UOperatingSystemBIOS *-- UOperatingSystemMBB
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBIOS {
    +UOperatingSystemBIOS()
    +InitBIOS(TWeakObjectPtr< UOperatingSystemMBB > ForMo bool
    +OpenBIOS() const
    +ToggleClock(const bool bTick)
    +GetBiosWidget() const UOperatingSystemBiosWidget() *
    +BiosWidgetClass : TSoftClassPtr< UOperatingSystemBiosWidge
    +Name : FText
    +Version : FOperatingSystemVersion()
    +Copyright : FText
    +ParentMotherboard : TWeakObjectPtr< UOperatingSystemMBB() >
    +bIsTickable : bool
    +BiosWidget : TObjectPtr< UOperatingSystemBiosWidget()
    +TickElapsedTime : float
  }

The UOperatingSystemBIOS class represents the BIOS of an operating system. It provides functionalities for initializing the BIOS, opening the BIOS widget, and toggling the clock.

ReturnNameDescription
UOperatingSystemBIOS
boolInitBIOSInitializes the operating system BIOS.
voidOpenBIOS constOpens the BIOS widget
voidToggleClockToggles the clock of the operating system BIOS.
UOperatingSystemBiosWidget *GetBiosWidget constRetrieves the BIOS widget associated with the operating system BIOS.

UOperatingSystemBIOS()
bool InitBIOS(TWeakObjectPtr< UOperatingSystemMBB > ForMotherboard, FGenericError & OutError)

Defined in OperatingSystemBIOS.h:100 Initializes the operating system BIOS.

This method initializes the operating system BIOS by creating the BIOS widget and setting the parent motherboard. If the BIOS widget class is null, it returns false and sets the error message in the OutError parameter. If the BIOS widget is not valid, it creates the BIOS widget using the CreateFromSoftWidget method.

  • ForMotherboard A weak reference to the motherboard that owns the BIOS.

  • OutError The error message in case of failure to initialize the BIOS.

True if the BIOS was successfully initialized, false otherwise.


const

void OpenBIOS() const

Defined in OperatingSystemBIOS.h:103 Opens the BIOS widget


void ToggleClock(const bool bTick)

Defined in OperatingSystemBIOS.h:113 Toggles the clock of the operating system BIOS.

This method toggles the clock of the operating system BIOS. When the clock is toggled on, the BIOS will be updated every frame and can perform actions based on the elapsed time. When the clock is toggled off, the BIOS will not be updated and will not perform any actions based on the elapsed time.

  • bTick Whether to toggle the clock on (true) or off (false).

const

UOperatingSystemBiosWidget * GetBiosWidget() const

Defined in OperatingSystemBIOS.h:133 Retrieves the BIOS widget associated with the operating system BIOS.

This method returns the BIOS widget associated with the operating system BIOS. The BIOS widget is used for interacting with the BIOS functionalities.

The BIOS widget associated with the operating system BIOS.

ReturnNameDescription
TSoftClassPtr< UOperatingSystemBiosWidget >BiosWidgetClassRepresents the class of the BIOS widget that provides the graphical user interface for the BIOS functionality.
FTextNameBIOS name
FOperatingSystemVersionVersionBIOS version
FTextCopyrightCopyright text of the operating system BIOS.
TWeakObjectPtr< UOperatingSystemMBB >ParentMotherboardWeak reference to the motherboard that owns this BIOS.
boolbIsTickableIndicates whether the operating system BIOS is tickable.
TObjectPtr< UOperatingSystemBiosWidget >BiosWidgetRepresents the BIOS widget that provides the graphical user interface for the BIOS functionality.
floatTickElapsedTimeRepresents the elapsed time since the last tick in seconds.

TSoftClassPtr< UOperatingSystemBiosWidget > BiosWidgetClass

Defined in OperatingSystemBIOS.h:29 Represents the class of the BIOS widget that provides the graphical user interface for the BIOS functionality.


FText Name

Defined in OperatingSystemBIOS.h:33 BIOS name


FOperatingSystemVersion Version

Defined in OperatingSystemBIOS.h:37 BIOS version


FText Copyright

Defined in OperatingSystemBIOS.h:41 Copyright text of the operating system BIOS.


TWeakObjectPtr< UOperatingSystemMBB > ParentMotherboard

Defined in OperatingSystemBIOS.h:45 Weak reference to the motherboard that owns this BIOS.


bool bIsTickable

Defined in OperatingSystemBIOS.h:59 Indicates whether the operating system BIOS is tickable.

This variable determines whether the operating system BIOS object can tick or not. Tickable objects are updated every frame and can perform actions based on the elapsed time. Setting this to true will enable the BIOS object to tick, and setting it to false will disable ticking.

The default value is false.

See also: UOperatingSystemBIOS::ToggleClock()


TObjectPtr< UOperatingSystemBiosWidget > BiosWidget

Defined in OperatingSystemBIOS.h:70 Represents the BIOS widget that provides the graphical user interface for the BIOS functionality.

The BIOS widget of type [UOperatingSystemBiosWidget](/api-reference/operating-system-simulator/widgets/uoperatingsystembioswidget/#uoperatingsystembioswidget) is used for displaying and interacting with the BIOS functionality in the graphical user interface. This variable holds an instance of the BIOS widget.

See also: UOperatingSystemBiosWidget


float TickElapsedTime

Defined in OperatingSystemBIOS.h:82 Represents the elapsed time since the last tick in seconds.

The TickElapsedTime variable is used to keep track of the time elapsed since the last tick. It is a float value that represents the time in seconds. This variable is updated during each tick of the operating system BIOS and is used for performing actions based on the elapsed time, such as triggering events or updating the state of the BIOS.

See also: UOperatingSystemBIOS::Tick()