UOperatingSystemPluginSettings
#include <OperatingSystemSimulator/Private/Global/OperatingSystemPluginSettings.h>class UOperatingSystemPluginSettingsDefined in OperatingSystemPluginSettings.h:23
Inherits:
USettingsBase
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemPluginSettings["UOperatingSystemPluginSettings"]
class USettingsBase["USettingsBase"]
USettingsBase <|-- UOperatingSystemPluginSettings
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemPluginSettings["UOperatingSystemPluginSettings"]
class USettingsBase["USettingsBase"]
UOperatingSystemPluginSettings *-- USettingsBase
class FOperatingSystemUser["FOperatingSystemUser"]
UOperatingSystemPluginSettings *-- FOperatingSystemUser
class UOperatingSystemProgramIconWidget["UOperatingSystemProgramIconWidget"]
UOperatingSystemPluginSettings *-- UOperatingSystemProgramIconWidget
class UOperatingSystemTaskbarButton["UOperatingSystemTaskbarButton"]
UOperatingSystemPluginSettings *-- UOperatingSystemTaskbarButton
class UOperatingSystemUserManager["UOperatingSystemUserManager"]
UOperatingSystemPluginSettings *-- UOperatingSystemUserManager
class UOperatingSystemBankManager["UOperatingSystemBankManager"]
UOperatingSystemPluginSettings *-- UOperatingSystemBankManager
class UOperatingSystemMailManager["UOperatingSystemMailManager"]
UOperatingSystemPluginSettings *-- UOperatingSystemMailManager
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemPluginSettings {
+UOperatingSystemPluginSettings()
+GetUserManagerClass() const TSoftClassPtr()< UOperatingSystemUserMan
+GetBankClass() const TSoftClassPtr()< UOperatingSystemBankMan
+GetMailClass() const TSoftClassPtr()< UOperatingSystemMailMan
+GetUserManagerSaveSlotName() const FString()
+GetBankSaveSlotName() const FString()
+GetMailSaveSlotName() const FString()
+GetNoReplyDefaultUserForMail() const FOperatingSystemUser()
+GetDefaultUser() const FOperatingSystemUser()
+GetDefaultProgramIconWidget() const TSoftClassPtr()< UOperatingSystemProgram
+GetDefaultTaskbarButtonClass() const TSoftClassPtr()< UOperatingSystemTaskbar
+GetAdditionalTerminalCommandsPath() const TArray()< FString() >
+Get() const()UOperatingSystemPluginSettings()
+GetDefaultTerminalCommandPaths() TArray()< FString() >
+AdditionalTerminalCommandsPath : TArray()< FDirectoryPath() >
+DefaultUser : FOperatingSystemUser()
+DefaultIconWidgetClass : TSoftClassPtr()< UOperatingSystemProgram
+DefaultTaskbarButtonClass : TSoftClassPtr()< UOperatingSystemTaskbar
+UserManagerClass : TSoftClassPtr()< UOperatingSystemUserMan
+BankClass : TSoftClassPtr()< UOperatingSystemBankMan
+MailClass : TSoftClassPtr()< UOperatingSystemMailMan
+UserManagerSaveSlotName : FName()
+BankSaveSlotName : FName()
+MailSaveSlotName : FName()
+NoReplyDefaultUserForMail : FOperatingSystemUser()
}
Caller impact — Get
Section titled “Caller impact — Get”Documented call sites inside the plugin (14):
flowchart LR UOperatingSystemPluginSettings__Get["UOperatingSystemPluginSettings::Get"] UOperatingSystemBankManager__CreateBankSingleton["UOperatingSystemBankManager::CreateBankSingleton"] UOperatingSystemBankManager__CreateBankSingleton --> UOperatingSystemPluginSettings__Get UOperatingSystemMailManager__CreateMailSingleton["UOperatingSystemMailManager::CreateMailSingleton"] UOperatingSystemMailManager__CreateMailSingleton --> UOperatingSystemPluginSettings__Get UOperatingSystemUserManager__CreateUserManager["UOperatingSystemUserManager::CreateUserManager"] UOperatingSystemUserManager__CreateUserManager --> UOperatingSystemPluginSettings__Get UOperatingSystemUserManager__FindUserByEmail["UOperatingSystemUserManager::FindUserByEmail"] UOperatingSystemUserManager__FindUserByEmail --> UOperatingSystemPluginSettings__Get UOperatingSystemUserManager__FindUserByUsername["UOperatingSystemUserManager::FindUserByUsername"] UOperatingSystemUserManager__FindUserByUsername --> UOperatingSystemPluginSettings__Get UOperatingSystemBaseProgram__GetIconWidgetClass["UOperatingSystemBaseProgram::GetIconWidgetClass"] UOperatingSystemBaseProgram__GetIconWidgetClass --> UOperatingSystemPluginSettings__Get UOperatingSystemBaseProgram__GetTaskbarButtonClass["UOperatingSystemBaseProgram::GetTaskbarButtonClass"] UOperatingSystemBaseProgram__GetTaskbarButtonClass --> UOperatingSystemPluginSettings__Get UOperatingSystemTerminal__Internal_FindAdditionalCommands["UOperatingSystemTerminal::Internal_FindAdditionalCommands"] UOperatingSystemTerminal__Internal_FindAdditionalCommands --> UOperatingSystemPluginSettings__Get UOperatingSystemUserManager__Internal_Save["UOperatingSystemUserManager::Internal_Save"] UOperatingSystemUserManager__Internal_Save --> UOperatingSystemPluginSettings__Get UOperatingSystemBankManager__Internal_Save["UOperatingSystemBankManager::Internal_Save"] UOperatingSystemBankManager__Internal_Save --> UOperatingSystemPluginSettings__Get UOperatingSystemMailManager__Save["UOperatingSystemMailManager::Save"] UOperatingSystemMailManager__Save --> UOperatingSystemPluginSettings__Get UOperatingSystemMailManager__SendEmailFromDataTable["UOperatingSystemMailManager::SendEmailFromDataTable"] UOperatingSystemMailManager__SendEmailFromDataTable --> UOperatingSystemPluginSettings__Get UOperatingSystem__StartOperatingSystem["UOperatingSystem::StartOperatingSystem"] UOperatingSystem__StartOperatingSystem --> UOperatingSystemPluginSettings__Get FOperatingSystemSimulatorModule__StartupModule["FOperatingSystemSimulatorModule::StartupModule"] FOperatingSystemSimulatorModule__StartupModule --> UOperatingSystemPluginSettings__Get
The UOperatingSystemPluginSettings class holds the settings for the Operating System plugin.
The UOperatingSystemPluginSettings class is a subclass of UDeveloperSettings. It contains various properties to configure the behavior of the Operating System plugin.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemPluginSettings | ||
TSoftClassPtr< UOperatingSystemUserManager > | GetUserManagerClass const | Retrieves the class pointer to the user manager specified in the settings. If the user manager class is not set, it returns the default class pointer for UOperatingSystemUserManager. |
TSoftClassPtr< UOperatingSystemBankManager > | GetBankClass const | Returns the class object of the Operating System Bank Manager. This method returns the class object of the Operating System Bank Manager. If the BankClass is null, it returns the StaticClass of UOperatingSystemBankManager. |
TSoftClassPtr< UOperatingSystemMailManager > | GetMailClass const | Returns the mail class configured in the operating system plugin settings. This method returns the mail class configured in the operating system plugin settings. If no mail class is configured, then it returns the default mail class, UOperatingSystemMailManager::StaticClass(). |
FString | GetUserManagerSaveSlotName const | Retrieves the name of the save game slot to use for the User Manager class. If the UserManagerSaveSlotName property is not set, it returns the fallback save slot name specified in UserManagerFallbackSaveSlotName. |
FString | GetBankSaveSlotName const | Retrieves the name of the save game slot to use for the Bank class. If the BankSaveSlotName property is not set, it returns the fallback save slot name specified in BankFallbackSaveSlotName. |
FString | GetMailSaveSlotName const | Retrieves the name of the save game slot to use for the Mail class. This method returns the name of the save game slot to use for the Mail class. If the MailSaveSlotName property is not set, it returns the fallback save slot name specified in Mail FallbackSaveSlotName. |
FOperatingSystemUser | GetNoReplyDefaultUserForMail const | Retrieves the default user for sending “no reply” emails. |
FOperatingSystemUser | GetDefaultUser const | Retrieve the default user for the Operating System plugin. |
TSoftClassPtr< UOperatingSystemProgramIconWidget > | GetDefaultProgramIconWidget const | Retrieve the default program icon widget. |
TSoftClassPtr< UOperatingSystemTaskbarButton > | GetDefaultTaskbarButtonClass const | Retrieve the default task bar button widget. |
TArray< FString > | GetAdditionalTerminalCommandsPath const inline | Returns an array of strings representing the additional terminal commands path. Each string represents a path to a terminal command. |
UOperatingSystemPluginSettings
Section titled “UOperatingSystemPluginSettings”UOperatingSystemPluginSettings()Defined in OperatingSystemPluginSettings.h:91
References
Section titled “References”AdditionalTerminalCommandsPathDefaultIconWidgetClassDefaultTaskbarButtonClassDefaultUserEmailFirstNameGetDefaultTerminalCommandPathsGetSettingsLastNameNoReplyDefaultUserForMailUpdateColorIfInvalid
GetUserManagerClass
Section titled “GetUserManagerClass”const
TSoftClassPtr< UOperatingSystemUserManager > GetUserManagerClass() constDefined in OperatingSystemPluginSettings.h:117 Retrieves the class pointer to the user manager specified in the settings. If the user manager class is not set, it returns the default class pointer for UOperatingSystemUserManager.
Returns
Section titled “Returns”TSoftClassPtr<UOperatingSystemUserManager> - The class pointer to the user manager.
References
Section titled “References”GetBankClass
Section titled “GetBankClass”const
TSoftClassPtr< UOperatingSystemBankManager > GetBankClass() constDefined in OperatingSystemPluginSettings.h:125 Returns the class object of the Operating System Bank Manager. This method returns the class object of the Operating System Bank Manager. If the BankClass is null, it returns the StaticClass of UOperatingSystemBankManager.
Returns
Section titled “Returns”The class object of the Operating System Bank Manager.
References
Section titled “References”GetMailClass
Section titled “GetMailClass”const
TSoftClassPtr< UOperatingSystemMailManager > GetMailClass() constDefined in OperatingSystemPluginSettings.h:134 Returns the mail class configured in the operating system plugin settings. This method returns the mail class configured in the operating system plugin settings. If no mail class is configured, then it returns the default mail class, UOperatingSystemMailManager::StaticClass().
Returns
Section titled “Returns”The configured mail class as a TSoftClassPtr<UOperatingSystemMailManager>.
References
Section titled “References”GetUserManagerSaveSlotName
Section titled “GetUserManagerSaveSlotName”const
FString GetUserManagerSaveSlotName() constDefined in OperatingSystemPluginSettings.h:142 Retrieves the name of the save game slot to use for the User Manager class. If the UserManagerSaveSlotName property is not set, it returns the fallback save slot name specified in UserManagerFallbackSaveSlotName.
Returns
Section titled “Returns”The name of the save game slot to use for the User Manager class.
References
Section titled “References”GetBankSaveSlotName
Section titled “GetBankSaveSlotName”const
FString GetBankSaveSlotName() constDefined in OperatingSystemPluginSettings.h:150 Retrieves the name of the save game slot to use for the Bank class. If the BankSaveSlotName property is not set, it returns the fallback save slot name specified in BankFallbackSaveSlotName.
Returns
Section titled “Returns”The name of the save game slot to use for the Bank class as a FString.
References
Section titled “References”GetMailSaveSlotName
Section titled “GetMailSaveSlotName”const
FString GetMailSaveSlotName() constDefined in OperatingSystemPluginSettings.h:159 Retrieves the name of the save game slot to use for the Mail class. This method returns the name of the save game slot to use for the Mail class. If the MailSaveSlotName property is not set, it returns the fallback save slot name specified in Mail FallbackSaveSlotName.
Returns
Section titled “Returns”The name of the save game slot to use for the Mail class as a FString.
References
Section titled “References”GetNoReplyDefaultUserForMail
Section titled “GetNoReplyDefaultUserForMail”const
FOperatingSystemUser GetNoReplyDefaultUserForMail() constDefined in OperatingSystemPluginSettings.h:170 Retrieves the default user for sending “no reply” emails.
This function returns the default user to be used for sending “no reply” emails. If the NoReplyDefaultUserForMail has a complete profile, that user is returned. Otherwise, the function returns the DefaultMailUser.
Returns
Section titled “Returns”FOperatingSystemUser The default user for sending “no reply” emails.
References
Section titled “References”GetDefaultUser
Section titled “GetDefaultUser”const
FOperatingSystemUser GetDefaultUser() constDefined in OperatingSystemPluginSettings.h:180 Retrieve the default user for the Operating System plugin.
This function returns the default user for the Operating System plugin. If the user’s profile is complete, the function will return the complete profile. Otherwise, it will return the default user.
Returns
Section titled “Returns”The default user for the Operating System plugin.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetDefaultProgramIconWidget
Section titled “GetDefaultProgramIconWidget”const
TSoftClassPtr< UOperatingSystemProgramIconWidget > GetDefaultProgramIconWidget() constDefined in OperatingSystemPluginSettings.h:189 Retrieve the default program icon widget.
Default icon widget for all programs. You can also set Icon Widget Class property within each program to have their own unique icons.
Returns
Section titled “Returns”TSoftClassPtr<UOperatingSystemProgramIconWidget>.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetDefaultTaskbarButtonClass
Section titled “GetDefaultTaskbarButtonClass”const
TSoftClassPtr< UOperatingSystemTaskbarButton > GetDefaultTaskbarButtonClass() constDefined in OperatingSystemPluginSettings.h:198 Retrieve the default task bar button widget.
Default taskbar button widget for all programs. You can also set Taskbar Button Class property within each program to have their own unique taskbar buttons.
Returns
Section titled “Returns”TSoftClassPtr<UOperatingSystemTaskbarButton>.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetAdditionalTerminalCommandsPath
Section titled “GetAdditionalTerminalCommandsPath”const inline
inline TArray< FString > GetAdditionalTerminalCommandsPath() constDefined in OperatingSystemPluginSettings.h:205 Returns an array of strings representing the additional terminal commands path. Each string represents a path to a terminal command.
Returns
Section titled “Returns”An array of strings representing the additional terminal commands path.
Referenced by
Section titled “Referenced by”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
constUOperatingSystemPluginSettings * | Get static | Retrieves an instance of UOperatingSystemPluginSettings. |
TArray< FString > | GetDefaultTerminalCommandPaths static inline | Returns the default terminal command paths. The GetDefaultTerminalCommandPaths method returns an array of default terminal command paths. These paths are used to locate terminal command assets in the game. |
static
static constUOperatingSystemPluginSettings * Get()Defined in OperatingSystemPluginSettings.h:98 Retrieves an instance of UOperatingSystemPluginSettings.
Returns
Section titled “Returns”A pointer to UOperatingSystemPluginSettings.
Referenced by
Section titled “Referenced by”CreateBankSingletonCreateMailSingletonCreateUserManagerFindUserByEmailFindUserByUsernameGetIconWidgetClassGetTaskbarButtonClassInternal_FindAdditionalCommandsInternal_SaveInternal_SaveSaveSendEmailFromDataTableStartOperatingSystemStartupModule
References
Section titled “References”GetDefaultTerminalCommandPaths
Section titled “GetDefaultTerminalCommandPaths”static inline
static inline TArray< FString > GetDefaultTerminalCommandPaths()Defined in OperatingSystemPluginSettings.h:223 Returns the default terminal command paths. The GetDefaultTerminalCommandPaths method returns an array of default terminal command paths. These paths are used to locate terminal command assets in the game.
Returns
Section titled “Returns”An array of default terminal command paths.
Referenced by
Section titled “Referenced by”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TArray< FDirectoryPath > | AdditionalTerminalCommandsPath | Scans these paths to find additional commands that should be added to Operating System Terminal. |
FOperatingSystemUser | DefaultUser | A dummy user that will be created when OS is set to Full Boot and no user are available. |
TSoftClassPtr< UOperatingSystemProgramIconWidget > | DefaultIconWidgetClass | Default icon that should be applied to all programs if not overriden inside the program itself. |
TSoftClassPtr< UOperatingSystemTaskbarButton > | DefaultTaskbarButtonClass | Default taskbar button class that should be applied to all programs if not overriden inside the program itself. |
TSoftClassPtr< UOperatingSystemUserManager > | UserManagerClass | Holds a soft reference to the class of the user manager. |
TSoftClassPtr< UOperatingSystemBankManager > | BankClass | Holds a soft reference to the class of the bank manager. |
TSoftClassPtr< UOperatingSystemMailManager > | MailClass | Holds a soft reference to the class of the mail manager. |
FName | UserManagerSaveSlotName | Name for the save game slot to use for User Manager class. If empty, automatically falls back to using ‘__users_db’ |
FName | BankSaveSlotName | Name for the save game slot to use for Bank class. If empty, automatically falls back to using ‘__bank_db’ |
FName | MailSaveSlotName | Name for the save game slot to use for Bank class. If empty, automatically falls back to using ‘__mail_db’ |
FOperatingSystemUser | NoReplyDefaultUserForMail | A dummy user that will be used when calling UOperatingSystemMailManager::SendEmailFromDataTable function. |
AdditionalTerminalCommandsPath
Section titled “AdditionalTerminalCommandsPath”TArray< FDirectoryPath > AdditionalTerminalCommandsPathDefined in OperatingSystemPluginSettings.h:29 Scans these paths to find additional commands that should be added to Operating System Terminal.
Referenced by
Section titled “Referenced by”DefaultUser
Section titled “DefaultUser”FOperatingSystemUser DefaultUserDefined in OperatingSystemPluginSettings.h:33 A dummy user that will be created when OS is set to Full Boot and no user are available.
Referenced by
Section titled “Referenced by”DefaultIconWidgetClass
Section titled “DefaultIconWidgetClass”TSoftClassPtr< UOperatingSystemProgramIconWidget > DefaultIconWidgetClassDefined in OperatingSystemPluginSettings.h:37 Default icon that should be applied to all programs if not overriden inside the program itself.
Referenced by
Section titled “Referenced by”DefaultTaskbarButtonClass
Section titled “DefaultTaskbarButtonClass”TSoftClassPtr< UOperatingSystemTaskbarButton > DefaultTaskbarButtonClassDefined in OperatingSystemPluginSettings.h:41 Default taskbar button class that should be applied to all programs if not overriden inside the program itself.
Referenced by
Section titled “Referenced by”UserManagerClass
Section titled “UserManagerClass”TSoftClassPtr< UOperatingSystemUserManager > UserManagerClassDefined in OperatingSystemPluginSettings.h:51 Holds a soft reference to the class of the user manager.
The class is referenced using a TSoftClassPtr, which is a soft reference that allows the class to be loaded and accessed at runtime.
See also: UOperatingSystemUserManager
Referenced by
Section titled “Referenced by”BankClass
Section titled “BankClass”TSoftClassPtr< UOperatingSystemBankManager > BankClassDefined in OperatingSystemPluginSettings.h:61 Holds a soft reference to the class of the bank manager.
The class is referenced using a TSoftClassPtr, which is a soft reference that allows the class to be loaded and accessed at runtime.
See also: UOperatingSystemBankManager
Referenced by
Section titled “Referenced by”MailClass
Section titled “MailClass”TSoftClassPtr< UOperatingSystemMailManager > MailClassDefined in OperatingSystemPluginSettings.h:71 Holds a soft reference to the class of the mail manager.
The MailClass is a soft reference that allows the class of the mail manager to be loaded and accessed at runtime.
See also: UOperatingSystemMailManager
Referenced by
Section titled “Referenced by”UserManagerSaveSlotName
Section titled “UserManagerSaveSlotName”FName UserManagerSaveSlotNameDefined in OperatingSystemPluginSettings.h:75 Name for the save game slot to use for User Manager class. If empty, automatically falls back to using ‘__users_db’
Referenced by
Section titled “Referenced by”BankSaveSlotName
Section titled “BankSaveSlotName”FName BankSaveSlotNameDefined in OperatingSystemPluginSettings.h:79 Name for the save game slot to use for Bank class. If empty, automatically falls back to using ‘__bank_db’
Referenced by
Section titled “Referenced by”MailSaveSlotName
Section titled “MailSaveSlotName”FName MailSaveSlotNameDefined in OperatingSystemPluginSettings.h:83 Name for the save game slot to use for Bank class. If empty, automatically falls back to using ‘__mail_db’
Referenced by
Section titled “Referenced by”NoReplyDefaultUserForMail
Section titled “NoReplyDefaultUserForMail”FOperatingSystemUser NoReplyDefaultUserForMailDefined in OperatingSystemPluginSettings.h:87 A dummy user that will be used when calling UOperatingSystemMailManager::SendEmailFromDataTable function.