Renamed zone > map
This commit is contained in:
15
src/services/mapService.ts
Normal file
15
src/services/mapService.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { BaseService } from '#application/base/baseService'
|
||||
|
||||
class MapService extends BaseService {
|
||||
public flattenMapArray(tiles: string[][]) {
|
||||
const normalArray = []
|
||||
|
||||
for (const row of tiles) {
|
||||
normalArray.push(...row)
|
||||
}
|
||||
|
||||
return normalArray
|
||||
}
|
||||
}
|
||||
|
||||
export default new MapService()
|
Reference in New Issue
Block a user