2021-07-08 12:01:02 +10:00
|
|
|
import { Drawing } from "./Drawing";
|
2021-07-16 14:55:33 +10:00
|
|
|
import { FogState } from "./Fog";
|
2021-07-08 12:01:02 +10:00
|
|
|
import { Note } from "./Note";
|
|
|
|
|
import { TokenState } from "./TokenState";
|
|
|
|
|
|
|
|
|
|
export type EditFlag = "drawing" | "tokens" | "notes" | "fog";
|
|
|
|
|
|
|
|
|
|
export type MapState = {
|
|
|
|
|
tokens: Record<string, TokenState>;
|
|
|
|
|
drawShapes: Record<string, Drawing>;
|
2021-07-16 14:55:33 +10:00
|
|
|
fogShapes: FogState;
|
2021-07-08 12:01:02 +10:00
|
|
|
editFlags: Array<EditFlag>;
|
|
|
|
|
notes: Record<string, Note>;
|
|
|
|
|
mapId: string;
|
|
|
|
|
};
|