载入中...
搜索中...
未找到
PlacementSystem.h
浏览该文件的文档.
92 uint64_t surfaceRevision = 0;
239 static SnapResult snap(const PlacementWorld &world, const std::string &buildingId, float worldX,
399 static bool canPlace(PlacementWorld *world, const std::string &buildingId, int cellX, int cellY,
Move-only, checked operation results for the common layer.
std::map< std::string, std::span< const std::uint8_t > > members
Definition UnityPackage.cpp:81
std::function< bool(const PlacementWorld &world, const PlacementQuery &q, std::string *reason)> ValidateFn
Definition PlacementSystem.h:34
std::function< bool(const PlacementWorld &world, float x, float y, PlacementHit *hit)> SurfaceFn
Definition PlacementSystem.h:160
std::function< SnapResult(const PlacementWorld &world, float worldX, float worldY)> SnapFn
Definition PlacementSystem.h:37
std::function< eve::Result< PlacementHit >(const PlacementWorld &world, float x, float y)> SurfaceProviderFn
Canonical surface provider contract.
Definition PlacementSystem.h:167
std::function< void(const BuildingChangeEvent &ev)> ChangeHook
Definition PlacementSystem.h:38
PatternKind
Built-in geometry families accepted by the unified placement-pattern protocol.
Definition PlacementSystem.h:117
建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md
Definition Building.cpp:7
PlacementRestoreStatus
Outcome of restoring an exact placement snapshot.
Definition PlacementSystem.h:28
One cubic Bezier control point in logical grid-vertex space.
Definition BuildingTypes.h:58
Strong world-local identity of one authoritative edge-curve group.
Definition BuildingTypes.h:48
World-owned authoritative description and membership of one committed edge curve.
Definition BuildingTypes.h:80
One requested area anchor and its deterministic validation result.
Definition PlacementSystem.h:96
std::string reason
Definition PlacementSystem.h:100
Atomic receipt for a committed area placement.
Definition PlacementSystem.h:112
std::vector< int > instanceIds
Definition PlacementSystem.h:114
AreaPreview preview
Definition PlacementSystem.h:113
Owning row-major preview for a rectangular or circular brush request.
Definition PlacementSystem.h:103
std::string buildingId
Definition PlacementSystem.h:104
std::vector< AreaCellPreview > cells
Definition PlacementSystem.h:107
Owning same-identity surface frames sampled along an analytic edge curve.
Definition PlacementSystem.h:89
std::vector< EdgeCurveSurfaceSample > samples
Definition PlacementSystem.h:93
std::string providerName
Definition PlacementSystem.h:90
std::string surfaceId
Definition PlacementSystem.h:91
Atomic result of placing one axis-aligned continuous edge line.
Definition PlacementSystem.h:73
std::vector< int > instanceIds
Definition PlacementSystem.h:74
Atomic result of placing one multi-segment edge path.
Definition PlacementSystem.h:77
std::vector< int > instanceIds
Definition PlacementSystem.h:78
Owning validated edge addresses for one non-mutating path preview.
Definition PlacementSystem.h:81
std::vector< EdgeAddress > edges
Definition PlacementSystem.h:84
std::string buildingId
Definition PlacementSystem.h:82
Atomic placement receipt shared by every built-in pattern kind.
Definition PlacementSystem.h:149
std::vector< int > instanceIds
Definition PlacementSystem.h:151
PatternPreview preview
Definition PlacementSystem.h:150
Owning non-mutating expansion of an edge or area pattern.
Definition PlacementSystem.h:135
PatternRequest request
Definition PlacementSystem.h:136
int anchorCount() const
Number of concrete edge/cell anchors expanded by the pattern.
Definition PlacementSystem.h:140
AreaPreview area
Definition PlacementSystem.h:138
EdgePathPreview edge
Definition PlacementSystem.h:137
Owning, renderer-neutral request for one atomic placement pattern.
Definition PlacementSystem.h:126
std::string surfaceName
Definition PlacementSystem.h:132
std::vector< EdgeCurvePoint > points
Definition PlacementSystem.h:128
One sampled point and orthonormal frame on a placement surface.
Definition PlacementSystem.h:41
std::string surfaceId
Definition PlacementSystem.h:54
std::vector< std::string > tags
Definition PlacementSystem.h:57
One footprint-relative surface sample.
Definition PlacementSystem.h:60
PlacementHit hit
Definition PlacementSystem.h:63
Surface samples and continuity metrics for one rotated building footprint.
Definition PlacementSystem.h:66
PlacementHit anchor
Definition PlacementSystem.h:67
std::vector< SurfacePatchSample > samples
Definition PlacementSystem.h:68