载入中...
搜索中...
未找到
BuildingAssembly.h
浏览该文件的文档.
85 friend EVENGINE_API_WORLD Result<Value> executeHouseRequest(PlacementWorld& world, const Value& request);
109 [[nodiscard]] static Result<BuildingBlueprint> capture(const PlacementWorld& world, std::span<const int> members,
123 [[nodiscard]] static Result<PreparedAssembly> prepareMove(const PlacementWorld& world, AssemblyId id,
129 [[nodiscard]] static Result<PreparedAssembly> prepareRemoval(const PlacementWorld& world, AssemblyId id);
135 [[nodiscard]] static Result<PreparedAssembly> prepareRemodel(const PlacementWorld& world, AssemblyId id,
142 [[nodiscard]] static Result<AssemblyReceipt> commit(PlacementWorld& world, PreparedAssembly token);
144 [[nodiscard]] static Result<BuildingAssembly> assembly(const PlacementWorld& world, AssemblyId id);
146 [[nodiscard]] static Result<BuildingAssembly> resolve(const PlacementWorld& world, AssemblyHandle handle);
177 [[nodiscard]] static Result<void> applyReceipt(PlacementWorld& world, const Value& expected, const Value& desired);
181 static Result<PreparedAssembly> prepareState(const PlacementWorld& world, std::unique_ptr<PlacementWorld> candidate,
Strong identity values shared by persistence, content and logical-name APIs.
Strong generation-qualified handles for non-ECS runtime registries.
std::map< std::string, std::span< const std::uint8_t > > members
Definition UnityPackage.cpp:81
Process-local slot identity tagged by the registry that owns it.
Definition RuntimeHandle.h:116
Canonical house composition, blueprint and persistence operations. @thread World/registry owner-threa...
Definition BuildingAssembly.h:102
Move-only proof of a fully validated house operation. @ownership Owns its candidate; destruction canc...
Definition BuildingAssembly.h:73
PreparedAssembly(PreparedAssembly &&) noexcept
建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md
Definition Building.cpp:10
Definition Container.h:602
Owner-scoped, generation-checked runtime identity of a house.
Definition BuildingAssembly.h:25
eve::RuntimeHandle< AssemblyHandleTag > slot
Definition BuildingAssembly.h:27
Persistent identity of one placed house; distinct from a blueprint asset.
Definition BuildingAssembly.h:17
Integer grid-vertex origin, floor offset and quarter turns: (x,y) maps to (y,-x) for one turn.
Definition BuildingAssembly.h:31
Owning before/after domain states for exact, conflict-checked undo and redo.
Definition BuildingAssembly.h:90
Stable blueprint-local part key, preserved through capture and instantiation.
Definition BuildingAssembly.h:20
bool operator==(const BlueprintPartId &) const =default
One owning local part, independent of the source world and its runtime ids.
Definition BuildingAssembly.h:39
Owning house membership; poses remain authoritative on the world instances.
Definition BuildingAssembly.h:58
std::map< uint32_t, int > members
Definition BuildingAssembly.h:63
uint32_t nextPartKey
Monotonic local identity; deleted part keys are never reused.
Definition BuildingAssembly.h:65
uint64_t blueprintVersion
Definition BuildingAssembly.h:61
Versioned house recipe; admission validates all fields before use. @ownership Owns local parts,...
Definition BuildingAssembly.h:48
std::vector< BlueprintPart > parts
Definition BuildingAssembly.h:53
std::vector< codec::EdgeCurvePayload > curves
Definition BuildingAssembly.h:54
Complete runtime-neutral placed-building snapshot.
Definition BuildingSnapshot.h:23