Skip to main content

GameConfigService

Functions

Init

GameConfigService:Init(serviceBagServiceBag) → ()

Initializes the configuration service. Should be done via ServiceBag.

Start

GameConfigService:Start() → ()

Starts the configuration service. Should be done via ServiceBag.

AddBadge

GameConfigService:AddBadge(
assetKeystring,--

Key name to use for the badge

badgeIdnumber--

Cloud id

) → ()

Adds a new badge with the key configured to the assetKey

AddProduct

GameConfigService:AddProduct(
assetKeystring,--

Key name to use for the product

productIdnumber--

Cloud id

) → ()

Adds a new product with the key configured to the assetKey

AddPass

GameConfigService:AddPass(
assetKeystring,--

Key name to use for the pass

passIdnumber--

Cloud id

) → ()

Adds a new pass with the key configured to the assetKey

AddPlace

GameConfigService:AddPlace(
assetKeystring,--

Key name to use for the place

placeIdnumber--

Cloud id

) → ()

Adds a new place with the key configured to the assetKey

AddAsset

GameConfigService:AddAsset(
assetKeystring,--

Key name to use for the asset

assetIdnumber--

Cloud id

) → ()

Adds a new asset with the key configured to the assetKey

AddBundle

GameConfigService:AddBundle(
assetKeystring,--

Key name to use for the bundle

bundleIdnumber--

Cloud id

) → ()

Adds a new bundle with the key configured to the assetKey

AddTypedAsset

GameConfigService:AddTypedAsset(
assetTypeGameConfigAssetType,
assetKeystring,--

Key name to use for the bundle

assetIdnumber--

Cloud id

) → ()

Adds a new asset with the specified type

GetConfigPicker

GameConfigService:GetConfigPicker() → GameConfigPicker

Gets the current config picker

GetPreferredParent

GameConfigService:GetPreferredParent() → Instance

Returns the preferred parent for the configuration service

Destroy

GameConfigService:Destroy() → ()

Cleans up the configuration service. Should be done via ServiceBag.

Show raw api
{
    "functions": [
        {
            "name": "Init",
            "desc": "Initializes the configuration service. Should be done via [ServiceBag].",
            "params": [
                {
                    "name": "serviceBag",
                    "desc": "",
                    "lua_type": "ServiceBag"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 25,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "Start",
            "desc": "Starts the configuration service. Should be done via [ServiceBag].",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 48,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddBadge",
            "desc": "Adds a new badge with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the badge",
                    "lua_type": "string"
                },
                {
                    "name": "badgeId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 58,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddProduct",
            "desc": "Adds a new product with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the product",
                    "lua_type": "string"
                },
                {
                    "name": "productId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 67,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddPass",
            "desc": "Adds a new pass with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the pass",
                    "lua_type": "string"
                },
                {
                    "name": "passId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 76,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddPlace",
            "desc": "Adds a new place with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the place",
                    "lua_type": "string"
                },
                {
                    "name": "placeId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 85,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddAsset",
            "desc": "Adds a new asset with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the asset",
                    "lua_type": "string"
                },
                {
                    "name": "assetId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 94,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddBundle",
            "desc": "Adds a new bundle with the key configured to the `assetKey`",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the bundle",
                    "lua_type": "string"
                },
                {
                    "name": "bundleId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 103,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "AddTypedAsset",
            "desc": "Adds a new asset with the specified type",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "GameConfigAssetType"
                },
                {
                    "name": "assetKey",
                    "desc": "Key name to use for the bundle",
                    "lua_type": "string"
                },
                {
                    "name": "assetId",
                    "desc": "Cloud id",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 114,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "GetConfigPicker",
            "desc": "Gets the current config picker",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "GameConfigPicker"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 132,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "GetPreferredParent",
            "desc": "Returns the preferred parent for the configuration service",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 141,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        },
        {
            "name": "Destroy",
            "desc": "Cleans up the configuration service. Should be done via [ServiceBag].",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 162,
                "path": "src/gameconfig/src/Server/GameConfigService.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameConfigService",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/gameconfig/src/Server/GameConfigService.lua"
    }
}