#include <UserSettingsProvider.h>
Inherits AZ::EBusTraits.
Public Member Functions | |
virtual AZStd::intrusive_ptr< UserSettings > | FindUserSettings (u32 id)=0 |
Returns pointer to stored user data, or nullptr if no data has been stored. | |
virtual void | AddUserSettings (u32 id, UserSettings *settings)=0 |
virtual bool | Save (const char *settingsPath, SerializeContext *sc)=0 |
Static Public Attributes | |
static const EBusHandlerPolicy | HandlerPolicy = EBusHandlerPolicy::Single |
static const EBusAddressPolicy | AddressPolicy = EBusAddressPolicy::ById |
![]() | |
static constexpr EBusHandlerPolicy | HandlerPolicy = EBusHandlerPolicy::Multiple |
static constexpr EBusAddressPolicy | AddressPolicy = EBusAddressPolicy::Single |
static constexpr bool | EnableEventQueue = false |
static constexpr bool | EventQueueingActiveByDefault = true |
static constexpr bool | EnableQueuedReferences = false |
static constexpr bool | LocklessDispatch = false |
Additional Inherited Members | |
![]() | |
~EBusTraits ()=default | |
Messages to get/set user data. We use smart pointers to make sure we don't delete any data before it's saved and safe for delete.
|
pure virtual |
Add user settings into the system, they are stored on exit and loaded on start. IMPORTANT: Your derived user settings MUST be reflected in the SerializeContext (usually in your component serialize function). IMPORTANT: Make sure the user settings handler is started otherwise you data will not be stored!
|
pure virtual |
Save the current settings to the current path specified