Move to global undo and combined map action state

This commit is contained in:
Mitchell McCaffrey
2021-07-20 21:45:18 +10:00
parent b703a08d2c
commit 54bc3502df
9 changed files with 128 additions and 190 deletions

View File

@@ -1,15 +1,15 @@
import { DrawingState } from "./Drawing";
import { FogState } from "./Fog";
import { Note } from "./Note";
import { TokenState } from "./TokenState";
import { Notes } from "./Note";
import { TokenStates } from "./TokenState";
export type EditFlag = "drawing" | "tokens" | "notes" | "fog";
export type MapState = {
tokens: Record<string, TokenState>;
tokens: TokenStates;
drawShapes: DrawingState;
fogShapes: FogState;
editFlags: Array<EditFlag>;
notes: Record<string, Note>;
notes: Notes;
mapId: string;
};