载入中...
搜索中...
未找到
eve::building 命名空间参考

建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md 更多...

命名空间

namespace  assembly_detail
 
namespace  codec
 
namespace  placement_detail
 

类

struct  AssemblyHandle
 
struct  AssemblyHandleTag
 Owner-scoped, generation-checked runtime identity of a house. 更多...
 
struct  AssemblyIdTag
 Persistent identity of one placed house; distinct from a blueprint asset. 更多...
 
struct  AssemblyPose
 Integer grid-vertex origin, floor offset and quarter turns: (x,y) maps to (y,-x) for one turn. 更多...
 
struct  AssemblyReceipt
 Owning before/after domain states for exact, conflict-checked undo and redo. 更多...
 
class  AssemblyService
 Canonical house composition, blueprint and persistence operations. @thread World/registry owner-thread only. Inputs are synchronous borrows, never retained. @reentrancy Validation rules must be pure; committed events observe complete world state. @ownership Worlds own members and assembly records; all results own their payloads. 更多...
 
struct  AssemblyState
 
struct  BlueprintPart
 One owning local part, independent of the source world and its runtime ids. 更多...
 
struct  BlueprintPartId
 Stable blueprint-local part key, preserved through capture and instantiation. 更多...
 
class  Building
 建筑放置模块(eve.Building)。 更多...
 
struct  BuildingAssembly
 Owning house membership; poses remain authoritative on the world instances. 更多...
 
struct  BuildingBlueprint
 Versioned house recipe; admission validates all fields before use. @ownership Owns local parts, exact curves and pinned definition values. @thread Values may be transferred to workers; registries/worlds remain owner-thread only. 更多...
 
struct  BuildingChangeEvent
 一次成功放置变更的事件(供脚本 poll / C++ hook)。 更多...
 
struct  BuildingDefinition
 建筑模板(进程级注册表中的定义)。 更多...
 
class  BuildingGarrisonContainerAdapter
 Transactional adapter over one placed building's authoritative garrison. 更多...
 
struct  BuildingGarrisonContainerObject
 Owning payload carrying a garrison member's domain facts. 更多...
 
struct  BuildingGarrisonMemberRecord
 Persistent garrison member copied through building editor undo. 更多...
 
struct  BuildingInstanceSnapshot
 Complete runtime-neutral placed-building snapshot. 更多...
 
class  BuildingRegistry
 EVENGINE_API_WORLD public API. 更多...
 
struct  CornerAddress
 Canonical address of one logical grid vertex used by corner objects. 更多...
 
struct  EdgeAddress
 Canonical address of one grid edge. 更多...
 
struct  EdgeCurveControlPoint
 One cubic Bezier control point in logical grid-vertex space. 更多...
 
struct  EdgeCurveGroup
 World-owned authoritative description and membership of one committed edge curve. 更多...
 
struct  EdgeCurveGroupId
 Strong world-local identity of one authoritative edge-curve group. 更多...
 
struct  EdgeCurveSurfaceSample
 One committed 3D centerline frame sampled from a custom placement surface. 更多...
 
struct  GarrisonMember
 One persistent member of a placed building's logical garrison. 更多...
 
class  Ghost
 EVENGINE_API_WORLD public API. 更多...
 
class  HeightfieldSurface
 Immutable regularly sampled heightfield usable as an XY or XZ placement surface. 更多...
 
struct  PlacedBuilding
 已放置的建筑实例。 更多...
 
struct  PlacementEditReceipt
 Owning before/after receipt produced by one committed placement edit. 更多...
 
struct  PlacementQuery
 校验上下文:传给可插拔规则。 更多...
 
class  PlacementSession
 EVENGINE_API_WORLD public API. 更多...
 
class  PlacementSystem
 EVENGINE_API_WORLD public API. 更多...
 
class  PlacementWorld
 格子型建筑放置世界(脚本可直接操作)。 更多...
 
class  PreparedAssembly
 Move-only proof of a fully validated house operation. @ownership Owns its candidate; destruction cancels without side effects. @lifetime Independent of the world; commit rejects a destroyed/replaced owner's epoch. @thread Owner-thread only; pure validation may run during preparation; observers run after commit. 更多...
 
struct  PreparedAssemblyData
 
struct  SnapResult
 吸附结果。 更多...
 
class  StaticMeshSurface
 Immutable world-space triangle mesh accelerated for placement-surface projection. 更多...
 
struct  StructuralLinkRebuildReceipt
 Result metadata for an atomic rebuild of all derived structural links. 更多...
 
struct  StructuralRemovalReceipt
 Owning record of one committed dependent-first structural removal. 更多...
 

类型定义

using AssemblyId = eve::detail::Id128< AssemblyIdTag >
 

枚举

enum class  EdgeAxis : uint8_t { Horizontal , Vertical }
 Canonical orientation of an edge in logical grid coordinates. 更多...
 
enum class  EdgeUpdateStatus { Updated , Rejected }
 Outcome of refreshing an edge placement preview. 更多...
 
