Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
This class represents the settings data for the operating system. It contains information about the modules and their settings. More...
#include "OperatingSystemSettingsData.h"
Public Member Functions | |
UOperatingSystemSettingModule * | FindSettingModuleFromName (const FText SettingName) const |
UOperatingSystemSettingModule * | FindSettingModuleFromClass (const TSoftClassPtr< UOperatingSystemSettingModule > TestClass) const |
template<class T > | |
FORCEINLINE T * | FindSettingModuleFromClass () |
Template method that finds and returns the setting module instance for the given class. | |
FORCEINLINE const TMap< FOperatingSystemSettingModuleInfo, TSoftClassPtr< UOperatingSystemSettingModule > > & | GetModuleClasses () const |
Returns the map of module classes and their corresponding info. | |
Public Member Functions inherited from UOperatingSystemDataObject | |
template<class T > | |
T * | GetParentObject () const |
OPERATINGSYSTEMSIMULATOR_API void | SetTickEnabled (const bool bEnable) |
OPERATINGSYSTEMSIMULATOR_API bool | IsTickEnabled () const |
Public Attributes | |
bool | bIsUsingCustomWallpaper |
Boolean flag indicating whether the user is using a custom wallpaper. | |
FString | WallpaperPath |
String variable representing the path to the wallpaper. | |
Protected Member Functions | |
virtual void | OnValidate (FGenericError &OutError) override |
Validates the settings data for the operating system. | |
Protected Member Functions inherited from UOperatingSystemDataObject | |
virtual OPERATINGSYSTEMSIMULATOR_API bool | ShouldCreate () const |
virtual OPERATINGSYSTEMSIMULATOR_API void | Tick (const float &DeltaSeconds) |
The Tick method receives the time elapsed since the last frame update and performs any necessary updates or computations. | |
virtual OPERATINGSYSTEMSIMULATOR_API void | OnCreate () |
This method is called when a new instance of UOperatingSystemDataObject is created. | |
void | K2_OnCreate () |
K2_OnCreate. | |
void | K2_Tick (const float &DeltaSeconds) |
K2_Tick method is an event meant to be overridden in Blueprint subclasses of OperatingSystemDataObject. It allows subclasses to define custom behavior that should be executed every tick. | |
bool | K2_ShouldCreate () const |
Indicates whether the operating system data object should be created. | |
Additional Inherited Members | |
Static Public Member Functions inherited from UOperatingSystemDataObject | |
static OPERATINGSYSTEMSIMULATOR_API UOperatingSystemDataObject * | CreateDataObj (UObject *OwningObject, const TSoftClassPtr< UOperatingSystemDataObject > &DataClassPtr) |
template<class T > | |
static OPERATINGSYSTEMSIMULATOR_API T * | CreateDataObj (UObject *OwningObject, TSoftClassPtr< UOperatingSystemDataObject > DataClassPtr) |
This method creates a new instance of a data object of type T. | |
Protected Attributes inherited from UOperatingSystemDataObject | |
TWeakObjectPtr< UObject > | ParentObject |
uint8 | bStartWithTickEnabled: 1 |
This class represents the settings data for the operating system. It contains information about the modules and their settings.
|
inline |
Template method that finds and returns the setting module instance for the given class.
This method finds and returns the instance of the setting module for the specified class. It is a template method that takes the class type as the template parameter.
T | The class type of the setting module. |
UOperatingSystemSettingModule * UOperatingSystemSettingsData::FindSettingModuleFromClass | ( | const TSoftClassPtr< UOperatingSystemSettingModule > | TestClass | ) | const |
Returns the setting module if it exists for the given class.
TestClass | Class to search for. |
UOperatingSystemSettingModule * UOperatingSystemSettingsData::FindSettingModuleFromName | ( | const FText | SettingName | ) | const |
Returns the setting module if it exists for the given name.
SettingName | Name of the setting module you want to get. |
|
inline |
Returns the map of module classes and their corresponding info.
This method returns the map of module classes and their corresponding info. The map is represented by a constant reference to a TMap, where the key is FOperatingSystemSettingModuleInfo and the value is TSoftClassPtr<UOperatingSystemSettingModule>.
|
overrideprotectedvirtual |
Validates the settings data for the operating system.
This method is responsible for validating the settings data for the operating system. It checks if all the required information for each module is provided and if the module classes are valid. If any validation fails, an error is set in the OutError object.
OutError | Reference to the FGenericError object which holds any error information if validation fails. |
Reimplemented from UOperatingSystemDataObject.
bool UOperatingSystemSettingsData::bIsUsingCustomWallpaper |
Boolean flag indicating whether the user is using a custom wallpaper.
This variable represents whether the user has set a custom wallpaper for the operating system. If the value is true, the operating system will use the wallpaper specified in the 'WallpaperPath' variable. If the value is false, the operating system will use the default wallpaper.
FString UOperatingSystemSettingsData::WallpaperPath |
String variable representing the path to the wallpaper.
This variable holds the file path of the wallpaper that the user has set for the operating system. It is used when the user chooses to use a custom wallpaper instead of the default wallpaper. The operating system will use this path to locate and display the custom wallpaper.