Move to global undo and combined map action state
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user