Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
Handles the management of operating system emails. More...
#include "OperatingSystemMailManager.h"
Protected Member Functions | |
void | K2_OnEmailRegistered (const FOperatingSystemEmail &EmailAccount) |
Event handler that is called when an email account is registered. | |
void | K2_OnEmailSent (const FOperatingSystemUser &FromUser, const FOperatingSystemUser &ToUser, const FOperatingSystemMailSetting &MailData) |
Event handler for when an email is sent. | |
void | K2_OnEmailFailedToDeliver (const FOperatingSystemUser &FromUser, const FOperatingSystemUser &ToUser, const FOperatingSystemMailSetting &MailData) |
Notifies when an email fails to deliver. | |
Static Protected Member Functions | |
static OPERATINGSYSTEMSIMULATOR_API void | Save () |
Handles the management of operating system emails.
It provides functionality to create and register new mail accounts, send emails between users, and perform various operations on emails such as deleting, archiving, marking as read
|
protected |
Notifies when an email fails to deliver.
This method is an event that is triggered when an email fails to deliver. It provides information about the sender, recipient, and the email settings.
FromUser | The user who sent the email. |
ToUser | The user who was supposed to receive the email. |
MailData | The email data that failed to deliver. |
|
protected |
Event handler that is called when an email account is registered.
EmailAccount | The email account that was registered.
|
|
protected |
Event handler for when an email is sent.
This event is triggered when an email is sent from one user to another.
FromUser | The user who sent the email. |
ToUser | The user who received the email. |
MailData | The data of the email that was sent. |
|
staticprotected |
Saves the mail singleton to a save slot. This function retrieves the plugin settings and obtains the mail save slot name. It then saves the mail singleton to the specified save slot using the SaveGameToSlot()
function provided by UGameplayStatics
. After successful saving, a log message is written indicating that the mail singleton has been saved.
Usage Example: