Skip to main content

GameConfigPicker

Provides an interface to query game configurations from assets in the world.

Functions​

ObserveActiveAssetOfTypeBrio​

GameConfigPicker:ObserveActiveAssetOfTypeBrio(assetType: string) → Observable<Brio<GameConfigAssetBase>>

Observes active assets of a given type. Great for badge views or other things.

ObserveActiveAssetOfAssetTypeAndKeyBrio​

GameConfigPicker:ObserveActiveAssetOfAssetTypeAndKeyBrio(
assetType: string,
assetKey: string
) → Observable<Brio<GameConfigAssetBase>>

Observes all active assets of a type and key.

maid:GiveTask(picker:ObserveActiveAssetOfAssetTypeAndKeyBrio(GameConfigAssetType.BADGE, "myBadge")
	:Pipe({
		RxStateStackUtils.topOfStack();
	}):Subscribe(function(activeBadge)
		print(activeBadge:GetId())
	end)

ObserveActiveAssetOfAssetTypeAndIdBrio​

GameConfigPicker:ObserveActiveAssetOfAssetTypeAndIdBrio(
assetType: string,
assetId: number
) → Observable<Brio<GameConfigAssetBase>>

Observes all active assets of a type and an id.

ObserveActiveAssetOfAssetIdBrio​

GameConfigPicker:ObserveActiveAssetOfAssetIdBrio(assetId: number) → Observable<Brio<GameConfigAssetBase>>

Observes all active assets of an id

ObserveActiveAssetOfKeyBrio​

GameConfigPicker:ObserveActiveAssetOfKeyBrio(assetKey: string) → Observable<Brio<GameConfigAssetBase>>

Observes all active assets of a key

ObserveActiveConfigsBrio​

GameConfigPicker:ObserveActiveConfigsBrio() → Observable<Brio<GameConfigAssetBase>>

Observes all active active assets

GetActiveConfigs​

GameConfigPicker:GetActiveConfigs() → {GameConfigAssetBase}

Gets all active configs that exist

FindFirstActiveAssetOfId​

GameConfigPicker:FindFirstActiveAssetOfId(
assetType: string,
assetId: number
) → GameConfigAssetBase

Find the first asset of a given id

FindFirstActiveAssetOfKey​

GameConfigPicker:FindFirstActiveAssetOfKey(
assetType: string,
assetKey: string
) → GameConfigAssetBase

Find the first asset of a given key

GetAllActiveAssetsOfType​

GameConfigPicker:GetAllActiveAssetsOfType(assetType: string) → {GameConfigAssetBase}

Gets all assets of a given type

Show raw api
{
    "functions": [
        {
            "name": "ObserveActiveAssetOfTypeBrio",
            "desc": "Observes active assets of a given type. Great for badge views or other things.",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 47,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "ObserveActiveAssetOfAssetTypeAndKeyBrio",
            "desc": "Observes all active assets of a type and key.\n\n```lua\nmaid:GiveTask(picker:ObserveActiveAssetOfAssetTypeAndKeyBrio(GameConfigAssetType.BADGE, \"myBadge\")\n\t:Pipe({\n\t\tRxStateStackUtils.topOfStack();\n\t}):Subscribe(function(activeBadge)\n\t\tprint(activeBadge:GetId())\n\tend)\n```",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "assetKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 74,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "ObserveActiveAssetOfAssetTypeAndIdBrio",
            "desc": "Observes all active assets of a type and an id.",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 92,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "ObserveActiveAssetOfAssetIdBrio",
            "desc": "Observes all active assets of an id",
            "params": [
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 109,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "ObserveActiveAssetOfKeyBrio",
            "desc": "Observes all active assets of a key",
            "params": [
                {
                    "name": "assetKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 126,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "ObserveActiveConfigsBrio",
            "desc": "Observes all active active assets",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<GameConfigAssetBase>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 142,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "GetActiveConfigs",
            "desc": "Gets all active configs that exist",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ GameConfigAssetBase }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 151,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "FindFirstActiveAssetOfId",
            "desc": "Find the first asset of a given id",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "GameConfigAssetBase"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 162,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "FindFirstActiveAssetOfKey",
            "desc": "Find the first asset of a given key",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "assetKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "GameConfigAssetBase"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 182,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        },
        {
            "name": "GetAllActiveAssetsOfType",
            "desc": "Gets all assets of a given type",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ GameConfigAssetBase }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 201,
                "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameConfigPicker",
    "desc": "Provides an interface to query game configurations from assets in the world.",
    "source": {
        "line": 5,
        "path": "src/gameconfig/src/Shared/Config/Picker/GameConfigPicker.lua"
    }
}