@recast-navigation/wasm 0.24.0 → 0.25.0

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.
@@ -805,6 +805,9 @@ declare module Recast {
805
805
  class NavMesh {
806
806
  constructor();
807
807
  constructor(navMesh: dtNavMesh);
808
+ get_m_navMesh(): dtNavMesh;
809
+ set_m_navMesh(m_navMesh: dtNavMesh): void;
810
+ m_navMesh: dtNavMesh;
808
811
  initSolo(navMeshData: UnsignedCharArray): boolean;
809
812
  initTiled(params: dtNavMeshParams): boolean;
810
813
  addTile(navMeshData: UnsignedCharArray, flags: number, lastRef: number, tileRef: UnsignedIntRef): number;
@@ -1485,6 +1488,12 @@ declare module Recast {
1485
1488
  setOffMeshConnections(navMeshCreateParams: dtNavMeshCreateParams, offMeshConCount: number, offMeshConVerts: ReadonlyArray<number>, offMeshConRad: ReadonlyArray<number>, offMeshConDirs: ReadonlyArray<number>, offMeshConAreas: ReadonlyArray<number>, offMeshConFlags: ReadonlyArray<number>, offMeshConUserId: ReadonlyArray<number>): void;
1486
1489
  createNavMeshData(params: dtNavMeshCreateParams): CreateNavMeshDataResult;
1487
1490
  }
1491
+ class dtTileCacheLayer {
1492
+ }
1493
+ class dtTileCacheContourSet {
1494
+ }
1495
+ class dtTileCachePolyMesh {
1496
+ }
1488
1497
  class dtTileCacheLayerHeader {
1489
1498
  constructor();
1490
1499
  get_magic(): number;
@@ -1728,4 +1737,55 @@ declare module Recast {
1728
1737
  exportNavMesh(navMesh: NavMesh, tileCache: TileCache): NavMeshExport;
1729
1738
  freeNavMeshExport(navMeshExport: NavMeshExport): void;
1730
1739
  }
1740
+ const DU_DRAW_POINTS: number;
1741
+ const DU_DRAW_LINES: number;
1742
+ const DU_DRAW_TRIS: number;
1743
+ const DU_DRAW_QUADS: number;
1744
+ type duDebugDrawPrimitives = typeof DU_DRAW_POINTS | typeof DU_DRAW_LINES | typeof DU_DRAW_TRIS | typeof DU_DRAW_QUADS;
1745
+ function _emscripten_enum_duDebugDrawPrimitives_DU_DRAW_POINTS(): duDebugDrawPrimitives;
1746
+ function _emscripten_enum_duDebugDrawPrimitives_DU_DRAW_LINES(): duDebugDrawPrimitives;
1747
+ function _emscripten_enum_duDebugDrawPrimitives_DU_DRAW_TRIS(): duDebugDrawPrimitives;
1748
+ function _emscripten_enum_duDebugDrawPrimitives_DU_DRAW_QUADS(): duDebugDrawPrimitives;
1749
+ class duDebugDraw {
1750
+ }
1751
+ class DebugDraw extends duDebugDraw {
1752
+ }
1753
+ class DebugDrawImpl extends DebugDraw {
1754
+ constructor();
1755
+ handleDepthMask(state: number): void;
1756
+ handleTexture(state: number): void;
1757
+ handleBegin(prim: number, size: number): void;
1758
+ handleVertexWithColor(x: number, y: number, z: number, color: number): void;
1759
+ handleVertexWithColorAndUV(x: number, y: number, z: number, color: number, u: number, v: number): void;
1760
+ handleEnd(): void;
1761
+ }
1762
+ class RecastDebugDraw {
1763
+ constructor();
1764
+ debugDrawHeightfieldSolid(dd: duDebugDraw, hf: rcHeightfield): void;
1765
+ debugDrawHeightfieldWalkable(dd: duDebugDraw, hf: rcHeightfield): void;
1766
+ debugDrawCompactHeightfieldSolid(dd: duDebugDraw, chf: rcCompactHeightfield): void;
1767
+ debugDrawCompactHeightfieldRegions(dd: duDebugDraw, chf: rcCompactHeightfield): void;
1768
+ debugDrawCompactHeightfieldDistance(dd: duDebugDraw, chf: rcCompactHeightfield): void;
1769
+ debugDrawHeightfieldLayer(dd: duDebugDraw, layer: rcHeightfieldLayer, idx: number): void;
1770
+ debugDrawHeightfieldLayers(dd: duDebugDraw, lset: rcHeightfieldLayerSet): void;
1771
+ debugDrawRegionConnections(dd: duDebugDraw, cset: rcContourSet, alpha: number): void;
1772
+ debugDrawRawContours(dd: duDebugDraw, cset: rcContourSet, alpha: number): void;
1773
+ debugDrawContours(dd: duDebugDraw, cset: rcContourSet, alpha: number): void;
1774
+ debugDrawPolyMesh(dd: duDebugDraw, mesh: rcPolyMesh): void;
1775
+ debugDrawPolyMeshDetail(dd: duDebugDraw, dmesh: rcPolyMeshDetail): void;
1776
+ }
1777
+ class DetourDebugDraw {
1778
+ constructor();
1779
+ debugDrawNavMesh(dd: duDebugDraw, mesh: dtNavMesh, flags: number): void;
1780
+ debugDrawNavMeshWithClosedList(dd: duDebugDraw, mesh: dtNavMesh, query: dtNavMeshQuery, flags: number): void;
1781
+ debugDrawNavMeshNodes(dd: duDebugDraw, query: dtNavMeshQuery): void;
1782
+ debugDrawNavMeshBVTree(dd: duDebugDraw, mesh: dtNavMesh): void;
1783
+ debugDrawNavMeshPortals(dd: duDebugDraw, mesh: dtNavMesh): void;
1784
+ debugDrawNavMeshPolysWithFlags(dd: duDebugDraw, mesh: dtNavMesh, flags: number, col: number): void;
1785
+ debugDrawNavMeshPoly(dd: duDebugDraw, mesh: dtNavMesh, ref: number, col: number): void;
1786
+ debugDrawTileCacheLayerAreas(dd: duDebugDraw, layer: dtTileCacheLayer, cs: number, ch: number): void;
1787
+ debugDrawTileCacheLayerRegions(dd: duDebugDraw, layer: dtTileCacheLayer, cs: number, ch: number): void;
1788
+ debugDrawTileCacheContours(dd: duDebugDraw, lcset: dtTileCacheContourSet, orig: ReadonlyArray<number>, cs: number, ch: number): void;
1789
+ debugDrawTileCachePolyMesh(dd: duDebugDraw, pmesh: dtTileCachePolyMesh, orig: ReadonlyArray<number>, cs: number, ch: number): void;
1790
+ }
1731
1791
  }