Skip to main content

GameConfigAssetBase

Functions

new

GameConfigAssetBase.new(
objFolder,
serviceBagServiceBag
) → GameConfigAssetBase

Constructs a new GameConfigAssetBase. Should be done via binder. This is a base class.

ObserveTranslatedName

GameConfigAssetBase:ObserveTranslatedName() → Observable<string>

Observes the translated name

ObserveTranslatedDescription

GameConfigAssetBase:ObserveTranslatedDescription() → Observable<string>

Observes the translated description

GetAssetId

GameConfigAssetBase:GetAssetId() → number

Gets the asset id

ObserveAssetId

GameConfigAssetBase:ObserveAssetId() → Observable<number>

Observes the assetId

GetAssetType

GameConfigAssetBase:GetAssetType() → string?

Gets the asset type

ObserveAssetType

GameConfigAssetBase:ObserveAssetType() → Observable<string?>

Observes the asset type

ObserveAssetKey

GameConfigAssetBase:ObserveAssetKey() → Observable<string>

Observes the asset key

GetAssetKey

GameConfigAssetBase:GetAssetKey() → string

Gets the asset key

ObserveState

GameConfigAssetBase:ObserveState() → any

Observes the asset state

PromiseCloudPriceInRobux

GameConfigAssetBase:PromiseCloudPriceInRobux(cancelTokenCancelToken) → Promise<string?>

Promises the cloud price in Robux

PromiseCloudName

GameConfigAssetBase:PromiseCloudName(cancelTokenCancelToken) → Promise<string?>

Promises the cloud price in Robux

PromiseColor

GameConfigAssetBase:PromiseColor(_cancelTokenCancelToken) → Promise<Color3>

Promises the color of the game asset (for dialog and other systems)

PromiseNameTranslationKey

GameConfigAssetBase:PromiseNameTranslationKey(cancelTokenCancelToken) → Promise<string?>

Promises the name translation key

ObserveNameTranslationKey

GameConfigAssetBase:ObserveNameTranslationKey() → Observable<string?>

Observes the name translation key.

ObserveDescriptionTranslationKey

GameConfigAssetBase:ObserveDescriptionTranslationKey() → Observable<string?>

Observes the description translation key.

ObserveCloudName

GameConfigAssetBase:ObserveCloudName() → Observable<string?>

Observes the cloud name. See GameConfigAssetBase.ObserveNameTranslationKey for translation keys.

ObserveCloudDescription

GameConfigAssetBase:ObserveCloudDescription() → Observable<string?>

Observes the cloud name. See GameConfigAssetBase.ObserveDescriptionTranslationKey for translation keys.

ObserveCloudPriceInRobux

GameConfigAssetBase:ObserveCloudPriceInRobux() → Observable<number?>

Observes the cost in Robux.

ObserveCloudIconImageAssetId

GameConfigAssetBase:ObserveCloudIconImageAssetId() → Observable<number?>
Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new GameConfigAssetBase. Should be done via binder. This is a base class.",
            "params": [
                {
                    "name": "obj",
                    "desc": "",
                    "lua_type": "Folder"
                },
                {
                    "name": "serviceBag",
                    "desc": "",
                    "lua_type": "ServiceBag"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "GameConfigAssetBase"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 27,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveTranslatedName",
            "desc": "Observes the translated name",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 43,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveTranslatedDescription",
            "desc": "Observes the translated description",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 55,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "GetAssetId",
            "desc": "Gets the asset id",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 79,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveAssetId",
            "desc": "Observes the assetId",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 87,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "GetAssetType",
            "desc": "Gets the asset type",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 95,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveAssetType",
            "desc": "Observes the asset type",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 103,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveAssetKey",
            "desc": "Observes the asset key",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 111,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "GetAssetKey",
            "desc": "Gets the asset key",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 119,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveState",
            "desc": "Observes the asset state",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 127,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "PromiseCloudPriceInRobux",
            "desc": "Promises the cloud price in Robux",
            "params": [
                {
                    "name": "cancelToken",
                    "desc": "",
                    "lua_type": "CancelToken"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 140,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "PromiseCloudName",
            "desc": "Promises the cloud price in Robux",
            "params": [
                {
                    "name": "cancelToken",
                    "desc": "",
                    "lua_type": "CancelToken"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 149,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "PromiseColor",
            "desc": "Promises the color of the game asset (for dialog and other systems)",
            "params": [
                {
                    "name": "_cancelToken",
                    "desc": "",
                    "lua_type": "CancelToken"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<Color3>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 157,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "PromiseNameTranslationKey",
            "desc": "Promises the name translation key",
            "params": [
                {
                    "name": "cancelToken",
                    "desc": "",
                    "lua_type": "CancelToken"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 166,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveNameTranslationKey",
            "desc": "Observes the name translation key.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 174,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveDescriptionTranslationKey",
            "desc": "Observes the description translation key.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 182,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveCloudName",
            "desc": "Observes the cloud name. See [GameConfigAssetBase.ObserveNameTranslationKey] for\ntranslation keys.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 191,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveCloudDescription",
            "desc": "Observes the cloud name. See [GameConfigAssetBase.ObserveDescriptionTranslationKey] for\ntranslation keys.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 200,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveCloudPriceInRobux",
            "desc": "Observes the cost in Robux.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 208,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        },
        {
            "name": "ObserveCloudIconImageAssetId",
            "desc": "",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number?>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 215,
                "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameConfigAssetBase",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/gameconfig/src/Shared/Config/Asset/GameConfigAssetBase.lua"
    }
}