Skip to main content

AvatarEditorInventory

Functions

new

AvatarEditorInventory.new() → AvatarEditorInventory

Constructs a new AvatarEditorInventory

PromiseProcessPages

AvatarEditorInventory.PromiseProcessPages(
inventoryPagesPages
) → Promise.Promise<()>

Processes the pages and stores the asset data in the inventory.

IsAssetIdInInventory

AvatarEditorInventory.IsAssetIdInInventory(
assetIdnumber
) → boolean

Returns the asset data for the given assetId.

ObserveAssetIdInInventory

AvatarEditorInventory.ObserveAssetIdInInventory(
assetIdnumber
) → Observable<AssetData>

Observes the assetId in the inventory. Returns true if it is in the inventory.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new AvatarEditorInventory",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "AvatarEditorInventory"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 33,
                "path": "src/avatareditorutils/src/Client/AvatarEditorInventory.lua"
            }
        },
        {
            "name": "PromiseProcessPages",
            "desc": "Processes the pages and stores the asset data in the inventory.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "AvatarEditorInventory"
                },
                {
                    "name": "inventoryPages",
                    "desc": "",
                    "lua_type": "Pages"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<()>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 46,
                "path": "src/avatareditorutils/src/Client/AvatarEditorInventory.lua"
            }
        },
        {
            "name": "IsAssetIdInInventory",
            "desc": "Returns the asset data for the given assetId.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "AvatarEditorInventory"
                },
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 78,
                "path": "src/avatareditorutils/src/Client/AvatarEditorInventory.lua"
            }
        },
        {
            "name": "ObserveAssetIdInInventory",
            "desc": "Observes the assetId in the inventory. Returns true if it is in the inventory.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "AvatarEditorInventory"
                },
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<AssetData>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 87,
                "path": "src/avatareditorutils/src/Client/AvatarEditorInventory.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "AvatarEditorInventory",
    "desc": "",
    "source": {
        "line": 5,
        "path": "src/avatareditorutils/src/Client/AvatarEditorInventory.lua"
    }
}