载入中...
搜索中...
未找到
BuildingAssemblyGeometry.cpp
浏览该文件的文档.
17 if (g.layout != grid::GridLayout::Rectangle || g.cellW != g.cellH || g.cellGapX != 0 || g.cellGapY != 0 ||
33Result<PlacedBuilding> transformPart(const PlacedBuilding& part, const PlacementWorld& world, AssemblyPose from,
Module-neutral grid topology and sizing (no building/map dependency).
static bool foreachFootprintCell(const BuildingDefinition &def, int originCellX, int originCellY, float rotationDeg, const std::function< bool(int cx, int cy)> &fn)
枚举占地格子(旋转后局部 → 世界格子)。返回 false 若定义未知。
Definition PlacementSystem.cpp:487
Value poseValue(AssemblyPose p)
Definition BuildingAssemblyGeometry.cpp:120
uint64_t nextEpoch()
Definition BuildingAssemblyGeometry.cpp:11
void removeMembership(AssemblyState &state, int member)
Definition BuildingAssemblyGeometry.cpp:143
Result< AssemblyPose > parsePose(const Value &v)
Definition BuildingAssemblyGeometry.cpp:124
Result< void > checkGrid(const PlacementWorld &world)
Definition BuildingAssemblyGeometry.cpp:15
Result< PlacedBuilding > transformPart(const PlacedBuilding &part, const PlacementWorld &world, AssemblyPose from, AssemblyPose to)
Definition BuildingAssemblyGeometry.cpp:33
@ Vertical
@ Horizontal
@ Rectangle
Integer grid-vertex origin, floor offset and quarter turns: (x,y) maps to (y,-x) for one turn.
Definition BuildingAssembly.h:31
int level
Authoritative discrete floor coordinate used by occupancy and topology.
Definition BuildingTypes.h:211
std::string placementKind
Placement domain snapshot: cell, edge, corner, or free.
Definition BuildingTypes.h:193