ConfigAPI

A global API used to save and load avatar data between game sessions

ConfigAPI.name

Sets the name of the destination file, data will be saved and loaded from that file
Defaults to the avatar name
overload 1:
config:name(name)
Method Property Fluent Description Representation
name accepts a String
Return Value a ConfigAPI

ConfigAPI.load

Loads a saved variable under the specific key
If no key is given,
it will return a table with all saved variables
overload 1:
config:load()
Method Property Fluent Description Representation
Return Value a table
overload 2:
config:load(key)
Method Property Fluent Description Representation
key accepts a String
Return Value anything

ConfigAPI.setName

Sets the name of the destination file, data will be saved and loaded from that file
Defaults to the avatar name
overload 1:
config:setName(name)
Method Property Fluent Description Representation
name accepts a String
Return Value nil

ConfigAPI.save

Save to disk a variable under the specific key
If the value is nil,
the variable is removed from the file
overload 1:
config:save(key, value)
Method Property Fluent Description Representation
key accepts a String
value accepts anything
Return Value a ConfigAPI
a a