mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 06:45:24 +01:00
* Game stats ui handler takes save data as input * Make admin panel functional for local testing * Added button to show stats; mocking for local testing with current save data * Adding pokédex to admin panel * Many nice things * Fixed typo * Add backend support * Fixed button width in admin panel * Apply suggestions from code review --------- Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
24 lines
502 B
TypeScript
24 lines
502 B
TypeScript
export const AdminMode = Object.freeze({
|
|
LINK: 0,
|
|
SEARCH: 1,
|
|
ADMIN: 2,
|
|
});
|
|
|
|
export type AdminMode = (typeof AdminMode)[keyof typeof AdminMode];
|
|
|
|
/**
|
|
* Get the name of the admin mode.
|
|
* @param adminMode - The admin mode.
|
|
* @returns The Uppercase name of the admin mode.
|
|
*/
|
|
export function getAdminModeName(adminMode: AdminMode): string {
|
|
switch (adminMode) {
|
|
case AdminMode.LINK:
|
|
return "Link";
|
|
case AdminMode.SEARCH:
|
|
return "Search";
|
|
default:
|
|
return "";
|
|
}
|
|
}
|