Added name to map and added default props

This commit is contained in:
Mitchell McCaffrey
2020-04-26 12:26:32 +10:00
parent 049a8f5c00
commit 4c667e9c5f
4 changed files with 26 additions and 5 deletions

View File

@@ -14,8 +14,9 @@ export const mapSources = {
wood: woodImage,
};
export const maps = Object.keys(mapSources).map((name) => ({
name,
export const maps = Object.keys(mapSources).map((key) => ({
key,
name: key.charAt(0).toUpperCase() + key.slice(1),
gridX: 22,
gridY: 22,
width: 1024,