30 std::shared_ptr<const Data> data_;
36 [[nodiscard]]
bool valid() const noexcept {
return static_cast<bool>(data_); }
38 [[nodiscard]]
int width() const noexcept;
40 [[nodiscard]]
int height() const noexcept;
42 [[nodiscard]]
std::uint64_t
revision() const noexcept;
46 [[nodiscard]]
bool isStaggerAxisY() const noexcept;
48 [[nodiscard]]
bool isStaggerOdd() const noexcept;
50 [[nodiscard]]
std::span<const
float> costs() const noexcept;
52 [[nodiscard]]
std::span<const
std::uint8_t> enterMasks() const noexcept;
54 [[nodiscard]]
std::span<const
std::uint8_t> exitMasks() const noexcept;
99 void setTopology(const
std::
string &
name);
101 std::
string getTopology() const;
103 void setDiagonal(
bool enable);
105 bool getDiagonal() const;
107 void blockGid(
int gid);
109 void unblockGid(
int gid);
111 void clearBlockedGids();
113 void setBlockEmpty(
bool enable);
115 bool getBlockEmpty() const;
117 void setBlocked(
int x,
int y,
bool blocked);
119 bool isWalkable(
int x,
int y) const;
121 void setCellCost(
int x,
int y,
float cost);
123 float getCellCost(
int x,
int y) const;
125 void syncFromLayer();
131 Path *findPath(
int sx,
int sy,
int gx,
int gy);
145 Path *findPath(
int sx,
int sy,
int gx,
int gy,
147 const
std::
function<
float(
int,
int)> &entryPenalty);
164 [[nodiscard]]
Result<
bool> keepsPathOpen(
int sx,
int sy,
int gx,
int gy,
int blockX,
int blockY);
173 [[nodiscard]]
Result<
bool> keepsPathOpenFootprint(
int sx,
int sy,
int gx,
int gy,
int originX,
int originY,
174 int footprintW,
int footprintH);
177 FlowField *buildFlowField(
int gx,
int gy);
187 Path *findGroupPath(
int sx,
int sy,
int gx,
int gy);
190 void invalidateCache();
eve::resource::CostSpec cost
#define EVENGINE_API_WORLD
Move-only, checked operation results for the common layer.
MigrationFunction function
Move-only operation result carrying either a value or Status.
Integration + direction field for group pathfinding to a single goal. nextX/nextY point to the neighb...
Immutable owning capture; independent of Pathfinder and TileLayer lifetimes.
NavigationGridSnapshot()=default
Construct an absent snapshot.
bool valid() const noexcept
Whether this value contains captured data.
Ordered tile-index waypoints from start to goal (inclusive).
Pathfinding facade. Single-agent: A*. Group (same goal): Flow Field + follow. Grid/topology internals...
ECS tile layer entity. Script mutates tile GIDs / tileset / draw; TileRenderSystem batch-draws atlas ...
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...
NavigationTopology
Logical adjacency of a captured map navigation grid.
Cheap invalidation hint, distinct from immutable capture content revisions. Includes bound-layer tile...
std::uint64_t configuration
friend bool operator==(const NavigationChangeStamp &, const NavigationChangeStamp &)=default