Separated map drawing and map fog into separate action lists

This commit is contained in:
Mitchell McCaffrey
2020-04-28 22:05:47 +10:00
parent b34a7df443
commit 5e2c178118
7 changed files with 404 additions and 110 deletions

View File

@@ -19,8 +19,10 @@ const defaultMapState = {
tokens: {},
// An index into the draw actions array to which only actions before the
// index will be performed (used in undo and redo)
drawActionIndex: -1,
drawActions: [],
mapDrawActionIndex: -1,
mapDrawActions: [],
fogDrawActionIndex: -1,
fogDrawActions: [],
// Flags to determine what other people can edit
editFlags: ["map", "drawings", "tokens"],
};