Skip to main content

GameConfigAssetTypeUtils

Functions

isAssetType

GameConfigAssetTypeUtils.isAssetType(assetTypeany) → boolean

Returns true if the asset type is valid

getPlural

GameConfigAssetTypeUtils.getPlural(assetTypeGameConfigAssetType) → string

Gets the plural version of the asset type for instance naming

Show raw api
{
    "functions": [
        {
            "name": "isAssetType",
            "desc": "Returns true if the asset type is valid",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 32,
                "path": "src/gameconfig/src/Shared/Config/AssetTypes/GameConfigAssetTypeUtils.lua"
            }
        },
        {
            "name": "getPlural",
            "desc": "Gets the plural version of the asset type for instance naming",
            "params": [
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "GameConfigAssetType"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 42,
                "path": "src/gameconfig/src/Shared/Config/AssetTypes/GameConfigAssetTypeUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameConfigAssetTypeUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/gameconfig/src/Shared/Config/AssetTypes/GameConfigAssetTypeUtils.lua"
    }
}