Syntax
Lua |
---|
function PluginData.Load(dataScope, key, dataLoadEventHandler); |
Parameters
- dataScope
-
Type:
number
The scope of the data. Data scope can be specified to an Account, a Server, or to a specific Character.
- key
-
Type:
string
The key the data is stored under.
- dataLoadEventHandler
-
Type:
Object
A function that is called when the data loaded.
Remarks
This method deserializes object data. If the data is immediately available it will be returned. If the data is not immediately available this will return nil and the data loaded handler will be invoked later once the data is available.