Show raw api
{
"functions": [
{
"name": "create",
"desc": "Creates a new player settings",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "Folder"
}
],
"function_type": "static",
"source": {
"line": 21,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "getAttributeName",
"desc": "Gets the attribute name for a setting",
"params": [
{
"name": "settingName",
"desc": "",
"lua_type": "string"
}
],
"returns": [
{
"desc": "",
"lua_type": "string"
}
],
"function_type": "static",
"source": {
"line": 35,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "getSettingName",
"desc": "Gets the settings name from an attribute. May return a string\nthat cannot be loaded into datastore.",
"params": [
{
"name": "attributeName",
"desc": "",
"lua_type": "string"
}
],
"returns": [
{
"desc": "",
"lua_type": "string"
}
],
"function_type": "static",
"source": {
"line": 49,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "isSettingAttribute",
"desc": "Returns true if the attribute name is a settings attribute",
"params": [
{
"name": "attributeName",
"desc": "",
"lua_type": "string"
}
],
"returns": [
{
"desc": "",
"lua_type": "string"
}
],
"function_type": "static",
"source": {
"line": 61,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "encodeForNetwork",
"desc": "Encodes a given value for network transfer",
"params": [
{
"name": "settingValue",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "any"
}
],
"function_type": "static",
"source": {
"line": 73,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "decodeForNetwork",
"desc": "Decodes a given value from network transfer",
"params": [
{
"name": "settingValue",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "any"
}
],
"function_type": "static",
"source": {
"line": 91,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "decodeForAttribute",
"desc": "Decodes a given value for attribute storage",
"params": [
{
"name": "settingValue",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "any"
}
],
"function_type": "static",
"source": {
"line": 107,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
},
{
"name": "encodeForAttribute",
"desc": "Encodes a given value for attribute storage",
"params": [
{
"name": "settingValue",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "any"
}
],
"function_type": "static",
"source": {
"line": 121,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
}
],
"properties": [],
"types": [],
"name": "PlayerSettingsUtils",
"desc": "Utility helpers to work with settings.",
"source": {
"line": 6,
"path": "src/settings/src/Shared/Player/PlayerSettingsUtils.lua"
}
}