@aethervtt/shard-nav 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bake.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ import { type Query, type World } from '@aethervtt/shard-core';
2
+ import { type OffMeshLinkParams } from './recast.js';
3
+ import { type NavState } from './state.js';
4
+ interface BakeQueries {
5
+ grids: Query;
6
+ meshes: Query;
7
+ sources: Query;
8
+ links: Query;
9
+ colliders: Query;
10
+ }
11
+ /**
12
+ * Brings grids and navmeshes up to date with everything changed since tick `since`. The bake
13
+ * system runs it every frame; `nav.bake` runs it on demand.
14
+ */
15
+ export declare function updateNavigation(world: World, since: number, s?: BakeQueries): void;
16
+ /**
17
+ * Keeps grids and navmeshes current (spec 0037): builds NavGrids from their data, tilemap, or
18
+ * colliders, and rebakes the NavMesh tiles whose geometry changed, from the tile cache when it
19
+ * has them.
20
+ */
21
+ export declare const navBake: import("@aethervtt/shard-core").SystemDef<BakeQueries>;
22
+ /** Why NavMesh entities have no navmesh when Recast isn't loaded. */
23
+ export declare const NO_RECAST = "nav/no-navmesh: Recast is not loaded; add the nav plugin (nav/grid only does grids)";
24
+ /** Keys of every tile any navmesh holds now (what `saveNavCache` keeps). */
25
+ export declare function liveTileKeys(nav: NavState): string[];
26
+ export type { OffMeshLinkParams };