From e7fc4018a5252d09f08074970b2ce6c4225d90ad Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 15 Aug 2024 18:40:53 +0200 Subject: [PATCH] pack.cells.routes --- Data-model.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Data-model.md b/Data-model.md index a437bee..6a90fa8 100644 --- a/Data-model.md +++ b/Data-model.md @@ -94,8 +94,7 @@ World data is mainly stored in typed arrays within `cells` object in both `grid` * `pack.cells.conf`: `number[]` - cells flux amount in confluences. Confluences are cells where rivers meet each other. `Uint16Array` * `pack.cells.harbor`: `number[]` - cells harbor score. Shows how many water cells are adjacent to the cell. Used for scoring. `Uint8Array` * `pack.cells.haven`: `number[]` - cells haven cells index. Each coastal cell has haven cells defined for correct routes building. `Uint16Array` or `Uint32Array` (depending on cells number) -* `pack.cells.road`: `number[]` - cells road score. Show whether there is route (inc. searoute) in the cell. `Uint16Array` -* `pack.cells.crossroad`: `number[]` - cells crossroad score. Show cells where multiple routes are crossing. `Uint16Array` +* `pack.cells.routes`: `object` - cells connections via routes. E.g. `pack.cells.routes[8] = {9: 306, 10: 306}` shows that cell `8` has two route connections - with cell `9` via route `306` and with cell `10` by route `306` * `pack.cells.q`: `object` - quadtree used for fast closest cell detection # Secondary data