EBus interface used to listen for notifications related to the saving of persistent user data. More...
#include <SaveDataNotificationBus.h>
Inherits AZ::EBusTraits.
Classes | |
struct | DataBufferLoadedParams |
The parameters sent with a data buffer loaded notification. More... | |
struct | DataBufferSavedParams |
The parameters sent with a data buffer saved notification. More... | |
Public Types | |
enum class | Result { Success , ErrorCanceled , ErrorCorrupt , ErrorInvalid , ErrorNotFound , ErrorIOFailure , ErrorInProgress , ErrorOutOfMemory , ErrorSyncFailure , ErrorUnknownUser , ErrorUnspecified } |
Enum representing the result of a save or load data buffer request. More... | |
using | DataBuffer = AZStd::shared_ptr< void > |
Public Member Functions | |
virtual void | OnDataBufferSaved (const DataBufferSavedParams &dataBufferSavedParams)=0 |
virtual void | OnDataBufferLoaded (const DataBufferLoadedParams &dataBufferLoadedParams)=0 |
EBus interface used to listen for notifications related to the saving of persistent user data.
using SaveData::SaveDataNotifications::DataBuffer = AZStd::shared_ptr<void> |
DataBuffer is an alias for the shared_ptr to void loaded using a LoadDataBuffer request. Unlike SaveDataRequests::DataBuffer (a unique_ptr), SaveDataNotifications::DataBuffer is a shared_ptr so that listeners can decide whether they want/need to hold onto the memory.
|
strong |
Enum representing the result of a save or load data buffer request.
|
pure virtual |
Override to be notified when a data buffer load has completed, successfully or otherwise. Will always be broadcast from the main thread.
[in] | dataBufferLoadedParams | The data buffer loaded notification parameters. |
|
pure virtual |
Override to be notified when a data buffer save has completed, successfully or otherwise. Will always be broadcast from the main thread.
[in] | dataBufferSavedParams | The data buffer saved notification parameters. |