first pass of settings in local storage

This commit is contained in:
Viktor Rådberg
2023-09-27 20:01:34 +02:00
parent abae6f85e3
commit bcaab4fdb0
5 changed files with 65 additions and 24 deletions

14
src/Types/Settings.ts Normal file
View File

@@ -0,0 +1,14 @@
import { GridTemplateAreas } from '../Data/GridTemplateAreas';
export type Settings = {
keepAwake: boolean;
showStartingPlayer: boolean;
goFullscreenOnStart: boolean;
};
export type InitialGameSettings = {
startingLifeTotal: number;
useCommanderDamage: boolean;
numberOfPlayers: number;
gridAreas: GridTemplateAreas;
};