![]() |
Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
Manages operating system notifications for a specific world. More...
#include "OperatingSystemNotificationManager.h"
Public Member Functions | |
| FOperatingSystemNotificationManager (UWorld *ParentWorld, const float &TimeToDisplay) | |
| Constructor for the FOperatingSystemNotificationManager class. | |
| ~FOperatingSystemNotificationManager () | |
| bool | LogNotification (const FOperatingSystemNotification &NewNotification) |
| Logs a new notification. | |
| void | ClearAllNotifications () |
| Clears all notifications. | |
| FORCEINLINE const TArray< FOperatingSystemNotification > & | GetNotificationsRef () const |
| Returns a reference to the list of operating system notifications. | |
Static Public Member Functions | |
| static FORCEINLINE FOperatingSystemNotificationManagerRef | CreateNotificationManager (UWorld *ParentWorld, const float &TimeToDisplay) |
| Creates a notification manager for a specific world. | |
Public Attributes | |
| FOnShowNotification | OnShowNotification |
| FOnClearAllNotifications | OnClearAllNotifications |
Manages operating system notifications for a specific world.
The FOperatingSystemNotificationManager class is responsible for managing operating system notifications for a specific world. It allows logging new notifications, clearing all notifications, and providing a reference to the list of notifications.
| FOperatingSystemNotificationManager::FOperatingSystemNotificationManager | ( | UWorld * | ParentWorld, |
| const float & | TimeToDisplay ) |
Constructor for the FOperatingSystemNotificationManager class.
| ParentWorld | A pointer to the parent world. |
| TimeToDisplay | The time, in seconds, that notifications should be displayed. |
| FOperatingSystemNotificationManager::~FOperatingSystemNotificationManager | ( | ) |
| void FOperatingSystemNotificationManager::ClearAllNotifications | ( | ) |
Clears all notifications.
This method clears all notifications by resetting the Notifications array, clearing the timer for displaying notifications, and executing the OnClearAllNotifications delegate.
|
inlinestatic |
Creates a notification manager for a specific world.
This method creates an instance of the FOperatingSystemNotificationManager class and returns a shared reference to it.
| ParentWorld | A pointer to the parent world. |
| TimeToDisplay | The time, in seconds, that notifications should be displayed. |
|
inline |
Returns a reference to the list of operating system notifications.
This method returns a constant reference to the list of operating system notifications managed by the FOperatingSystemNotificationManager class.
| bool FOperatingSystemNotificationManager::LogNotification | ( | const FOperatingSystemNotification & | NewNotification | ) |
Logs a new notification.
This method logs a new notification by adding it to the notifications list and triggering the display of the notification if needed.
| NewNotification | The notification to be logged. |
| FOnClearAllNotifications FOperatingSystemNotificationManager::OnClearAllNotifications |
| FOnShowNotification FOperatingSystemNotificationManager::OnShowNotification |