mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: fix ts errors
This commit is contained in:
parent
98ae3292fc
commit
3018d94618
17 changed files with 83 additions and 54 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import {ERROR} from "../config/logging";
|
||||
|
||||
interface IPromptStringOptions {
|
||||
default: string;
|
||||
required?: boolean;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {rn} from "utils/numberUtils";
|
|||
export function reGraph() {
|
||||
TIME && console.time("reGraph");
|
||||
const {cells: gridCells, points, features} = grid;
|
||||
const newCells: {p: number[][]; g: number[]; h: number[]} = {p: [], g: [], h: []}; // store new data
|
||||
const newCells: {p: TPoints; g: number[]; h: number[]} = {p: [], g: [], h: []}; // store new data
|
||||
const spacing2 = grid.spacing ** 2;
|
||||
|
||||
for (const i of gridCells.i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue