-
Notifications
You must be signed in to change notification settings - Fork 0
Public API Reference
This section documents the public API provided by LibSavedVars. The public API is the supported interface addon developers should use when creating, accessing, and managing saved variables.
Internal implementation functions and classes are not covered here and may change between library versions.
LibSavedVars provides APIs for:
Creating account-wide saved variables.
Creating character-specific saved variables.
Managing defaults.
Handling version upgrades and migrations.
Switching between account-wide and character settings.
Pinning selected settings to account-wide storage.
Accessing raw saved variable data.
Iterating over active settings.
Creates an account-wide saved variable object.
local settings = LibSavedVars:NewAccountWide(
savedVariableName,
version,
namespace,
defaults
)
This API provides the building blocks needed to manage simple settings as well as complex, evolving saved data structures.