载入中...
搜索中...
未找到
RoadNetworkConnectionCodec.cpp
浏览该文件的文档.
24 operation.payload = EditorValue::Object{{"id", std::int64_t{nodeId}}, {"connection", encodeConnection(connection)}};
26 EditorValue::Object{{"id", std::int64_t{nodeId}}, {"connection", encodeConnection(node.value().connection)}};
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
Result< void > setNodeConnection(std::uint32_t nodeId, RoadConnection connection)
Atomically attach or clear an owning custom connection mesh and its port bindings.
Definition RoadConnection.cpp:195
Result< RoadNode > nodeResult(std::uint32_t id) const
Return an owning node snapshot. @cost Copies the node-owned custom mesh and port sections; authoring ...
Definition RoadNetwork.cpp:890
EVENGINE_API_ORCHESTRATION EditorResult< editing::DomainOperation > makeSetNodeConnection(std::uint32_t nodeId, procgen::road::RoadConnection connection) const
Build an owning undoable custom connection replacement after validating its mesh and bound seams.
Definition RoadNetworkConnectionCodec.cpp:12
static constexpr const char * kSetNodeConnection
Definition RoadNetworkEditTarget.h:30
Result< T > applied(T value, std::vector< Diagnostic > diagnostics={})
Construct an Applied result with an owning payload and optional diagnostics.
Definition EditingResult.h:47
Definition HeightmapBrush.h:9
Owning custom junction asset snapshot; all geometry/ports share one node-local transform.
Definition RoadTypes.h:266