mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 10:08:11 +00:00
created path finding web worker
This commit is contained in:
@@ -2,6 +2,7 @@ import { decodePNGFromStream } from 'pureimage'; import path from 'path';
|
||||
import fs from 'fs/promises';
|
||||
import { createReadStream } from 'fs';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { TerrainTile } from '../core/game/Game';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
@@ -21,6 +22,8 @@ export class TerrainMap {
|
||||
return this.tiles[coord.x][coord.y]
|
||||
}
|
||||
|
||||
|
||||
|
||||
width(): number {
|
||||
return this.tiles.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user