AOperatingSystemDeviceActor
#include <OperatingSystemSimulator/Public/Devices/OperatingSystemDeviceActor.h>class AOperatingSystemDeviceActorDefined in OperatingSystemDeviceActor.h:33
Inherits:
AActorSubclassed by:AOperatingSystemPortableDeviceActor
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AOperatingSystemDeviceActor["AOperatingSystemDeviceActor"]
class AActor["AActor"]
AActor <|-- AOperatingSystemDeviceActor
class AOperatingSystemPortableDeviceActor["AOperatingSystemPortableDeviceActor"]
AOperatingSystemDeviceActor <|-- AOperatingSystemPortableDeviceActor
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AOperatingSystemDeviceActor["AOperatingSystemDeviceActor"]
class UOperatingSystemBaseDevice["UOperatingSystemBaseDevice"]
AOperatingSystemDeviceActor *-- UOperatingSystemBaseDevice
class UOperatingSystemSaveGame["UOperatingSystemSaveGame"]
AOperatingSystemDeviceActor *-- UOperatingSystemSaveGame
class UOperatingSystemDeviceMessenger["UOperatingSystemDeviceMessenger"]
AOperatingSystemDeviceActor *-- UOperatingSystemDeviceMessenger
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class AOperatingSystemDeviceActor {
+OnDeviceCreated : FOperatingSystemSimpleDelegate
+OnOperatingSystemStarted : FOperatingSystemSimpleDelegate
+OnValidate(FGenericError &OutError)
+CreateDevice(FGenericError &OutError)
+CurrentDeviceDestroyed()
+RestartDevice()
+WidgetChanged(UUserWidget *ChangedWidget)
+OnShowBlueScreen(const float &OnScreenTime)
+StopMediaAudio() const
+GetHardwareByTag(const FGameplayTag &TestTag) const UOperatingSystemBaseHardware() *
+SetAddWidgetsToScreen(const EOperatingSystemWidgetSet Method)
+ClearWidgetFromScreen() const
+RefreshWidget() const
+IsPortableDevice() const bool
+BeginDestroyMessenger()
+FinishDestroyMessenger()
+BeginOperatingSystemSessionEnd(const bool bRestart)
+FinishOperatingSystemSessionEnd(const bool bRestart)
+OnSaveGame(FOperatingSystemDeviceSaveLoad &SaveData)
+OnLoadGame(const FOperatingSystemDeviceSaveLoad &LoadD
+MainComponent : TObjectPtr< USceneComponent >
+MediaSoundComponent : TObjectPtr< UMediaSoundComponent >
+DeviceTag : FGameplayTag
+DeviceClass : TSoftClassPtr< UOperatingSystemBaseDevic
+bCreateDeviceOnBeginPlay : uint8
+bAddWidgetsToScreen : uint8
+bExitWhenDeviceIsDestroyed : uint8
+bCanSaveGame : uint8
+SaveGameClass : TSoftClassPtr< UOperatingSystemSaveGame(
+MessengerClass : TSoftClassPtr< UOperatingSystemDeviceMes
+LoadGameInstance : TObjectPtr< UOperatingSystemSaveGame() >
+PlayerController : TWeakObjectPtr< APlayerController >
+OnNewDeviceCreated(FGenericError &OutError)
+OnBeginOperatingSystemSessionEnd(const bool bIsRestarting)
+OnFinishOperatingSystemSessionEnd(const bool bWasRestart)
+IsPortableDeviceImpl() const bool
+K2_CreateDevice(FGenericError &OutError) bool
+K2_OnCurrentDeviceDestroyed()
+K2_OnWidgetChanged(UUserWidget *ChangedWidget)
+K2_OnBlueScreenShow(const float &OnScreenTime)
+K2_OnBeginOperatingSystemShutdown()
+K2_OnFinishOperatingSystemShutdown()
+K2_OnBeginOperatingSystemRestart()
+K2_OnFinishOperatingSystemRestart()
+DeviceMessenger : TObjectPtr< UOperatingSystemDeviceMessen
+CurrentDevice : TObjectPtr< UOperatingSystemBaseDevice()
+UniqueID : FGuid
+Internal_OnValidate(FGenericError &OutError)
+Internal_CreateDeviceManager()
}
An operating system device actor that user can place in world.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FOperatingSystemSimpleDelegate | OnDeviceCreated | Event raised when a new device is created. |
FOperatingSystemSimpleDelegate | OnOperatingSystemStarted | An event that is raised when Operating System starts in this device. |
OnDeviceCreated
Section titled “OnDeviceCreated”FOperatingSystemSimpleDelegate OnDeviceCreatedDefined in OperatingSystemDeviceActor.h:127 Event raised when a new device is created.
This event is dispatched when a new device is created and associated with the operating system device actor. Subscribers can listen to this event to perform any necessary actions when a new device is created.
Example usage:
void OnNewDeviceCreated(){ // Perform actions when a new device is created}
// Subscribe to the OnDeviceCreated eventMyOperatingSystemDeviceActorInstance->OnDeviceCreated.AddDynamic(this, &AActorClass::OnNewDeviceCreated);Referenced by
Section titled “Referenced by”OnOperatingSystemStarted
Section titled “OnOperatingSystemStarted”FOperatingSystemSimpleDelegate OnOperatingSystemStartedDefined in OperatingSystemDeviceActor.h:131 An event that is raised when Operating System starts in this device.
Referenced by
Section titled “Referenced by”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
void | OnValidate virtual inline | This method is called to validate the object’s state. |
void | CreateDevice | Creates a new device. |
void | CurrentDeviceDestroyed | Method to handle the destruction of the current device. |
void | RestartDevice | Restarts the device. |
void | WidgetChanged | Handles the event when a widget is changed. |
void | OnShowBlueScreen | Called when the blue screen should be shown on the operating system device. |
void | StopMediaAudio const | Stops the media audio playback. |
UOperatingSystemBaseHardware * | GetHardwareByTag const | Retrieves the hardware by the specified tag. |
void | SetAddWidgetsToScreen | Sets the method for adding widgets to the screen. |
void | ClearWidgetFromScreen const | Clears the widget from the screen. |
void | RefreshWidget const | Checks if the current device is valid and then calls the ReApplyWidget() method on the current device. |
bool | IsPortableDevice const inline | Determines whether the operating system device actor is a portable device. |
void | BeginDestroyMessenger | Begins the destruction process for the messenger associated with the operating system device actor. |
void | FinishDestroyMessenger | A method to finish the destruction of the operating system device actor. |
void | BeginOperatingSystemSessionEnd | |
void | FinishOperatingSystemSessionEnd | |
void | OnSaveGame virtual inline | Saves the state of the operating system device in the provided save data. |
void | OnLoadGame virtual inline | Callback method called when loading a game. |
OnValidate
Section titled “OnValidate”virtual inline
virtual inline void OnValidate(FGenericError & OutError)Defined in OperatingSystemDeviceActor.h:156 This method is called to validate the object’s state.
This method should be implemented by derived classes to validate the state of the object. If any errors are found during the validation, they should be added to the provided OutError parameter.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object, which is used to store any errors found during validation.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”CreateDevice
Section titled “CreateDevice”void CreateDevice(FGenericError & OutError)Defined in OperatingSystemDeviceActor.h:185 Creates a new device.
This method creates a new device based on the specified class and instance. If the ‘CurrentDevice’ member variable is already set, an error will be returned and no device will be created. The ‘DeviceClass’ argument should not be null, otherwise an error will be returned. The ‘DeviceTag’ argument should have a valid tag, otherwise an error will be returned.
If the device creation is successful, the ‘CurrentDevice’ member variable will be set to the created device.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object that will hold any error information if an error occurs during device creation.
Referenced by
Section titled “Referenced by”References
Section titled “References”CurrentDeviceDeviceDeviceClassErrorExceptionDescriptionInternal_CreateDeviceManagerInternal_OnValidateIsValidLoadGameLoadGameInstanceMAKE_ERRORNEW_SOFT_OBJOnDeviceCreatedOnLoadGameOnNewDeviceCreatedOnOperatingSystemStartedOS_LOGOS_LOG_ERROROS_LOG_VERBOSEOS_LOG_WARNPlayerControllerReset
CurrentDeviceDestroyed
Section titled “CurrentDeviceDestroyed”void CurrentDeviceDestroyed()Defined in OperatingSystemDeviceActor.h:197 Method to handle the destruction of the current device.
This method is called when the current device is being destroyed. It performs various cleanup operations and handles any necessary actions. If the current device is valid, it checks if there is a blueprint assigned to the “CurrentDeviceDestroyed” event and calls it if available. It then unbinds the “OnOperatingSystemStartedDelegate” event from the current device, marks it as garbage, and sets the current device to nullptr.
If the “bExitWhenDeviceIsDestroyed” flag is set to true, the method executes additional actions. In the editor mode, it retrieves the player controller and executes the “exit” console command, which will exit the game. Otherwise, it requests the exit of the application.
References
Section titled “References”RestartDevice
Section titled “RestartDevice”void RestartDevice()Defined in OperatingSystemDeviceActor.h:213 Restarts the device.
This method restarts the operating system device. If the device has a blueprint on it that is destroyed, this method triggers the K2_OnCurrentDeviceDestroyed event.
If there is a current device, this method unbinds the OnOperatingSystemStartedDelegate and marks the current device as garbage. It then sets the CurrentDevice pointer to nullptr.
After that, it creates a timer delegate for the CreateDevice function and binds it to this actor. The delegate is then set to be executed after 1 second.
References
Section titled “References”WidgetChanged
Section titled “WidgetChanged”void WidgetChanged(UUserWidget * ChangedWidget)Defined in OperatingSystemDeviceActor.h:222 Handles the event when a widget is changed.
This method is called when a user widget is changed in the operating system device actor.
Parameters
Section titled “Parameters”ChangedWidgetThe pointer to the user widget that has been changed.
References
Section titled “References”OnShowBlueScreen
Section titled “OnShowBlueScreen”void OnShowBlueScreen(const float & OnScreenTime)Defined in OperatingSystemDeviceActor.h:233 Called when the blue screen should be shown on the operating system device.
Parameters
Section titled “Parameters”OnScreenTimeThe time in seconds the blue screen should be shown on the screen.
See also: K2_OnBlueScreenShow
References
Section titled “References”StopMediaAudio
Section titled “StopMediaAudio”const
void StopMediaAudio() constDefined in OperatingSystemDeviceActor.h:244 Stops the media audio playback.
This method stops the media audio playback by calling the Stop() function of the MediaSoundComponent.
See also: MediaSoundComponent
References
Section titled “References”GetHardwareByTag
Section titled “GetHardwareByTag”const
UOperatingSystemBaseHardware * GetHardwareByTag(const FGameplayTag & TestTag) constDefined in OperatingSystemDeviceActor.h:252 Retrieves the hardware by the specified tag.
Parameters
Section titled “Parameters”TestTagThe gameplay tag used for filtering hardware.
Returns
Section titled “Returns”The instance of UOperatingSystemBaseHardware that matches the specified tag.
Referenced by
Section titled “Referenced by”References
Section titled “References”SetAddWidgetsToScreen
Section titled “SetAddWidgetsToScreen”void SetAddWidgetsToScreen(const EOperatingSystemWidgetSet Method)Defined in OperatingSystemDeviceActor.h:261 Sets the method for adding widgets to the screen.
Depending on the specified method, widgets may be added to the screen or not.
Parameters
Section titled “Parameters”MethodThe method for adding widgets to the screen.
References
Section titled “References”bAddWidgetsToScreenCurrentDeviceDisableSetAndApply
ClearWidgetFromScreen
Section titled “ClearWidgetFromScreen”const
void ClearWidgetFromScreen() constDefined in OperatingSystemDeviceActor.h:270 Clears the widget from the screen.
This method clears the currently displayed widget from the screen. It checks if the current device is valid. If valid, it calls the “ClearOnScreenWidget()” method of the current device to clear the widget from the screen.
References
Section titled “References”RefreshWidget
Section titled “RefreshWidget”const
void RefreshWidget() constDefined in OperatingSystemDeviceActor.h:276 Checks if the current device is valid and then calls the ReApplyWidget() method on the current device.
References
Section titled “References”IsPortableDevice
Section titled “IsPortableDevice”const inline
inline bool IsPortableDevice() constDefined in OperatingSystemDeviceActor.h:284 Determines whether the operating system device actor is a portable device.
Returns
Section titled “Returns”True if the operating system device actor is a portable device, false otherwise.
BeginDestroyMessenger
Section titled “BeginDestroyMessenger”void BeginDestroyMessenger()Defined in OperatingSystemDeviceActor.h:296 Begins the destruction process for the messenger associated with the operating system device actor.
This method is responsible for initiating the destruction process for the messenger. It calls the BeginDestroyMessenger method of the DeviceMessenger associated with the operating system device actor.
See also: DeviceMessenger, AOperatingSystemDeviceActor
Referenced by
Section titled “Referenced by”References
Section titled “References”FinishDestroyMessenger
Section titled “FinishDestroyMessenger”void FinishDestroyMessenger()Defined in OperatingSystemDeviceActor.h:312 A method to finish the destruction of the operating system device actor.
This method marks the device messenger as garbage and sets it to nullptr.
Preconditions:
Section titled “Preconditions:”- The device messenger must be initialized and assigned.
Postconditions:
Section titled “Postconditions:”-
The device messenger will be marked as garbage.
-
The device messenger will be set to nullptr.
Referenced by
Section titled “Referenced by”References
Section titled “References”BeginOperatingSystemSessionEnd
Section titled “BeginOperatingSystemSessionEnd”void BeginOperatingSystemSessionEnd(const bool bRestart)Defined in OperatingSystemDeviceActor.h:314
References
Section titled “References”FinishOperatingSystemSessionEnd
Section titled “FinishOperatingSystemSessionEnd”void FinishOperatingSystemSessionEnd(const bool bRestart)Defined in OperatingSystemDeviceActor.h:315
Referenced by
Section titled “Referenced by”References
Section titled “References”K2_OnFinishOperatingSystemRestartK2_OnFinishOperatingSystemShutdownOnFinishOperatingSystemSessionEnd
OnSaveGame
Section titled “OnSaveGame”virtual inline
virtual inline void OnSaveGame(FOperatingSystemDeviceSaveLoad & SaveData)Defined in OperatingSystemDeviceActor.h:324 Saves the state of the operating system device in the provided save data.
Parameters
Section titled “Parameters”SaveDataThe reference to the save data object where the state will be saved.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”OnLoadGame
Section titled “OnLoadGame”virtual inline
virtual inline void OnLoadGame(const FOperatingSystemDeviceSaveLoad & LoadData)Defined in OperatingSystemDeviceActor.h:337 Callback method called when loading a game.
This method is called when a game is being loaded. It is a virtual method that can be overridden by derived classes to provide custom logic for loading a game.
Parameters
Section titled “Parameters”LoadDataThe save/load data for the operating system device.
See also: FOperatingSystemDeviceSaveLoad
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< USceneComponent > | MainComponent | |
TObjectPtr< UMediaSoundComponent > | MediaSoundComponent | |
FGameplayTag | DeviceTag | A unique tag to identify this device. |
TSoftClassPtr< UOperatingSystemBaseDevice > | DeviceClass | Target device class to create. |
uint8 | bCreateDeviceOnBeginPlay | If true, create the device on begin play. If false, you can manually call Create Device whenever you need. |
uint8 | bAddWidgetsToScreen | If true, add widgets directly to viewport screen. |
uint8 | bExitWhenDeviceIsDestroyed | Set to exit game when the device is destroyed. Device is destroyed when the OS shuts down. |
uint8 | bCanSaveGame | Determines if this device support save game. |
TSoftClassPtr< UOperatingSystemSaveGame > | SaveGameClass | Target save game class. |
TSoftClassPtr< UOperatingSystemDeviceMessenger > | MessengerClass | Target messenger class. |
TObjectPtr< UOperatingSystemSaveGame > | LoadGameInstance | |
TWeakObjectPtr< APlayerController > | PlayerController |
MainComponent
Section titled “MainComponent”TObjectPtr< USceneComponent > MainComponentDefined in OperatingSystemDeviceActor.h:40
Section titled “Defined in OperatingSystemDeviceActor.h:40”MediaSoundComponent
Section titled “MediaSoundComponent”TObjectPtr< UMediaSoundComponent > MediaSoundComponentDefined in OperatingSystemDeviceActor.h:43
Referenced by
Section titled “Referenced by”DeviceTag
Section titled “DeviceTag”FGameplayTag DeviceTagDefined in OperatingSystemDeviceActor.h:47 A unique tag to identify this device.
Referenced by
Section titled “Referenced by”DeviceClass
Section titled “DeviceClass”TSoftClassPtr< UOperatingSystemBaseDevice > DeviceClassDefined in OperatingSystemDeviceActor.h:51 Target device class to create.
Referenced by
Section titled “Referenced by”bCreateDeviceOnBeginPlay
Section titled “bCreateDeviceOnBeginPlay”uint8 bCreateDeviceOnBeginPlayDefined in OperatingSystemDeviceActor.h:55 If true, create the device on begin play. If false, you can manually call Create Device whenever you need.
bAddWidgetsToScreen
Section titled “bAddWidgetsToScreen”uint8 bAddWidgetsToScreenDefined in OperatingSystemDeviceActor.h:59 If true, add widgets directly to viewport screen.
Referenced by
Section titled “Referenced by”bExitWhenDeviceIsDestroyed
Section titled “bExitWhenDeviceIsDestroyed”uint8 bExitWhenDeviceIsDestroyedDefined in OperatingSystemDeviceActor.h:63 Set to exit game when the device is destroyed. Device is destroyed when the OS shuts down.
Referenced by
Section titled “Referenced by”bCanSaveGame
Section titled “bCanSaveGame”uint8 bCanSaveGameDefined in OperatingSystemDeviceActor.h:67 Determines if this device support save game.
SaveGameClass
Section titled “SaveGameClass”TSoftClassPtr< UOperatingSystemSaveGame > SaveGameClassDefined in OperatingSystemDeviceActor.h:71 Target save game class.
MessengerClass
Section titled “MessengerClass”TSoftClassPtr< UOperatingSystemDeviceMessenger > MessengerClassDefined in OperatingSystemDeviceActor.h:75 Target messenger class.
LoadGameInstance
Section titled “LoadGameInstance”TObjectPtr< UOperatingSystemSaveGame > LoadGameInstanceDefined in OperatingSystemDeviceActor.h:78
Referenced by
Section titled “Referenced by”PlayerController
Section titled “PlayerController”TWeakObjectPtr< APlayerController > PlayerControllerDefined in OperatingSystemDeviceActor.h:81
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | OnNewDeviceCreated virtual inline | This method is called when a new device has been created. This method is intended to be overridden in subclasses of OperatingSystemDeviceActor to handle the event of a new device being created. It provides a way for the subclass to perform any necessary actions or processing related to the new device. |
void | OnBeginOperatingSystemSessionEnd virtual inline | Called when the operating system session is about to end. |
void | OnFinishOperatingSystemSessionEnd virtual inline | Called when the operating system session has ended. |
bool | IsPortableDeviceImpl virtual const inline | Determines if the device is portable or not. By default, the method returns false. |
bool | K2_CreateDevice | Creates a device in the operating system. |
void | K2_OnCurrentDeviceDestroyed | Notifies the actor that the current device has been destroyed. |
void | K2_OnWidgetChanged | Notifies the actor when the widget has changed. |
void | K2_OnBlueScreenShow | Event that is triggered when the blue screen is shown on the operating system device actor. |
void | K2_OnBeginOperatingSystemShutdown | Event that is triggered when the operating system begins the shutdown process. This event is called before closing running applications. |
void | K2_OnFinishOperatingSystemShutdown | Event that is triggered when the operating system finishes the shutdown process. |
void | K2_OnBeginOperatingSystemRestart | Event that is triggered when the operating system begins the restart process. |
void | K2_OnFinishOperatingSystemRestart | Event that is triggered when the operating system finishes the restart process. |
OnNewDeviceCreated
Section titled “OnNewDeviceCreated”virtual inline
virtual inline void OnNewDeviceCreated(FGenericError & OutError)Defined in OperatingSystemDeviceActor.h:368 This method is called when a new device has been created. This method is intended to be overridden in subclasses of OperatingSystemDeviceActor to handle the event of a new device being created. It provides a way for the subclass to perform any necessary actions or processing related to the new device.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object that can be used to return error messages if necessary.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”OnBeginOperatingSystemSessionEnd
Section titled “OnBeginOperatingSystemSessionEnd”virtual inline
virtual inline void OnBeginOperatingSystemSessionEnd(const bool bIsRestarting)Defined in OperatingSystemDeviceActor.h:378 Called when the operating system session is about to end.
This method is called when the operating system session is about to end. It provides an opportunity for derived classes to perform any necessary actions before the session ends.
Parameters
Section titled “Parameters”bIsRestartingA boolean indicating whether the session is ending due to a restart (true) or a shutdown (false).
Referenced by
Section titled “Referenced by”OnFinishOperatingSystemSessionEnd
Section titled “OnFinishOperatingSystemSessionEnd”virtual inline
virtual inline void OnFinishOperatingSystemSessionEnd(const bool bWasRestart)Defined in OperatingSystemDeviceActor.h:388 Called when the operating system session has ended.
This method is called when the operating system session has ended. It provides an opportunity for derived classes to perform any necessary actions after the session ends.
Parameters
Section titled “Parameters”bWasRestartA boolean indicating whether the session ended due to a restart (true) or a shutdown (false).
Referenced by
Section titled “Referenced by”IsPortableDeviceImpl
Section titled “IsPortableDeviceImpl”virtual const inline
virtual inline bool IsPortableDeviceImpl() constDefined in OperatingSystemDeviceActor.h:395 Determines if the device is portable or not. By default, the method returns false.
Returns
Section titled “Returns”True if the device is portable, false otherwise.
Reimplemented by
Section titled “Reimplemented by”K2_CreateDevice
Section titled “K2_CreateDevice”bool K2_CreateDevice(FGenericError & OutError)Defined in OperatingSystemDeviceActor.h:406 Creates a device in the operating system.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object that will hold any error encountered during device creation.
Returns
Section titled “Returns”True if the device creation was successful, false otherwise.
References
Section titled “References”K2_OnCurrentDeviceDestroyed
Section titled “K2_OnCurrentDeviceDestroyed”void K2_OnCurrentDeviceDestroyed()Defined in OperatingSystemDeviceActor.h:416 Notifies the actor that the current device has been destroyed.
This event is blueprint implementable, allowing the user to define their own behavior when the current device is destroyed.
Referenced by
Section titled “Referenced by”K2_OnWidgetChanged
Section titled “K2_OnWidgetChanged”void K2_OnWidgetChanged(UUserWidget * ChangedWidget)Defined in OperatingSystemDeviceActor.h:428 Notifies the actor when the widget has changed.
This event is called when the user widget associated with the operating system device actor has been changed.
Parameters
Section titled “Parameters”ChangedWidgetThe new user widget that has been assigned to the operating system device actor. This parameter can be nullptr if the widget is being cleared. The ownership of the widget remains with the caller and it’s the caller responsibility to properly manage the widget’s lifetime.
Referenced by
Section titled “Referenced by”K2_OnBlueScreenShow
Section titled “K2_OnBlueScreenShow”void K2_OnBlueScreenShow(const float & OnScreenTime)Defined in OperatingSystemDeviceActor.h:440 Event that is triggered when the blue screen is shown on the operating system device actor.
Parameters
Section titled “Parameters”OnScreenTimeThe amount of time the blue screen will be displayed on the screen.
Referenced by
Section titled “Referenced by”K2_OnBeginOperatingSystemShutdown
Section titled “K2_OnBeginOperatingSystemShutdown”void K2_OnBeginOperatingSystemShutdown()Defined in OperatingSystemDeviceActor.h:446 Event that is triggered when the operating system begins the shutdown process. This event is called before closing running applications.
Referenced by
Section titled “Referenced by”K2_OnFinishOperatingSystemShutdown
Section titled “K2_OnFinishOperatingSystemShutdown”void K2_OnFinishOperatingSystemShutdown()Defined in OperatingSystemDeviceActor.h:450 Event that is triggered when the operating system finishes the shutdown process.
Referenced by
Section titled “Referenced by”K2_OnBeginOperatingSystemRestart
Section titled “K2_OnBeginOperatingSystemRestart”void K2_OnBeginOperatingSystemRestart()Defined in OperatingSystemDeviceActor.h:454 Event that is triggered when the operating system begins the restart process.
Referenced by
Section titled “Referenced by”K2_OnFinishOperatingSystemRestart
Section titled “K2_OnFinishOperatingSystemRestart”void K2_OnFinishOperatingSystemRestart()Defined in OperatingSystemDeviceActor.h:458 Event that is triggered when the operating system finishes the restart process.
Referenced by
Section titled “Referenced by”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UOperatingSystemDeviceMessenger > | DeviceMessenger | Messenger object that communicates with anything within this device. |
TObjectPtr< UOperatingSystemBaseDevice > | CurrentDevice | Device that is spawned and currently associated with this actor. |
FGuid | UniqueID | An auto generated unique ID associated with this device. Primarily used for save games. |
DeviceMessenger
Section titled “DeviceMessenger”TObjectPtr< UOperatingSystemDeviceMessenger > DeviceMessengerDefined in OperatingSystemDeviceActor.h:87 Messenger object that communicates with anything within this device.
Referenced by
Section titled “Referenced by”CurrentDevice
Section titled “CurrentDevice”TObjectPtr< UOperatingSystemBaseDevice > CurrentDeviceDefined in OperatingSystemDeviceActor.h:91 Device that is spawned and currently associated with this actor.
Referenced by
Section titled “Referenced by”ClearWidgetFromScreenCreateDeviceCurrentDeviceDestroyedGetHardwareByTagRefreshWidgetRestartDeviceSetAddWidgetsToScreen
UniqueID
Section titled “UniqueID”FGuid UniqueIDDefined in OperatingSystemDeviceActor.h:95 An auto generated unique ID associated with this device. Primarily used for save games.
Private Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
void | Internal_OnValidate | Validates the operating system device actor. |
void | Internal_CreateDeviceManager | Internal method to create the device manager for the operating system device actor. |
Internal_OnValidate
Section titled “Internal_OnValidate”void Internal_OnValidate(FGenericError & OutError)Defined in OperatingSystemDeviceActor.h:168 Validates the operating system device actor.
This method is called to validate the operating system device actor. It checks if the device tag is valid and if the device class is not null If any validation fails, an error message is assigned to the OutError parameter.
Parameters
Section titled “Parameters”OutError[out] The error message assigned if validation fails.
Referenced by
Section titled “Referenced by”References
Section titled “References”DeviceClassDeviceTagIsOperatingSystemTagValidMAKE_ERROROnValidate
Internal_CreateDeviceManager
Section titled “Internal_CreateDeviceManager”void Internal_CreateDeviceManager()Defined in OperatingSystemDeviceActor.h:354 Internal method to create the device manager for the operating system device actor.
This method is called internally to create the device manager for the operating system device actor. The device manager is responsible for managing the devices associated with the actor.
See also: DeviceMessenger
See also: UOperatingSystemDeviceMessenger
See also: CreateMessenger
See also: IsValid