solvable-sheep-game/src/themes/interface.ts
2022-09-20 16:49:30 +08:00

21 lines
358 B
TypeScript

import { ReactNode } from 'react';
export interface Icon<T = string> {
name: string;
content: ReactNode;
clickSound: T;
tripleSound: T;
}
interface Sound<T = string> {
name: T;
src: string;
}
export interface Theme<SoundNames> {
name: string;
bgm?: string;
icons: Icon<SoundNames>[];
sounds: Sound<SoundNames>[];
}