UNPKG

@esengine/pathfinding

Version:

寻路系统 | Pathfinding System - A*, Grid, NavMesh

29 lines (28 loc) 762 B
// src/core/IIncrementalPathfinding.ts var PathfindingState = /* @__PURE__ */ (function(PathfindingState2) { PathfindingState2["Idle"] = "idle"; PathfindingState2["InProgress"] = "in_progress"; PathfindingState2["Paused"] = "paused"; PathfindingState2["Completed"] = "completed"; PathfindingState2["Failed"] = "failed"; PathfindingState2["Cancelled"] = "cancelled"; return PathfindingState2; })({}); var DEFAULT_REPLANNING_CONFIG = { enabled: true, checkInterval: 10, distanceThreshold: 2, lookaheadDistance: 5 }; var EMPTY_PROGRESS = { state: "idle", nodesSearched: 0, openListSize: 0, estimatedProgress: 0 }; export { PathfindingState, DEFAULT_REPLANNING_CONFIG, EMPTY_PROGRESS }; //# sourceMappingURL=chunk-YKA3PWU3.js.map