Skip to main content

HasSaveSlotsClient

Functions

PromiseHasSlot

HasSaveSlotsClient.PromiseHasSlot(
slotIdSaveSlotData.SlotId?
) → Promise.Promise<boolean>

Returns whether the slot with the given ID exists

PromiseSelectSlot

HasSaveSlotsClient.PromiseSelectSlot(
slotIdSaveSlotData.SlotId
) → Promise.Promise<any>

Selects the slot with the given ID

PromiseCreateSlot

HasSaveSlotsClient.PromiseCreateSlot(
slotIndexnumber,
metadataSaveSlotData.SaveSlotMetadata?
) → Promise.Promise<any>

Creates a slot at the given index

PromiseDeleteSlot

HasSaveSlotsClient.PromiseDeleteSlot(
slotIdSaveSlotData.SlotId
) → Promise.Promise<any>

Deletes the slot with the given ID

PromiseSetSlotMetadata

HasSaveSlotsClient.PromiseSetSlotMetadata(
slotIdSaveSlotData.SlotId,
dataSaveSlotData.SaveSlotMetadata
) → Promise.Promise<any>

Sets the metadata for the slot with the given ID

PromiseGetSlotMetadata

HasSaveSlotsClient.PromiseGetSlotMetadata(
slotIdSaveSlotData.SlotId
) → Promise.Promise<SaveSlotData.SaveSlotMetadata?>

Gets the metadata for the slot with the given ID

PromiseLastActiveSlotId

HasSaveSlotsClient.PromiseLastActiveSlotId(selfHasSaveSlotsClient) → Promise.Promise<SaveSlotData.SlotId?>

Gets the last active slot ID

PromiseSlotIdFromIndex

HasSaveSlotsClient.PromiseSlotIdFromIndex(
slotIndexnumber
) → Promise.Promise<SaveSlotData.SlotId?>

Returns the slot ID from the given index

Show raw api
{
    "functions": [
        {
            "name": "PromiseHasSlot",
            "desc": "Returns whether the slot with the given ID exists",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotId",
                    "desc": "",
                    "lua_type": "SaveSlotData.SlotId?\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<boolean>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 52,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseSelectSlot",
            "desc": "Selects the slot with the given ID",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotId",
                    "desc": "",
                    "lua_type": "SaveSlotData.SlotId\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<any>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 62,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseCreateSlot",
            "desc": "Creates a slot at the given index",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotIndex",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "metadata",
                    "desc": "",
                    "lua_type": "SaveSlotData.SaveSlotMetadata?\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<any>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 72,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseDeleteSlot",
            "desc": "Deletes the slot with the given ID",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotId",
                    "desc": "",
                    "lua_type": "SaveSlotData.SlotId\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<any>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 83,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseSetSlotMetadata",
            "desc": "Sets the metadata for the slot with the given ID",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotId",
                    "desc": "",
                    "lua_type": "SaveSlotData.SlotId"
                },
                {
                    "name": "data",
                    "desc": "",
                    "lua_type": "SaveSlotData.SaveSlotMetadata\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<any>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 93,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseGetSlotMetadata",
            "desc": "Gets the metadata for the slot with the given ID",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotId",
                    "desc": "",
                    "lua_type": "SaveSlotData.SlotId\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<SaveSlotData.SaveSlotMetadata?>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 104,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseLastActiveSlotId",
            "desc": "Gets the last active slot ID",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<SaveSlotData.SlotId?>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 114,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        },
        {
            "name": "PromiseSlotIdFromIndex",
            "desc": "Returns the slot ID from the given index",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "HasSaveSlotsClient"
                },
                {
                    "name": "slotIndex",
                    "desc": "",
                    "lua_type": "number\n"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise.Promise<SaveSlotData.SlotId?>\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 121,
                "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "HasSaveSlotsClient",
    "desc": "",
    "source": {
        "line": 5,
        "path": "src/saveslot/src/Client/Binders/HasSaveSlotsClient.lua"
    }
}