15 void add(
int x,
int y);
20 int getLength()
const;
22 int getX(
int index)
const;
24 int getY(
int index)
const;
26 float getTotalCost()
const;
28 void setTotalCost(
float cost);
31 bool empty()
const {
return cells_.empty(); }
40 const std::vector<Cell> &
cells()
const {
return cells_; }
43 std::vector<Cell> cells_;
44 float totalCost_ = 0.f;
eve::resource::CostSpec cost
#define EVENGINE_API_WORLD
Ordered tile-index waypoints from start to goal (inclusive).
const std::vector< Cell > & cells() const
Raw waypoint vector.
bool empty() const
True when there are no waypoints.
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...