UNPKG

@peacockproject/core

Version:

Type definitions for Peacock's core.

29 lines (28 loc) 1.21 kB
import type { GameVersion, MissionType } from "../types/types"; export declare function initRp(): void; /** * Sets the user's Discord RP status to "browsing menus" if the feature is enabled. * * @param gameVersion The game version. */ export declare function swapToBrowsingMenusStatus(gameVersion: GameVersion): void; /** * Sets the user's Discord RP status to "idle" if the feature is enabled. */ export declare function swapToIdle(): void; /** * Sets the user's Discord RP status to playing something if the feature is enabled. * * @param scenePath The path to the loaded scene, used to determine names/assets used. * @param missionType The mission's type. * @param bricks The mission's loaded bricks. */ export declare function swapToLocationStatus(scenePath: string, missionType: MissionType, bricks: string[]): void; /** * Translates a scene path to a Discord RP asset and human-readable name. * * @param scenePath The scene path. * @param bricks The mission's loaded bricks. * @returns An array of the RP asset, human-readable name, and location human-readable name. */ export declare function scenePathToRpAsset(scenePath: string, bricks: string[]): [string, string, string] | undefined;