Skip to main content

NevermoreManifestConfigProvider

This item only works when running on the server. Server

Registers the deploy target's places -- read from the nevermore CLI manifest baked into the running place -- as PLACE assets in GameConfigService, each at a high priority so it wins over a hand-authored place sharing the same key (see GameConfigPicker.FindFirstActiveAssetOfKey).

Add it to a server ServiceBag after [GameConfigService]:

serviceBag:GetService(require("GameConfigService"))
serviceBag:GetService(require("NevermoreManifestConfigProvider"))

In Studio or an undeployed build the manifest place table is empty, so nothing is registered and hand-authored config resolves exactly as before.

Show raw api
{
    "functions": [
        {
            "name": "_applyPlaces",
            "desc": "Registers each named place as a high-priority PLACE asset. Nameless entries\n(single-place targets) are skipped -- there is no config key to bind them to.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "NevermoreManifestConfigProvider"
                },
                {
                    "name": "places",
                    "desc": "",
                    "lua_type": "{ NevermoreCLIManifestUtils.ManifestPlace }"
                }
            ],
            "returns": [],
            "function_type": "static",
            "private": true,
            "source": {
                "line": 64,
                "path": "src/gameconfig/src/Server/Manifest/NevermoreManifestConfigProvider.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "NevermoreManifestConfigProvider",
    "desc": "Registers the deploy target's places -- read from the nevermore CLI manifest\nbaked into the running place -- as PLACE assets in [GameConfigService], each\nat a high priority so it wins over a hand-authored place sharing the same key\n(see [GameConfigPicker.FindFirstActiveAssetOfKey]).\n\nAdd it to a server [ServiceBag] after [GameConfigService]:\n\n```lua\nserviceBag:GetService(require(\"GameConfigService\"))\nserviceBag:GetService(require(\"NevermoreManifestConfigProvider\"))\n```\n\nIn Studio or an undeployed build the manifest place table is empty, so nothing\nis registered and hand-authored config resolves exactly as before.",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 21,
        "path": "src/gameconfig/src/Server/Manifest/NevermoreManifestConfigProvider.lua"
    }
}