Cosmos Journeyer API Documentation - v1.10.4
    Preparing search index...
    interface ISaveBackend {
        addAutoSave(
            cmdrUuid: string,
            save: DeepReadonly<Save>,
        ): Promise<boolean>;
        addManualSave(cmdrUuid: string, save: DeepReadonly<Save>): Promise<boolean>;
        deleteCmdr(cmdrUuid: string): Promise<boolean>;
        deleteSaveForCmdr(cmdrUuid: string, saveUuid: string): Promise<boolean>;
        exportSaves(): Promise<Record<string, CmdrSaves>>;
        getCmdrUuids(): Promise<string[]>;
        getSavesForCmdr(cmdrUuid: string): Promise<undefined | CmdrSaves>;
        importSaves(
            saves: DeepReadonly<Record<string, CmdrSaves>>,
        ): Promise<boolean>;
    }

    Implemented by

    Index

    Methods

    • Removes a commander and all its saves

      Parameters

      • cmdrUuid: string

        The cmdr uuid

      Returns Promise<boolean>

    • Deletes the given save for the commander

      Parameters

      • cmdrUuid: string

        The cmdr uuid

      • saveUuid: string

        The uuid of the save to remove

      Returns Promise<boolean>

    • Retrieves saves for a specific commander.

      Parameters

      • cmdrUuid: string

        The commander uuid

      Returns Promise<undefined | CmdrSaves>

      The commander's saves, or undefined if none exist