#include <UserSettings.h>
Public Types | |
enum | ContainerType { CT_LOCAL , CT_GLOBAL , CT_MAX } |
Public Member Functions | |
AZ_RTTI (AZ::UserSettings, "{CCA8EFE4-C4D6-49AD-80A1-70700118A9ED}") | |
Static Public Member Functions | |
template<typename T > | |
static AZStd::intrusive_ptr< T > | CreateFind (u32 settingId, u32 providerId) |
template<typename T > | |
static AZStd::intrusive_ptr< T > | Find (u32 settingId, u32 providerId) |
template<typename T > | |
static void | Release (AZStd::intrusive_ptr< T > &userSetting) |
static bool | Save (u32 providerId, const char *settingsPath, SerializeContext *sc) |
static void | Reflect (ReflectContext *context) |
Protected Member Functions | |
void | add_ref () |
void | release () |
Protected Attributes | |
size_t | m_refCount |
Friends | |
template<class T > | |
struct | AZStd::IntrusivePtrCountPolicy |
Base class for all user settings, user settings are data data is stored locally to the machine. It should contain only locally stored data. Important: All user settings are owned by the UserSettings components. Creation and Destruction should be view aznew/delete. Because the component will assume we can just delete the object. (we can change that if needed)
|
static |
Create or find a user data with the specific ID and serialization type. Uses UserSettingsBus
id | - user data instance id |
typeId | - UUID of the data type, registered with the SerializeContext. We can't manage (load/save) user settings if they are NOT stored in the system. You should use RTTI AZ::Internal::TypeToUUID<T>::s_uuid to get UUID or use templated function. |