enum class  CornerUpdateStatus { Updated , Rejected }
 Outcome of refreshing a corner placement preview. 更多...
 
enum class  FreeUpdateStatus { Updated , Rejected }
 Outcome of refreshing an exact free-object placement preview. 更多...
 
enum class  EdgeLineExecuteStatus { Placed , Rejected }
 Outcome of committing one continuous edge line. 更多...
 
enum class  EdgePathUpdateStatus { Updated , Rejected }
 Outcome of adding a logical vertex to an edge path preview. 更多...
 
enum class  PlacementEditExecuteStatus { Committed , Rejected }
 Outcome of committing one move or replace edit. 更多...
 
enum class  AreaExecuteStatus { Accepted , Rejected }
 Outcome of refreshing or committing an area tool request. 更多...
 
enum class  PatternUpdateStatus { Updated , Rejected }
 Outcome of configuring or previewing a unified placement pattern. 更多...
 
enum class  PatternExecuteStatus { Placed , Rejected }
 Outcome of atomically committing a unified placement pattern. 更多...
 
enum class  PlacementRestoreStatus { Restored , Rejected }
 Outcome of restoring an exact placement snapshot. 更多...
 

函数

void exposeHouseBindings (ssq::Table &table)
 
 Module_IMPL (Building, new Building())
 
Result< Value > executeHouseRequest (PlacementWorld &world, const Value &request)
 Execute the version-1 house authoring protocol used by scripts and tools. @ownership Synchronously borrows the world and request; returns an owning payload. @thread World owner thread only; validation callbacks must be pure. @reentrancy Mutation publishes complete state before observer callbacks. @cost Capture/save copy selected/world state; preview/mutations stage a whole world once per gesture.
 

详细描述

建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md

建筑放置模块的核心数据结构:定义、实例、变更事件、鬼影状态。 全部策略名 / id / 标签使用字符串,便于 JSON 配置与跨版本兼容。

类型定义说明

◆ AssemblyId

枚举类型说明

◆ AreaExecuteStatus

Outcome of refreshing or committing an area tool request.

枚举值
Accepted 
Rejected 

在文件 PlacementSession.h 第 31 行定义.

◆ CornerUpdateStatus

Outcome of refreshing a corner placement preview.

枚举值
Updated 
Rejected 

在文件 PlacementSession.h 第 21 行定义.

◆ EdgeAxis

enum class eve::building::EdgeAxis : uint8_t
strong

Canonical orientation of an edge in logical grid coordinates.

枚举值
Horizontal 
Vertical 

在文件 BuildingTypes.h 第 21 行定义.

◆ EdgeLineExecuteStatus

Outcome of committing one continuous edge line.

枚举值
Placed 
Rejected 

在文件 PlacementSession.h 第 25 行定义.

◆ EdgePathUpdateStatus

Outcome of adding a logical vertex to an edge path preview.

枚举值
Updated 
Rejected 

在文件 PlacementSession.h 第 27 行定义.

◆ EdgeUpdateStatus

Outcome of refreshing an edge placement preview.

枚举值
Updated 
Rejected 

在文件 PlacementSession.h 第 19 行定义.

◆ FreeUpdateStatus

Outcome of refreshing an exact free-object placement preview.

枚举值
Updated 
Rejected 

在文件 PlacementSession.h 第 23 行定义.

◆ PatternExecuteStatus

Outcome of atomically committing a unified placement pattern.

枚举值
Placed 
Rejected 

在文件 PlacementSession.h 第 35 行定义.

◆ PatternUpdateStatus

Outcome of configuring or previewing a unified placement pattern.

枚举值
Updated 
Rejected 

在文件 PlacementSession.h 第 33 行定义.

◆ PlacementEditExecuteStatus

Outcome of committing one move or replace edit.

枚举值
Committed 
Rejected 

在文件 PlacementSession.h 第 29 行定义.

◆ PlacementRestoreStatus

Outcome of restoring an exact placement snapshot.

枚举值
Restored 
Rejected 

在文件 PlacementSystem.h 第 28 行定义.

函数说明

◆ executeHouseRequest()

EVENGINE_API_WORLD Result< Value > eve::building::executeHouseRequest ( PlacementWorld &  world,
const Value &  request 
)

Execute the version-1 house authoring protocol used by scripts and tools. @ownership Synchronously borrows the world and request; returns an owning payload. @thread World owner thread only; validation callbacks must be pure. @reentrancy Mutation publishes complete state before observer callbacks. @cost Capture/save copy selected/world state; preview/mutations stage a whole world once per gesture.

返回
Structured result; mutations return exact before/after receipt endpoints.

在文件 BuildingAssemblyProtocol.cpp 第 29 行定义.

被这些函数引用 exposeHouseBindings().

◆ exposeHouseBindings()

◆ Module_IMPL()

eve::building::Module_IMPL ( Building  ,
new   Building() 
)