Worked on http endpoints for dynamic tile loading

This commit is contained in:
2024-10-28 23:23:10 +01:00
parent 8f8f019ab7
commit 8460d0b535
6 changed files with 142 additions and 76 deletions

9
src/utilities/zone.ts Normal file
View File

@ -0,0 +1,9 @@
export function FlattenZoneArray(tiles: string[][]) {
const normalArray = []
for (const row of tiles) {
normalArray.push(...row)
}
return normalArray
}