mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 12:15:06 -04:00
38 lines
754 B
TypeScript
38 lines
754 B
TypeScript
![]() |
import {rawUpgrades} from "./rawUpgrades";
|
||
|
|
||
|
export type RawLevel = {
|
||
|
name: string;
|
||
|
size: number;
|
||
|
bricks: string;
|
||
|
svg: string;
|
||
|
color: string;
|
||
|
};
|
||
|
export type Level = {
|
||
|
name: string;
|
||
|
size: number;
|
||
|
bricks: string[];
|
||
|
svg: string;
|
||
|
color: string;
|
||
|
threshold?: number;
|
||
|
sortKey?: number;
|
||
|
};
|
||
|
|
||
|
export type Palette = { [k: string]: string }
|
||
|
|
||
|
export type Upgrade={
|
||
|
threshold: number;
|
||
|
giftable: boolean;
|
||
|
"id": string;
|
||
|
"name": string;
|
||
|
"max": number;
|
||
|
help: (lvl:string) => string;
|
||
|
fullHelp: string;
|
||
|
requires:PerkId|''
|
||
|
}
|
||
|
|
||
|
|
||
|
export type PerkId = typeof rawUpgrades[number]['id']
|
||
|
|
||
|
declare global {
|
||
|
interface Window { webkitAudioContext: typeof AudioContext; }
|
||
|
}
|