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

Build metadata (engine git commit, build time, third-party version). 更多...

命名空间

namespace  action
 
namespace  action_editor
 
namespace  agent
 
namespace  animation
 
namespace  animation_editing
 
namespace  animation_editor
 
namespace  archspace
 
namespace  archspace_editing
 
namespace  archspace_editor
 
namespace  archspace_hd2d
 
namespace  archspace_map
 
namespace  artifact
 
namespace  asset
 
namespace  asset_graphics
 
namespace  asset_import
 
namespace  asset_physics
 
namespace  asset_procgen
 
namespace  asset_scene
 
namespace  asset_stylize
 
namespace  attributes
 
namespace  audio
 
namespace  audio_editing
 
namespace  audio_editor
 
namespace  authority
 
namespace  avatar
 
namespace  avatar_editing
 
namespace  avatar_editor
 
namespace  biome_editing
 
namespace  biome_editor
 
namespace  boot
 
namespace  building
 建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md
 
namespace  building_editing
 
namespace  buildingfx
 
namespace  camera
 
namespace  camera_editing
 
namespace  cap
 
namespace  caps
 
namespace  card
 
namespace  climbing
 
namespace  cloth
 
namespace  cmd
 
namespace  cmdline
 Minimal streaming ZIP writer used by eve zip / eve package to produce a PhysFS-mountable game archive (.eve). Entries are DEFLATE-compressed (method 8) using zlib's raw deflate. The output is a standard ZIP readable by PhysFS.
 
namespace  combat
 
namespace  condition
 
namespace  container
 
namespace  crowd
 
namespace  crowd_editing
 
namespace  crowd_thread
 
namespace  data
 
namespace  database
 
namespace  daynight
 
namespace  debug
 
namespace  decal
 
namespace  decal_editing
 
namespace  definition
 
namespace  definitions
 
namespace  definitions_editing
 
namespace  demo
 
namespace  detail
 
namespace  dev
 
namespace  dialogue
 
namespace  dialogue_editing
 
namespace  dnut
 
namespace  domain_gizmo_editing
 
namespace  economy
 
namespace  editing
 
namespace  editor
 
namespace  effects
 
namespace  emergence
 
namespace  filesystem
 
namespace  fluids
 GLSL compute kernels for the GPU surface-flow solver.
 
namespace  fluids_editing
 
namespace  fluids_editor
 
namespace  font
 
namespace  game_event
 
namespace  gpgpu
 Fluids module — interactive surface fluid simulation.
 
namespace  gpuagents
 
namespace  gpuagents_editing
 
namespace  gpuagents_editor
 
namespace  graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  graphics_editing
 
namespace  graphics_editor
 
namespace  grid
 
namespace  growth
 
namespace  hd2d
 
namespace  hd2d_editing
 
namespace  heightmap_target
 
namespace  hexmap
 
namespace  housegen
 
namespace  housegen_editing
 
namespace  i18n
 
namespace  ik
 
namespace  image
 
namespace  input_editing
 
namespace  inventory
 运行时容器:固定格数的背包 / 箱子 / 商店栏等。 行为由 InventorySystem 提供;本类暴露便于脚本绑定的薄封装方法。
 
namespace  joystick
 
namespace  json
 
namespace  keyboard
 
namespace  level_editing
 
namespace  level_editor
 
namespace  lighting_editing
 
namespace  localization_editing
 
namespace  logistics
 
namespace  map
 放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectangle / iso / staggered / hex 与 XY/XZ 平面轴)。
 
namespace  map_editing
 
namespace  material_editing
 
namespace  material_editor
 
namespace  math
 
namespace  model3d
 
namespace  mouse
 
namespace  network
 
namespace  network_editing
 
namespace  npc_ai
 
namespace  npc_ai_editing
 
namespace  orders
 
namespace  os
 
namespace  particles
 
namespace  particles_editing
 
namespace  particles_graphics_editing
 
namespace  physics
 Optional physics backend for vehicle mobility and body attach.
 
namespace  physics_editing
 
namespace  physics_editor
 
namespace  pixelworld
 
namespace  pixelworld_editor
 
namespace  pixelworld_graphics
 
namespace  pixelworld_physics
 
namespace  pixelworld_replay
 
namespace  pixelworld_streaming
 
namespace  pixelworld_thread
 
namespace  platform_event
 
namespace  plugins
 
namespace  policyregistry
 
namespace  procgen
 
namespace  procgen_animation
 
namespace  procgen_editing
 
namespace  procgen_editor
 
namespace  procgen_graphics_editing
 
namespace  procgen_physics
 
namespace  production
 
namespace  prof
 
namespace  profiler
 
namespace  profiler_editing
 
namespace  property_access
 
namespace  queue_editing
 
namespace  resource
 
namespace  roster
 
namespace  rpg
 RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
 
namespace  rts
 
namespace  rx
 
namespace  scene
 
namespace  scene_editing
 
namespace  scene_editor
 
namespace  scene_physics
 
namespace  sceneloader
 
namespace  sceneloader_editing
 
namespace  scheduling
 
namespace  schema
 
namespace  script
 
namespace  sensing
 
namespace  service
 
namespace  settlement
 
namespace  social
 
namespace  social_editing
 
namespace  sound
 
namespace  spatial
 
namespace  spritestack
 
namespace  spritestack_editing
 
namespace  state
 
namespace  statepatch
 
namespace  stylize
 
namespace  stylize_action
 
namespace  stylize_editing
 
namespace  tactics
 
namespace  tags
 
namespace  tensor
 
namespace  thread
 
namespace  tilelayer_target
 
namespace  timer
 
namespace  touch
 
namespace  towerdefense
 
namespace  transaction
 
namespace  ui
 
namespace  ui_editing
 
namespace  ui_editor
 
namespace  vehicle
 驾驶者接口与玩家控制状态。
 
namespace  virtualgeometry
 
namespace  virtualgeometry_editing
 
namespace  voxel
 方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 orientation。
 
namespace  voxel_editing
 
namespace  voxel_editor
 
namespace  voxelworld_target
 
namespace  warship
 Warship module entry (eve.Warship): hull/function catalogues, spawn, compartment remodel, helm orders, and frame update.
 
namespace  weapon
 载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
 
namespace  weather
 
namespace  window
 
namespace  xml
 

类

struct  ActionGuideAovBuffer
 One lease-owned CPU AOV buffer (always RGBA8 for PNG export). @ownership rgba8 is immutable shared storage owned by the capture job until release. 更多...
 
struct  ActionGuideBinding
 Draft binding from guide clips into an ability/clip identity. 更多...
 
struct  ActionGuideBoneWorld
 World-space bone sample supplied by an animation/pose owner. 更多...
 
struct  ActionGuideCamera
 Offscreen guide camera; never mutates the live gameplay camera. 更多...
 
struct  ActionGuideCandidateFrame
 One candidate frame with lease-owned RGBA8 pixels. 更多...
 
struct  ActionGuideCandidateMeta
 Per-candidate attribution and revision link back to a GuidePack. 更多...
 
struct  ActionGuideCanvas
 Output canvas contract for guide images and landmark pixels. 更多...
 
struct  ActionGuideCaptureSnapshot
 Immutable CPU snapshot for one guide-capture job. @lifetime Bytes remain valid until releaseCapture; never expose GPU objects. 更多...
 
struct  ActionGuideIngestDraft
 Draft artifacts produced by ingest (no formal AbilityRuntime mutation). @ownership Caller owns; Values are independent copies. 更多...
 
struct  ActionGuideIngestRequest
 In-memory ingest request; frames ordered to match pack.shots (or shotId map). 更多...
 
struct  ActionGuideJointMetrics
 Measured joint L2 error for one shot (optional when joints absent). 更多...
 
struct  ActionGuideLandmark
 Projected joint in guide-canvas pixels (origin top-left) plus view depth. 更多...
 
struct  ActionGuidePack
 Authoritative guide-pack document (no pointers, GPU tokens, or ECS slots). @ownership Caller-owned value object; encode/decode copy all nested storage. @thread Affine to the caller; encode/decode are reentrant and invoke no callbacks. 更多...
 
struct  ActionGuidePhaseMark
 Named phase marker for later Action/Ability timeline binding. 更多...
 
struct  ActionGuideQc
 Acceptance thresholds for candidate ingest / verify. 更多...
 
struct  ActionGuideShot
 One guide shot: sample time, view label, and required AOV set. 更多...
 
struct  ActionGuideShotArtifact
 Per-shot artifact set for a Ready capture. 更多...
 
struct  ActionGuideShotVerifyResult
 Per-shot verify outcome. 更多...
 
struct  ActionGuideSilhouetteMetrics
 Measured silhouette overlap for one shot. 更多...
 
struct  ActionGuideSubject
 Generation-qualified subject handle; domain-owned, not a universal actor. 更多...
 
struct  ActionGuideVerifyReport
 Aggregate verify report for one GuidePack revision. @ownership Caller-owned; Values are independent copies. 更多...
 
struct  ActionGuideVerifyRequest
 In-memory verify request. 更多...
 
struct  ActionGuideVerifyShotInput
 One shot of RGBA inputs for geometric verify (lease-owned buffers). 更多...
 
class  AssetRef
 Stable asset identity backed by PersistentId. 更多...
 
struct  AttachmentPoint
 Plain world-space point shared by animation consumers without a math-library dependency. 更多...
 
struct  CameraObstructionHit
 Closest hit returned by the optional camera-obstruction provider. 更多...
 
struct  CaptureImageInfo
 Pixel size reported by a successful frame/image capture. 更多...
 
class  Data
 Data public API. 更多...
 
class  DefinitionRef
 Stable definition reference backed by LogicalId. 更多...
 
class  Diagnostic
 A structured explanation of a failed, degraded, or noteworthy result. 更多...
 
struct  DiagnosticValueTraits
 Customization point for values that cross diagnostic boundaries. 更多...
 
struct  DiagnosticValueTraits< DiagnosticCode >
 DiagnosticValue mapping for machine-readable diagnostic codes. 更多...
 
struct  DiagnosticValueTraits< ProtocolDispatch >
 DiagnosticValue mapping for protocol dispatch outcomes. 更多...
 
struct  DiagnosticValueTraits< Severity >
 DiagnosticValue mapping for diagnostic severities. 更多...
 
struct  DiagnosticValueTraits< StatusCode >
 DiagnosticValue mapping for operation status categories. 更多...
 
class  Duration
 Signed, fixed-resolution simulation duration in nanoseconds. 更多...
 
struct  EntitySpatialPose
 Renderer-neutral owning world pose resolved for an ECS entity. 更多...
 
struct  EntityViewCamera
 Owning per-panel metadata; matrices are column-major RH/ZO/Y-down. 更多...
 
struct  EntityViewRequest
 Generation-qualified Renderable3D request; geometry diagnostics, world axes, isolated entity. 更多...
 
struct  EntityViewSnapshot
 Atomic four-view CPU atlas with metadata from the same owner-thread freeze operation. 更多...
 
class  Exception
 EVENGINE_API_FOUNDATION public API. 更多...
 
struct  FrameCaptureBuffer
 Immutable CPU attachment with producer-provided decoding metadata. 更多...
 
struct  FrameCaptureCapabilities
 Backend support is explicit; candidates need not be produced in every frame. 更多...
 
struct  FrameCaptureRequest
 Owning request; timeout uses monotonic wall time, never gameplay time. 更多...
 
struct  FrameCaptureSnapshot
 Owning snapshot metadata; byte storage is immutable and lease-owned. 更多...
 
class  FrameCaptureStore
 Graphics-owned state machine and immutable CPU snapshot authority. @thread Main-thread only; supplied clock must not reenter the store. @lifetime Backend owns GPU staging independently until its completion signal. 更多...
 
struct  FramePixel
 One pixel with native storage and decoded attachment semantics. 更多...
 
struct  GameplayActionDescriptor
 One discoverable domain action and its owning schema projection. 更多...
 
struct  GameplayCommand
 One player-semantic command submitted to a domain authority. 更多...
 
struct  GameplayCommandReceipt
 Owning evidence that a gameplay authority accepted one command. 更多...
 
struct  GameplayEvent
 Owning event projection safe across frames and process boundaries. 更多...
 
struct  GameplayObservation
 Immutable owning observation of one authoritative gameplay instance. 更多...
 
struct  GameplaySession
 Owning authorization context shared by player, script and automation adapters. 更多...
 
class  GameSaveSession
 Seal and restore all registered domain owners as one game-save transaction. 更多...
 
struct  GpuResidentBufferView
 Transient backend buffer slice shared between sibling GPU modules. @ownership Non-owning; nativeHandle is never retained as an owning resource. @lifetime The producing buffer outlives all frame commands that consume this view. @thread Create and consume on the render/submission thread. 更多...
 
class  IActionGuideCapture
 Optional GPU guide-capture provider (silhouette/depth/bone AOV export). @thread Engine owner thread only; never wait for GPU inside request. @lifetime Query on each call. Absent provider → MCP reports ProviderAbsent. 更多...
 
class  IAnimationEventSource
 Read-only cross-module view of animation events emitted by the latest simulation update. @ownership Event names are returned by value; consumers retain no source storage. @thread Affine to the animation source's update thread. @reentrancy Implementations must not invoke callbacks. 更多...
 
class  IAttachmentPointSource
 Read-only cross-module contract for sampling named animated attachment points. @ownership Implementations retain all pose data; returned points are values. @thread Calls are affine to the source's animation update thread. @reentrancy Implementations must not invoke callbacks. 更多...
 
class  IAudioQuery
 Audio control surface (provided by the audio module). 更多...
 
class  ICameraObstructionQuery
 Cross-module query used by camera without linking against physics. 更多...
 
class  IDecalQuery
 Runtime decal query surface (provided by the decal module). 更多...
 
class  IEditorAutomation
 Module-neutral bridge from DevTools/MCP to the editor command protocol. 更多...
 
class  IEditorHost
 Declarative editor-host control (provided by the ui module). 更多...
 
class  IEmergenceActionHandler
 Capability listener that may consume one emergence action kind. 更多...
 
class  IEntityInspection
 Optional native geometry-inspection provider, independent of graphics types. @thread Engine owner thread only; no scripts or callbacks are invoked. @lifetime Query on each call. Provider owns GPU work; returned CPU storage is immutable and lease-owned. 更多...
 
class  IEntitySpatialProvider
 One optional domain provider capable of resolving selected ECS entities. 更多...
 
class  IFramePacing
 Host-loop frame pacing controlled independently of presentation. 更多...
 
class  IFramePresentation
 Cross-module owner for swapchain presentation cadence. 更多...
 
class  IGameplayControlProvider
 Multi-provider gameplay boundary consumed by input, scripts and automation. 更多...
 
class  IGameplayInstanceCatalog
 Optional read-only discovery surface implemented beside a gameplay provider. 更多...
 
class  IGameSaveParticipant
 One authoritative domain participating in a game save. @lifetime The participant and its live domain owner must outlive the GameSaveSession. @thread All methods run on the owning simulation thread at a paused save/load boundary. @reentrancy No scripts or unknown callbacks during capture or prepare. 更多...
 
class  IInputInjection
 Inject synthetic device input into the live platform event stream. @thread Owner game-loop / MCP poll thread only. @reentrancy Does not invoke scripts or unknown callbacks. @ownership Implementations are owned by the providing module; callers must not retain the pointer across frames or capability revoke. 更多...
 
class  IMeshDeformationCompute
 Optional synchronous device-thread service for mesh sculpt and damage compute. 更多...
 
class  IParticleSdfField
 Borrowed 2D signed-distance field consumed by particle collision. 更多...
 
class  IParticlesQuery
 Particle system query surface (provided by the particles module). 更多...
 
class  IPhotoModeApplySink
 IPhotoModeApplySink public API. 更多...
 
class  IPhotoModeFieldSink
 IPhotoModeFieldSink public API. 更多...
 
class  IPhysicsQuery
 2D physics world query surface (provided by the physics module). 更多...
 
class  IPixelWorldAutomation
 Module-neutral JSON bridge from DevTools/MCP to PixelWorld tooling. 更多...
 
class  IPreparedGameRestore
 Owning prepared state whose publication cannot fail or invoke callbacks. 更多...
 
class  IProcgenAssetBounds
 Optional immutable asset-bounds capability for explicit procedural bakes. 更多...
 
class  IProcgenProbeSink
 Optional graphics consumer for complete generated probe batches. Implementations own all runtime resources and replace a batch atomically. Inputs are borrowed only for the call. 更多...
 
class  IProcgenQuery
 Procedural generation query surface (provided by the procgen module). 更多...
 
class  IProcgenSceneSink
 Optional scene consumer for procedural instance batches. 更多...
 
class  IProcgenWorldQuery
 Optional synchronous world-query capability for procedural generation. 更多...
 
class  IProfilerQuery
 Runtime profiler read surface (provided by the profiler module). 更多...
 
class  IRenderCapture
 Frame capture + camera + visible-entity inspection (graphics). 更多...
 
class  IRenderFrameCapture
 Single-provider frame observation boundary, independent of graphics headers. @thread Engine main thread only; no callbacks or scripts are invoked by operations. @lifetime Query the provider for each tool call; snapshots retain owning CPU leases. 更多...
 
class  ISceneQuery
 Scene graph query/mutation surface (provided by the scene module). 更多...
 
class  ISceneSearch
 Optional scene-owned search capability; never owns or mutates scene entities. @ownership Process-lifetime provider; all inputs borrowed only during the call, outputs own data. @thread Engine thread at a safe point; no concurrent scene mutation. @reentrancy Calls no scripts, link callbacks or embedding services. Not reentrant. 更多...
 
class  ISceneVisibilityEvidence
 Optional native authoring visibility provider; no borrowed resource survives a call. @thread Engine owner thread, explicit editing calls only; no callbacks or locks. @lifetime Provider is bound by Graphics startup and revoked on matching teardown. 更多...
 
class  ISdfField3D
 Borrowed 3D signed-distance field for cross-module collision queries. 更多...
 
class  ISensingQuery
 Runtime sensing read surface (provided by the sensing module). 更多...
 
class  ISnapshotContentHasher
 One content-digest implementation usable for snapshot sealing and verification. 更多...
 
class  ITimeSource
 Injectable source for elapsed and metadata time. 更多...
 
class  IUIAutomation
 Semantic retained-UI automation provided by the ui module. 更多...
 
class  IWindowSurfaceHost
 Render-surface host for the window module (provided by graphics). 更多...
 
class  IWorldSphereSweep
 Optional physics-owned query session; retains only generation-qualified world/body handles. @ownership Caller owns the session. World destruction or restore invalidates it; rebind after restore/hot reload. @thread Owner simulation thread only. Calls invoke no scripts and hold no locks. 更多...
 
class  IWorldSphereSweepFactory
 Optional binding capability; physics owns the factory for process lifetime. 更多...
 
class  LifetimeOwner
 Sole owner of an opaque lifetime record; copying is forbidden. 更多...
 
class  LifetimeWitness
 Owner-thread lifetime observation; cannot retain or access its owner. 更多...
 
class  LogicalId
 Human-readable, scoped identifier in the form namespace:name. 更多...
 
struct  MeshDeformationComputeRequest
 Owning, backend-neutral input for one synchronous GPU mesh deformation. 更多...
 
class  Module
 EVENGINE_API_FOUNDATION public API. 更多...
 
struct  ModuleBindAccess
 
class  ModuleManager
 EVENGINE_API_FOUNDATION public API. 更多...
 
struct  ModuleRegister
 EVENGINE_API_FOUNDATION public API. 更多...
 
class  MonotonicTimestamp
 Timestamp from a monotonic source. 更多...
 
class  ObjectRef
 Stable world/object identity backed by PersistentId. 更多...
 
class  Observer
 Thread-affine callback registry with mutation-safe dispatch. 更多...
 
struct  PhotoModeAssignment
 One reversible field assignment in a photo-mode transaction. 更多...
 
struct  PhotoModeColor
 RGBA payload used by the cross-module photo-mode application contract. 更多...
 
struct  ProcgenBatchSnapshot
 One complete cell snapshot participating in an atomic multi-batch publication. 更多...
 
struct  ProcgenInstanceAssetBinding
 Stable procedural prefab link at an exact admitted package build; contains no runtime pointers. 更多...
 
struct  ProcgenInstanceDelta
 Identity-based, revision-checked mutation of one procedural scene batch. 更多...
 
struct  ProcgenInstanceDesc
 Engine-neutral description of one procedural scene instance. 更多...
 
struct  ProcgenProbeDesc
 Engine-neutral description of one generated reflection or light probe. 更多...
 
struct  ProcgenSurfaceHit
 Value result for a procedural world-surface projection query. 更多...
 
struct  RayHitInfo
 Ray-cast result (value type). 更多...
 
struct  Rect
 Axis-aligned integer rectangle (screen/tile space). 更多...
 
struct  ReflectedAttribute
 EVENGINE_API_FOUNDATION_INLINE public API. 更多...
 
struct  ReflectedClass
 EVENGINE_API_FOUNDATION_INLINE public API. 更多...
 
struct  ReflectedMember
 EVENGINE_API_FOUNDATION public API. 更多...
 
struct  ReflectedValue
 Typed snapshot of one live instance property. 更多...
 
struct  Renderable3DInfo
 Generation-qualified snapshot of one live field-backed Renderable3D. 更多...
 
struct  RenderStatusInfo
 Render surface / frame state snapshot (value type). 更多...
 
class  Resource
 Resource is a game object that is managed by the ResourceManager. It can be loaded from a file or generated at runtime. If the resource is loaded from file, a monitor will be created to watch the file changes. When the file is modified, the resource will be reloaded. If the resource is generated at runtime, it can depend on a few other resources and the ResourceManager will update the resource when the dependencies are changed. 更多...
 
class  ResourceManager
 ResourceManager is a singleton that manages all resources in the game. It provides a way to load, reload, and unload resources. 更多...
 
class  ResourceRef
 Type-safe union of the reference forms accepted by resource-facing APIs. 更多...
 
class  ResourceUri
 A semantically named resource locator. 更多...
 
class  Result
 Move-only operation result carrying either a value or Status. 更多...
 
class  Result< void >
 Move-only operation result for actions with no value payload. 更多...
 
class  Runtime
 EVENGINE_API_FOUNDATION public API. 更多...
 
class  RuntimeHandle
 Process-local slot identity tagged by the registry that owns it. 更多...
 
struct  SceneEmbeddingBatch
 One embedding space; revision must identify immutable model weights and encoding configuration. 更多...
 
struct  SceneLocalRegion
 Immutable object-local volume selecting actual rendered surface pixels. @ownership Authoring relation owns the definition; ids are scoped to the measured object. @thread Owner-thread value parsing; no pointers, callbacks or runtime state. 更多...
 
struct  SceneNodeInfo
 Serializable snapshot of one scene node (value type, no scene types). 更多...
 
struct  SceneSearchHit
 Candidate plus cosine evidence (zero for structured-only queries). 更多...
 
struct  SceneSearchQuery
 Exact structured filters, optional HNSW cosine retrieval and bounded pagination. 更多...
 
struct  SceneSearchRecord
 Owning read-only scene projection; host-local id is qualified by snapshot and host. 更多...
 
struct  SceneSearchResult
 Owning results, snapshot/index watermarks and continuation bound to the complete query. 更多...
 
struct  SceneSearchSnapshot
 Frozen source evidence. Tokens expire after preparation, source mutation or host destruction. 更多...
 
struct  SceneSpatialConstraint
 One AND constraint. References are host-local IDs resolved in the current authoritative projection. 更多...
 
struct  SceneSpatialEvidence
 Measured evidence in the selected coordinate basis; no model-estimated spatial facts. 更多...
 
struct  ScriptArg
 One argument passed to a script provider method. 更多...
 
struct  ScriptComponentDeclaredSchema
 一条已登记组件的**声明 schema**:字段名与它们的声明默认值。 更多...
 
struct  ScriptComponentInstanceState
 一个脚本实体实例上某个组件的**当前状态**(供引擎工具读取)。 更多...
 
struct  ScriptComponentRecord
 脚本组件注册表的一条记录。 更多...
 
struct  ScriptComponentStoreEntry
 存储里的一条数据:键 + 一份字段对象。 更多...
 
struct  ScriptComponentStoreKey
 一条脚本组件数据的键:实体 + 组件名 + 版本。 更多...
 
class  ScriptException
 Exception raised at the public Runtime boundary. 更多...
 
struct  ScriptInfo
 EVENGINE_API_FOUNDATION_INLINE public API. 更多...
 
struct  ScriptProviderHandle
 Generation-qualified identity of one published script provider. 更多...
 
struct  ScriptProviderInfo
 Read-only view of one published provider, for discovery and diagnostics. 更多...
 
class  ScriptProviderRegistry
 Named script objects that native systems drive through named methods. 更多...
 
struct  SdfField3DBlob
 Portable dense SDF asset blob (schema id + version + samples). 更多...
 
struct  SensingWorldQuery
 Last completed query of one live sensing world. 更多...
 
class  SimulationClock
 Owner-thread fixed-step scheduler driven by an injected time source. 更多...
 
struct  SimulationStep
 One deterministic fixed-step emitted by SimulationClock. 更多...
 
struct  SnapshotEnvelope
 Stable outer format shared by persistence and cross-process snapshots. 更多...
 
class  SnapshotMigrationChain
 One directed payload migration step. 更多...
 
class  StartupStage
 StartupStage public API. 更多...
 
class  StateValue
 JSON-compatible state value tree used by state hot reload. 更多...
 
class  Status
 Structured status and zero or more diagnostics for an operation. 更多...
 
class  SubjectRef
 Strong, domain-neutral reference to a runtime subject. 更多...
 
class  Subscription
 Move-only RAII token that owns one observer registration. 更多...
 
class  Uri
 An immutable, canonical URI value. 更多...
 
class  UuidIdAdapter
 UUID-backed identifier adapter for legacy textual boundaries. 更多...
 
class  UuidV7Generator
 Injectable UUIDv7 generator. 更多...
 
class  Value
 The canonical owning dynamic value used by data-facing protocols. 更多...
 
class  VersionedRegistry
 A registry whose live values are qualified by a monotonically increasing runtime generation. 更多...
 
class  WallClockTimestamp
 Wall-clock timestamp used only for metadata and diagnostics. 更多...
 
struct  WorldSphereContact
 Owning sphere sweep contact; position is the moving sphere center, not the obstacle surface. 更多...
 
struct  WorldSphereSweepSettings
 Immutable per-binding sphere and filter policy. 更多...
 
struct  WorldSweepIdentity
 Process-local physics identity projected losslessly from owner handles; never a save identity. 更多...
 

概念

concept  DiagnosticValue
 A value with a stable protocol name and machine-readable diagnostic code.
 

类型定义

template<typename T >
using OptionalRef = std::optional< std::reference_wrapper< T > >
 Optional borrowed reference; it does not extend T's lifetime.
 
template<typename T >
using ResultRef = Result< std::reference_wrapper< T > >
 Checked borrowed reference carried by Result; it does not own T.
 
using DiagnosticDetail = std::pair< std::string, std::string >
 A structured detail attached to a Diagnostic.
 
using DiagnosticDetails = std::vector< DiagnosticDetail >
 Owning collection of diagnostic details with stable insertion order.
 
using CppEntityViewFn = std::function< void(ssq::Array &out)>
 C++ 实体 → 脚本 eve.view() 桥接。 用 registerCppEntityView(cls, fn) 登记脚本类的收集函数; 脚本 eve.view(cls) 沿类链找到登记的 C++ 类型后调用 fn 填充输出数组。
 
using PostEcsHook = std::function< void(ssq::Table &table)>
 在脚本 ECS 基类(eve.Component / eve.Entity / eve.System)注入之后执行的回调。 模块用它注入"extends eve.Entity"的脚本基类(例如 eve.SceneEntity)。 在 exposeECS / exposeECSToVM 末尾运行,早于任何游戏脚本。
 
using EditorMcpAttachFn = bool(*)(void *host)
 Opaque EditorHost* attach callback registered by the editor module.
 
using EditorMcpDetachFn = void(*)()
 Detach callback registered by the editor module.
 
using EventSequence = detail::StrongUint64< detail::EventSequenceTag >
 Stream-local event ordering value; it is not a global event identity.
 
using Generation = detail::StrongUint64< detail::GenerationTag >
 Registry/object replacement generation used to reject stale handles.
 
template<typename Tag >
using StrongUuid = detail::Id128< Tag >
 Public alias for a tag-safe 128-bit UUID identity.
 
using PersistentId = StrongUuid< detail::PersistentIdTag >
 Stable instance identity for persistence, networking and process boundaries.
 
using ContentId = StrongUuid< detail::ContentIdTag >
 Deterministic identity of equivalent canonical content.
 
using AssetGuid = StrongUuid< detail::AssetGuidTag >
 Stable asset identity used by sidecars, package manifests and caches.
 
using DocumentId = StrongUuid< detail::DocumentIdTag >
 Stable document identity for persisted/editor-facing documents.
 
using SceneObjectId = StrongUuid< detail::SceneObjectIdTag >
 Stable persisted scene-object identity; distinct from an ECS handle.
 
using ArtifactId = StrongUuid< detail::ArtifactIdTag >
 Stable generated-artifact identity; content equivalence remains ContentId.
 
using EventId = StrongUuid< detail::EventIdTag >
 Stable event identity for event envelopes and causal references.
 
using CommandId = StrongUuid< detail::CommandIdTag >
 Stable command identity for causal references.
 
using TransactionId = StrongUuid< detail::TransactionIdTag >
 Stable transaction identity for cross-module coordination and snapshots.
 
using OperationId = StrongUuid< detail::OperationIdTag >
 Stable operation identity inside a persisted transaction plan.
 
using EffectId = StrongUuid< detail::EffectIdTag >
 Stable effect-instance identity when an effect crosses a persistence/event boundary.
 
using PhotoModeValue = std::variant< bool, std::int64_t, float, std::string, PhotoModeColor >
 Typed payload accepted by authoritative photo-mode domain owners.
 
using ProtocolDispatchResult = Result< ProtocolDispatch >
 Structured result returned by protocol dispatch boundaries.
 
using Color = glm::vec4
 Render-neutral RGBA color shared by graphics-facing modules.
 
using ResourcePin = script::RuntimePin< Resource, ResourceCacheTag >
 Keep-alive pin on one cached resource; see script::RuntimePin.
 
using Revision = detail::StrongUint64< detail::RevisionTag >
 Monotonic content/state revision used for optimistic-concurrency checks.
 
using SchemaVersion = detail::StrongUint64< detail::SchemaVersionTag >
 Persistent data-format version; not a runtime replacement generation.
 
using ScriptCapabilityBinder = std::function< Result< void >(const ScriptProviderHandle &)>
 Binds one published provider to one native capability.
 
using ScriptCapabilityUnbinder = std::function< Result< void >(const ScriptProviderHandle &)>
 Removes the binding a matching ScriptCapabilityBinder created.
 
using SnapshotHashProvider = std::function< Result< ContentId >(std::string_view canonicalInput)>
 Injected content-digest implementation used by snapshots.
 
using IStateQuery = state::IStateQuery
 
using IStateMutation = state::IStateMutation
 
using StateMutation = state::StateMutation
 
using MutationKind = state::MutationKind
 
using MutationContext = state::MutationContext
 
using MutationReceipt = state::MutationReceipt
 
using SimulationTick = detail::StrongUint64< detail::SimulationTickTag >
 Deterministic simulation time step; it is not wall-clock time.
 
using FrameIndex = detail::StrongUint64< detail::FrameIndexTag >
 Render/presentation frame ordinal; it is not a simulation tick.
 
using UuidEntropySource = std::function< bool(std::span< std::uint8_t > bytes)>
 Entropy callback used by UUIDv7 generation.
 
using UuidClock = std::function< std::chrono::system_clock::time_point()>
 Clock callback used by the injectable UUIDv7 generator.
 

枚举

enum class  ActionGuideRootMode : std::uint8_t { InPlace , WorldRoot }
 Root-motion handling when sampling the subject for guide shots. 更多...
 
enum class  ActionGuideProjection : std::uint8_t { Orthographic , Perspective }
 Camera projection used for guide AOVs and landmark projection. 更多...
 
enum class  ActionGuideCapturePhase : std::uint8_t {
  Queued , Rendering , Ready , Failed ,
  Cancelled , Released
}
 Guide-capture job progress; Ready is published only after every requested AOV exists. 更多...
 
enum class  Severity : uint8_t { Info , Warning , Error , Fatal }
 Stable severity of a diagnostic, independent of its display text. 更多...
 
enum class  DiagnosticCode : uint32_t {
  None = 0 , InvalidArgument = 1 , PreconditionViolation = 2 , NotFound = 3 ,
  AlreadyExists = 4 , Conflict = 5 , Unsupported = 6 , Cancelled = 7 ,
  StaleHandle = 8 , ParseError = 9 , SerializationError = 10 , InvariantViolation = 11 ,
  Failed = 12 , HashMismatch = 13 , UnknownVersion = 14 , CallbackFailure = 15 ,
  DialogueNotWaitingForChoice = 16 , DialogueNotWaitingForCommand = 17 , DialogueConditionRejected = 18 , DialogueRouteNotFound = 19 ,
  ProcgenGroupDataInvalid = 20 , TypeMismatch = 21
}
 Stable machine-readable diagnostic codes. 更多...
 
enum class  FrameAttachment : uint8_t {
  Final , Depth , HwDepth , Normal ,
  Albedo , PbrParams , Emissive , Velocity ,
  Shadow0 , Shadow1 , Shadow2
}
 Stable logical render attachments; Depth and Velocity share storage. 更多...
 
enum class  FrameCapturePhase : uint8_t {
  Queued , Recording , ReadbackPending , Ready ,
  Failed , Cancelled , Expired , Released
}
 Capture progress; Ready is published only after all selected copies complete. 更多...
 
enum class  FramePixelFormat : uint8_t { Rgba8 , Bgra8 , Depth32Float , Rgba16Float }
 CPU storage encoding; no GPU object escapes the provider. 更多...
 
enum class  GameplayAccess : std::uint8_t { PlayerEquivalent , TestDriver , DeveloperCheat }
 Authority profile applied by a gameplay provider before domain validation. 更多...
 
enum class  GpuResidentBackend : uint8_t { Unknown , Vulkan , WebGpu }
 Backend identity for a transient, non-owning resident GPU buffer view. 更多...
 
enum class  MeshDeformationComputeOperation : std::uint8_t {
  Inflate , Dent , Flatten , Directional ,
  Smooth , Impact
}
 Operation executed by an optional mesh-deformation compute provider. 更多...
 
enum class  ParticleSdfGradientStatus { Defined , Undefined }
 Outcome of sampling an SDF gradient for particle collision. 更多...
 
enum class  PhotoModeDomain {
  Photo =0 , FramePacing =1 , Graphics =2 , Camera =3 ,
  Streaming =4 , Weather =5 , Lighting =6 , Water =7 ,
  PostFx =8 , Terrain =9 , Grass =10 , Audio =11
}
 Authoritative owner selected for a Pcg photo-mode field. 更多...
 
enum class  PhotoModeFieldAcceptance { Rejected =0 , Accepted =1 }
 Capability implemented by the composition root that routes assignments to domain owners. 更多...
 
enum class  PrefabRootPose : std::uint8_t { Authored = 0 , ReplaceTranslationRotation = 1 }
 Immutable prefab placement convention shared by geometry bounds and renderer preparation. Authored preserves the complete source hierarchy. ReplaceTranslationRotation replaces only the source root position/orientation with the instance pose, preserving its signed scale and all children. Values are persistent; unknown values must be rejected before publication. 更多...
 
enum class  ProtocolDispatch { ReplySent , NotificationHandled , Rejected , Terminate }
 Observable disposition of one protocol input message. 更多...
 
enum class  BlendMode {
  Alpha = 0 , Additive = 1 , Opaque = 2 , Premultiplied = 3 ,
  Multiply = 4
}
 Render-neutral 2D blend mode shared by graphics-facing modules. 更多...
 
enum class  ResourceRefKind : std::uint8_t { Asset , Uri , Definition , Object }
 The alternative held by a generic ResourceRef. 更多...
 
enum class  ScriptState {
  Compiled , Running , Loaded , Unloading ,
  Unloaded , Failed
}
 ScriptState public API. 更多...
 
enum class  ScriptStage {
  Compile , Execute , Reflect , Unload ,
  Shutdown
}
 ScriptStage public API. 更多...
 
enum class  SceneSpatialRelation {
  Left , Right , Above , Below ,
  Front , Behind , Near , Inside
}
 Exact geometric relation; directional predicates compare node origins, not visual occlusion. 更多...
 
enum class  SceneSpatialFrame { World , Reference , Observer }
 World axes, reference node axes, or a separate observer node's axes. 更多...
 
enum class  SdfField3DGradientStatus { Defined , Undefined }
 Outcome of sampling a 3D SDF gradient. 更多...
 
enum class  SdfField3DSampleKind : std::uint8_t { VertexGrid = 1 }
 Dense regular-grid sample layout used by the shared SDF interchange blob. 更多...
 
enum class  ContentDigestKind : std::uint8_t { NonCryptographic , Cryptographic }
 What a digest implementation actually guarantees, stated rather than implied. 更多...
 
enum class  StatusCode : uint8_t {
  Ok , Applied , NoOp , Pending ,
  Rejected , Conflict , NotFound , Unsupported ,
  Cancelled , Failed
}
 Stable outcome category for an operation. 更多...
 
enum class  UriScheme : std::uint8_t {
  Asset , Project , Builtin , Generated ,
  Memory
}
 URI schemes understood by the resource layer. 更多...
 
enum class  Utf8NullPolicy : std::uint8_t { Allow , Reject }
 Policy for embedded U+0000 in otherwise valid UTF-8 text. 更多...
 
enum class  RegistryOperation : std::uint8_t { Insert , Replace , Remove }
 Canonical mutation kind emitted by a VersionedRegistry. 更多...
 

函数

Result< ActionGuideCandidateMeta > decodeActionGuideCandidateMeta (const Value &value)
 Decode one candidate meta object; unknown fields/versions are rejected. @cost Linear in object field count.
 
Result< Value > encodeActionGuideCandidateMeta (const ActionGuideCandidateMeta &meta)
 Encode one validated candidate meta document.
 
Result< void > validateActionGuideCandidates (const ActionGuideIngestRequest &request)
 Validate candidate frames against a GuidePack contract (revision, count, size, alpha edge).
 
Result< ActionGuideIngestDraft > buildActionGuideIngestDraft (const ActionGuideIngestRequest &request)
 Build clip/ability draft Values from a validated ingest request.
 
Result< Value > encodeActionGuidePack (const ActionGuidePack &pack)
 Encode one validated guide pack as canonical schema version 1 data.
 
Result< ActionGuidePack > decodeActionGuidePack (const Value &value)
 Decode schema version 1; unknown fields/versions and incomplete shots are rejected.
 
Result< std::vector< ActionGuideLandmark > > projectActionGuideLandmarks (const ActionGuidePack &pack, std::span< const ActionGuideBoneWorld > bones)
 Project world-space bones into guide-canvas landmarks using the pack camera/canvas.
 
std::string_view actionGuideCapturePhaseName (ActionGuideCapturePhase phase)
 Stable protocol spelling of a guide-capture phase.
 
Result< ActionGuideSilhouetteMetrics > compareActionGuideSilhouetteIoU (std::span< const std::uint8_t > guideRgba8, std::span< const std::uint8_t > candidateRgba8, std::uint32_t width, std::uint32_t height, std::uint8_t guideLuminanceThreshold=200, std::uint8_t candidateAlphaThreshold=8)
 Compute silhouette IoU between guide luminance mask and candidate alpha mask.
 
Result< ActionGuideJointMetrics > compareActionGuideJointError (std::span< const ActionGuideLandmark > expected, std::span< const ActionGuideLandmark > observed)
 Max L2 pixel error across bones present in both landmark lists (matched by boneId). @cost Linear in expected × observed size (small joint counts).
 
Result< ActionGuideVerifyReport > verifyActionGuideCandidates (const ActionGuideVerifyRequest &request)
 Evaluate every shot against pack.qc; returns a report even when some shots fail.
 
Result< Value > encodeActionGuideVerifyReport (const ActionGuideVerifyReport &report)
 Encode a verify report as a durable evidence Value.
 
char * b64_encode (const char *src, size_t srclen, size_t linelen, size_t &dstlen)
 Base64-encode data.
 
char * b64_decode (const char *src, size_t srclen, size_t &dstlen)
 Decode base64 encoded data.
 
void initSystemLogging (const std::string &logDir={})
 Opens (append) the crash/error log file and records a session marker.
 
void recordLogEvent (const std::string &level, const std::string &message)
 Appends a timestamped event line to the crash/error log.
 
void recordCrashEvent (const std::string &report)
 Records a crash report, safe to call from a crash/exception handler.
 
std::string crashLogPath ()
 Path of the open crash/error log file.
 
void recordSessionStart ()
 Appends a session-start marker.
 
void recordSessionEnd (int exitCode)
 Appends the session-end marker carrying the process exit code.
 
std::ostream & operator<< (std::ostream &stream, Severity severity)
 Writes a severity for diagnostics and test output.
 
std::ostream & operator<< (std::ostream &stream, DiagnosticCode code)
 Writes the stable diagnostic-code spelling to a stream.
 
constexpr std::string_view severityName (Severity severity) noexcept
 Returns the stable lowercase severity spelling.
 
constexpr std::string_view diagnosticCodeName (DiagnosticCode code) noexcept
 Return a stable, compact spelling useful for logs and diagnostics.
 
template<DiagnosticValue T>
constexpr std::string_view diagnosticValueName (T value) noexcept
 Return the stable name supplied by a DiagnosticValue specialization.
 
template<DiagnosticValue T>
constexpr DiagnosticCode diagnosticValueCode (T value) noexcept
 Return the stable machine-readable code supplied by a DiagnosticValue specialization.
 
const ScriptComponentRecord * findScriptComponent (const std::string &name, SchemaVersion version)
 当前未退役的那条登记。
 
std::vector< ScriptComponentRecord > scriptComponentRecords ()
 当前 VM 的全部登记(含 retired 历史),按名字、版本、代际排序。 @cost 一次拷贝;仅供编辑器/诊断/测试等非热路径使用。
 
Result< ScriptComponentDeclaredSchema > scriptComponentDeclaredSchema (const std::string &name, SchemaVersion version)
 读一条已登记组件的声明 schema(字段名 + 声明默认值)。
 
void exposeECS (ssq::Table &table)
 脚本侧 ECS:Entity / Component / System / ShaderSystem / view(见 ECS.cpp)。 C++ 游戏实体仍直接用 ECS.hpp 的 ENTITY / COMPONENT / View。 GPU System:eve.ShaderSystem + gpgpu::ShaderSystem / EcsGpu.h。
 
void prepareEcsScriptInjection ()
 Resets per-VM script injection bookkeeping before a new VM is exposed.
 
void registerCppEntityView (const ssq::Class &cls, CppEntityViewFn fn)
 Registers cpp entity view.
 
void registerPostEcsHook (PostEcsHook fn)
 Registers post ecs hook.
 
void flushPostEcsHooks (ssq::Table &table)
 Run post-ECS hooks that were registered after exposeECS already ran.
 
void exposeECSToVM (ssq::VM &vm)
 在 ModuleManager::expose 之后调用;保证 eve.Component 等不被其它模块覆盖。
 
Result< void > registerScriptComponent (const std::string &name, SchemaVersion version, const ssq::Object &cls)
 登记一个脚本组件:eve.component(name, version, cls) 的 C++ 侧。
 
EVENGINE_API_FOUNDATION Result< Value > readScriptComponentField (const ssq::Object &instance, const std::string &field)
 读一个脚本组件实例的字段,**不关心这个字段存在哪**。
 
EVENGINE_API_FOUNDATION Result< void > writeScriptComponentField (const ssq::Object &instance, const std::string &field, const Value &value)
 写一个脚本组件实例的字段,归属规则见 readScriptComponentField。
 
void setEditorMcpAttachHooks (EditorMcpAttachFn attach, EditorMcpDetachFn detach)
 Register Host attach hooks used by eve.mcp.attachEditor.
 
EditorMcpAttachFn editorMcpAttachHook ()
 Current attach hook, or null.
 
EditorMcpDetachFn editorMcpDetachHook ()
 Current detach hook, or null.
 
Result< EntitySpatialPose > resolveEntitySpatialPose (ecs::EntityHandle entity, std::string_view bone={})
 Resolve through registered providers in deterministic registration order.
 
std::string_view frameAttachmentName (FrameAttachment attachment)
 Stable protocol spelling of an attachment.
 
Result< FrameAttachment > parseFrameAttachment (std::string_view name)
 Validate a protocol attachment name without inventing a resource.
 
std::string_view frameCapturePhaseName (FrameCapturePhase phase)
 Stable protocol spelling of a progress state.
 
constexpr size_t framePixelBytes (FramePixelFormat format)
 Packed CPU bytes per pixel; pure value query, callable on any thread.
 
Result< FramePixel > frameCapturePixel (const FrameCaptureBuffer &buffer, uint32_t x, uint32_t y)
 Read CPU snapshot only; no callback, rendering, or GPU wait. @thread Any thread with a snapshot lease.
 
Result< double > frameCaptureLinearDepth (const FrameCaptureBuffer &buffer, uint32_t x, uint32_t y, const std::array< float, 16 > &inverseProjection)
 Reconstruct positive view depth using this snapshot's projection. @thread Any thread with CPU leases.
 
Result< Value > executeGameplayControlRequest (const Value &request)
 Routes one versioned owning request to the uniquely matching gameplay provider.
 
Result< std::string > executeGameplayControlJson (std::string_view requestJson)
 Parse, execute and serialize one gameplay-control JSON request.
 
std::optional< PersistentId > generateUuidV7 (std::chrono::system_clock::time_point timestamp, const UuidEntropySource &entropy)
 Constructs a UUIDv7 without owning a clock or generator object.
 
Result< std::vector< ProcgenInstanceDesc > > buildProcgenInstanceDeltaSnapshot (const std::vector< ProcgenInstanceDesc > &current, uint64_t currentRevision, const ProcgenInstanceDelta &delta)
 Build an owning target snapshot from one exact revision and identity delta; does not publish state.
 
void exposeReflection (Runtime &runtime, ssq::Table eveTable)
 Exposes the Runtime reflection API to scripts as eve.reflect.
 
constexpr std::string_view resourceRefKindName (ResourceRefKind kind) noexcept
 Returns the stable resource-reference alternative spelling.
 
std::ostream & operator<< (std::ostream &stream, ResourceRefKind kind)
 Writes a resource-reference alternative for diagnostics.
 
template<typename... Results>
bool everyResultValid (const Results &... results) noexcept
 True only when every argument Result succeeded, observing all of them.
 
std::string reflectedFloatString (double value)
 Shortest round-trip float formatting (portable).
 
EVENGINE_API_FOUNDATION LogicalId scriptComponentSnapshotSchema ()
 脚本组件快照的 payload schema:eve:script-components 版本 1。
 
EVENGINE_API_FOUNDATION Result< SnapshotEnvelope > snapshotScriptComponents (PersistentId instanceId, Revision revision, SimulationTick tick, const SnapshotHashProvider &hashProvider)
 把引擎侧的脚本组件数据封成一个快照信封。
 
EVENGINE_API_FOUNDATION Result< void > restoreScriptComponents (const SnapshotEnvelope &snapshot, const SnapshotHashProvider &hashProvider)
 用快照里的数据**整体替换**当前的脚本组件数据。
 
EVENGINE_API_FOUNDATION Result< std::string > serializeScriptComponentSnapshot (PersistentId instanceId, Revision revision, SimulationTick tick, const SnapshotHashProvider &hashProvider)
 采集并序列化成确定性 JSON(存档写盘用)。 @cost 同 snapshotScriptComponents + 一次序列化。
 
EVENGINE_API_FOUNDATION Result< void > restoreScriptComponentSnapshotJson (std::string_view json, const SnapshotHashProvider &hashProvider)
 从 JSON 解析、校验并恢复。
 
EVENGINE_API_FOUNDATION Result< std::vector< ScriptComponentInstanceState > > scriptComponentInstancesOf (const ssq::Object &entityInstance)
 读一个脚本实体实例上挂着的全部**已登记**组件的状态。
 
EVENGINE_API_FOUNDATION Result< std::string > scriptComponentStatesJson ()
 引擎侧脚本组件数据的**工具视图**(MCP eve_script_components 与诊断用)。
 
Result< void > setScriptComponentValues (const ScriptComponentStoreKey &key, Value values)
 写入一条组件的引擎侧数据(创建实体、或迁移到新代时调用)。
 
const Value * findScriptComponentValues (const ScriptComponentStoreKey &key)
 读一条组件数据。
 
Result< Value > scriptComponentField (const ScriptComponentStoreKey &key, const std::string &field)
 读一个字段。
 
Result< void > setScriptComponentField (const ScriptComponentStoreKey &key, const std::string &field, Value value)
 写一个字段(脚本侧的写入与原生侧的写入都走这里)。
 
std::vector< ScriptComponentStoreEntry > scriptComponentStoreEntries ()
 列出存储里的全部条目,按 (实体, 组件名, 版本) 升序。
 
void replaceScriptComponentValues (std::vector< ScriptComponentStoreEntry > entries)
 用给定条目**整体替换**存储(恢复快照用)。
 
void reconcileScriptComponentValues (const std::string &name, SchemaVersion version, const std::vector< std::string > &fields, const std::vector< Value > &defaults)
 把某个组件(名字 + 版本)在**所有实体**上的数据重建到新 schema 上(热重载换代)。
 
std::size_t removeScriptComponentValues (std::uint64_t entityId)
 实体销毁时清掉它的全部组件数据。
 
void clearScriptComponentStore ()
 换 VM 时清空:脚本世界连同它的组件数据一起消失。
 
std::size_t scriptComponentStoreSize ()
 当前数据条数(诊断与测试用)。
 
std::uint64_t scriptComponentStoreRevision ()
 存储的单调版本号:任何一次写(含恢复、换代对齐、实体销毁)都会 +1。
 
Result< void > validateSdfField3DBlob (const SdfField3DBlob &blob)
 Validate dimensions, finiteness and sample count without encoding.
 
Result< Value > encodeSdfField3DBlob (const SdfField3DBlob &blob)
 Encode a validated SDF blob to a Value object. @cost Copies the distance sample buffer into the Value array once.
 
Result< SdfField3DBlob > decodeSdfField3DBlob (const Value &value)
 Decode a Value object into an owning SDF blob. @cost Allocates and copies the distance sample buffer once on success.
 
Result< std::string > snapshotHashInput (const SnapshotEnvelope &snapshot)
 Produce the canonical JSON input used for a snapshot content hash.
 
Result< void > verifySnapshotEnvelope (const SnapshotEnvelope &snapshot, const SnapshotHashProvider &hashProvider)
 Verify an envelope's content hash without modifying it.
 
Result< void > validateSnapshotPayloadMetadata (const Value &payload, Revision revision, SimulationTick tick)
 Validate optional payload copies of envelope revision and tick.
 
Result< SnapshotEnvelope > makeSnapshotEnvelope (std::string type, LogicalId schema, SchemaVersion schemaVersion, PersistentId instanceId, Revision revision, SimulationTick tick, Value payload, const SnapshotHashProvider &hashProvider)
 Construct and seal a snapshot envelope.
 
Result< Value > snapshotEnvelopeValue (const SnapshotEnvelope &snapshot)
 Convert an envelope to its strict canonical value representation.
 
Result< SnapshotEnvelope > parseSnapshotEnvelopeValue (const Value &value, const SnapshotHashProvider &hashProvider)
 Parse and verify an envelope from an owning Value.
 
Result< std::string > serializeSnapshotEnvelope (const SnapshotEnvelope &snapshot)
 Serialize an envelope as deterministic compact JSON.
 
Result< SnapshotEnvelope > parseSnapshotEnvelope (std::string_view json, const SnapshotHashProvider &hashProvider)
 Parse and verify an envelope from canonical or compatible JSON text.
 
std::string_view contentDigestKindName (ContentDigestKind kind) noexcept
 Stable protocol spelling of a digest kind.
 
std::shared_ptr< ISnapshotContentHasher > builtinSnapshotContentHasher ()
 The engine's built-in content hasher.
 
ISnapshotContentHasher * registeredSnapshotContentHasher () noexcept
 The currently registered hasher, if a module registered one.
 
Result< void > registerBuiltinSnapshotHasher ()
 Register the built-in hasher, unless a module already registered one.
 
SnapshotHashProvider snapshotContentHashProvider ()
 A SnapshotHashProvider backed by the active hasher.
 
std::string_view activeSnapshotHashAlgorithm () noexcept
 Id of the algorithm snapshotContentHashProvider currently uses.
 
Value toCanonicalStateValue (const StateValue &value)
 Copy a legacy reload tree into the canonical owning value protocol.
 
StateValue toLegacyStateValue (const Value &value)
 Project a canonical value into the legacy reload snapshot format.
 
std::ostream & operator<< (std::ostream &stream, StatusCode code)
 Write the stable StatusCode spelling to a stream.
 
constexpr std::string_view statusCodeName (StatusCode code) noexcept
 Return the stable protocol spelling of a status code.
 
template<typename T >
void eulerYxzFromMatrix (const glm::mat< 4, 4, T, glm::defaultp > &m, T &yaw, T &pitch, T &roll)
 Yaw/pitch/roll for the engine's transform order T * Ry * Rx * Rz * S.
 
template<typename T >
void eulerYxzFromQuat (const glm::qua< T, glm::defaultp > &q, T &yaw, T &pitch, T &roll)
 Quaternion overload of eulerYxzFromMatrix(); float and double both work.
 
const char * uriSchemeName (UriScheme scheme) noexcept
 Return the stable lower-case spelling of a resource URI scheme.
 
size_t utf8_codepoint_count (const std::string &s)
 Count UTF-8 code points in a string. Invalid / truncated sequences stop the scan.
 
size_t utf8_byte_offset_for_codepoints (const std::string &s, size_t codepoints)
 Byte offset of the N-th UTF-8 code point (0-based count of code points). Returns s.size() if there are fewer than N code points.
 
bool isValidUtf8 (std::string_view text, Utf8NullPolicy nullPolicy=Utf8NullPolicy::Allow) noexcept
 Validate shortest-form UTF-8, Unicode scalar range and optional NUL exclusion.
 
Result< std::string > readStringMember (const Value::Object &object, std::string_view name)
 Read a required string field, including an empty string, as an owning value.
 
Result< std::string > readNonEmptyStringMember (const Value::Object &object, std::string_view name)
 Read a required nonempty string field as an independent owning value.
 
Result< int > readIntValue (const Value &value)
 Read an Int64 value as a range-checked native int without numeric coercion.
 
Result< bool > readBoolValue (const Value &value)
 Read a Bool without coercing integers, strings or other kinds.
 
Result< std::int64_t > readInt64Value (const Value &value)
 Read an Int64 without narrowing or numeric coercion.
 
Result< std::uint32_t > readUInt32Value (const Value &value)
 Read an Int64 as a range-checked UInt32 without numeric coercion.
 
Result< double > readNumericDoubleValue (const Value &value)
 Read an Int64 or Double as a double without imposing a finite-value policy.
 
Result< float > readFiniteFloatValue (const Value &value)
 Convert an Integer or Double to a finite Float after validating its source range.
 
Result< json::UnsignedIntegerScan > scanUnsignedStringValue (const Value &value)
 Scan an unsigned decimal prefix from a required nonempty String value.
 
Result< json::UnsignedIntegerScan > scanUnsignedStringMember (const Value::Object &object, std::string_view name)
 Scan a required nonempty decimal-string field using from_chars semantics.
 
const char * gitCommit ()
 Git commit.
 
const char * thirdPartyVersion ()
 Third party version.
 
std::string buildInfo ()
 One-line build metadata for diagnostics (printed by eve --version).
 
const char * registryOperationName (RegistryOperation operation) noexcept
 Stable lowercase name for a registry mutation kind.
 
std::ostream & operator<< (std::ostream &stream, RegistryOperation operation)
 Writes the stable registry-operation protocol name.
 

变量

constexpr std::string_view kActionGuideCandidateMetaSchemaId = "eve.action.guide-candidate"
 
constexpr std::uint64_t kActionGuideCandidateMetaSchemaVersion = 1
 
constexpr std::string_view kActionGuideAbilityDraftSchemaId = "eve.action.guide-ability-draft"
 
constexpr std::uint64_t kActionGuideAbilityDraftSchemaVersion = 1
 
constexpr std::string_view kActionGuideClipRecipeSchemaId = "eve.action.guide-clip"
 
constexpr std::uint64_t kActionGuideClipRecipeSchemaVersion = 1
 
constexpr std::string_view kActionGuidePackSchemaId = "eve.action.guide-pack"
 
constexpr std::uint64_t kActionGuidePackSchemaVersion = 1
 
constexpr std::string_view kActionGuideVerifyReportSchemaId = "eve.action.guide-verify-report"
 
constexpr std::uint64_t kActionGuideVerifyReportSchemaVersion = 1
 
constexpr const char * kSessionStartMarker = "EVEngine session start"
 Marker text that opens a session block in eve.log.
 
constexpr const char * kSessionEndMarker = "session end (exit code"
 Marker text that closes a session block (followed by the exit code). @ownership Borrowed pointer to a static string literal; the caller owns nothing. @lifetime Static storage duration; valid for the whole process.
 
constexpr uint64_t kGpuResidentStorageOffsetAlignment = 256
 Portable alignment required for resident storage-buffer slice offsets.
 
enum EVENGINE_API_FOUNDATION ReflectedValueKind
 Runtime value kind read from a live script instance slot.
 
enum EVENGINE_API_FOUNDATION Bool = 1
 OT_BOOL.
 
enum EVENGINE_API_FOUNDATION Integer = 2
 OT_INTEGER.
 
enum EVENGINE_API_FOUNDATION Float = 3
 OT_FLOAT.
 
enum EVENGINE_API_FOUNDATION String = 4
 OT_STRING.
 
enum EVENGINE_API_FOUNDATION Array = 5
 OT_ARRAY (editable via Runtime array APIs / ReflectedPropertyModel).
 
enum EVENGINE_API_FOUNDATION Table = 6
 OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
 
enum EVENGINE_API_FOUNDATION Instance = 7
 Nested script instance (navigate; ObjectRef in property schema).
 
enum EVENGINE_API_FOUNDATION Other = 8
 Any other slot kind.
 
constexpr std::array< std::string_view, 8 > sceneSpatialRelationNames
 Static protocol spellings, in SceneSpatialRelation order.
 
constexpr std::array< std::string_view, 3 > sceneSpatialFrameNames {"world", "reference", "observer"}
 Static protocol spellings, in SceneSpatialFrame order.
 
constexpr const char * kScriptComponentSnapshotType = "eve.script-components"
 脚本组件快照的稳定类型(SnapshotEnvelope::type)。
 
const char * boot_content
 嵌入式脚本 / 着色器源码常量(构建时由集成脚本生成)。
 
const char * load_content
 
const char * module_list_content
 
const char * async_content
 
const char * scene_director_content
 
const char * demo_content
 
const char * vertex_content
 
const char * fragment_content
 

详细描述

Build metadata (engine git commit, build time, third-party version).

RPG 模块入口:属性 / 效果 / 状态 / 技能 / 结算 / 任务 / 成长 / 生命 的 脚本绑定与帧调度点。

各系统的完整设计说明见对应头文件: AttributeSystem.h / AttributeTypes.h — 属性 Effect.h — 效果(数据驱动定义) StatusSystem.h / StatusTypes.h — 状态(运行时实例,buff/debuff) Skill.h / SkillSystem.h / SkillTypes.h — 技能 Settlement.h — 结算流水线 Quest.h / Tracker.h / QuestSystem.h — 任务/成就/教程追踪器 LevelSystem.h — 等级 / 经验 VitalsSystem.h — 当前资源 / 受伤 / 死亡 以及总体设计文档:docs/dev/RPG系统设计.md

类型定义说明

◆ ArtifactId

Stable generated-artifact identity; content equivalence remains ContentId.

在文件 Identity.h 第 281 行定义.

◆ AssetGuid

Stable asset identity used by sidecars, package manifests and caches.

This is a domain tag over the common UUID representation, not a second UUID implementation. It is distinct from a URI, a content digest and every runtime handle.

在文件 Identity.h 第 272 行定义.

◆ Color

using eve::Color = typedef glm::vec4

Render-neutral RGBA color shared by graphics-facing modules.

在文件 RenderTypes.h 第 8 行定义.

◆ CommandId

Stable command identity for causal references.

在文件 Identity.h 第 287 行定义.

◆ ContentId

Deterministic identity of equivalent canonical content.

ContentId stores a caller-supplied 128-bit digest. This common layer does not silently choose a weak hash or pretend to provide cryptographic security; the digest algorithm and canonicalization policy belong to the content producer and must be part of its schema contract.

在文件 Identity.h 第 263 行定义.

◆ CppEntityViewFn

using eve::CppEntityViewFn = typedef std::function<void(ssq::Array& out)>

C++ 实体 → 脚本 eve.view() 桥接。 用 registerCppEntityView(cls, fn) 登记脚本类的收集函数; 脚本 eve.view(cls) 沿类链找到登记的 C++ 类型后调用 fn 填充输出数组。

在文件 ECS.h 第 167 行定义.

◆ DiagnosticDetail

using eve::DiagnosticDetail = typedef std::pair<std::string, std::string>

A structured detail attached to a Diagnostic.

Keys and values are intentionally strings at this foundation layer. Domain modules can project their canonical Value type into this representation without making common depend on data, graphics, physics, or scripting.

在文件 Diagnostic.h 第 85 行定义.

◆ DiagnosticDetails

using eve::DiagnosticDetails = typedef std::vector<DiagnosticDetail>

Owning collection of diagnostic details with stable insertion order.

在文件 Diagnostic.h 第 88 行定义.

◆ DocumentId

Stable document identity for persisted/editor-facing documents.

在文件 Identity.h 第 275 行定义.

◆ EditorMcpAttachFn

using eve::EditorMcpAttachFn = typedef bool (*)(void* host)

Opaque EditorHost* attach callback registered by the editor module.

在文件 EditorMcpAttach.h 第 8 行定义.

◆ EditorMcpDetachFn

using eve::EditorMcpDetachFn = typedef void (*)()

Detach callback registered by the editor module.

在文件 EditorMcpAttach.h 第 10 行定义.

◆ EffectId

Stable effect-instance identity when an effect crosses a persistence/event boundary.

在文件 Identity.h 第 296 行定义.

◆ EventId

Stable event identity for event envelopes and causal references.

在文件 Identity.h 第 284 行定义.

◆ EventSequence

Stream-local event ordering value; it is not a global event identity.

在文件 EventSequence.h 第 13 行定义.

◆ FrameIndex

Render/presentation frame ordinal; it is not a simulation tick.

在文件 Time.h 第 34 行定义.

◆ Generation

Registry/object replacement generation used to reject stale handles.

在文件 Generation.h 第 13 行定义.

◆ IStateMutation

在文件 StateAccess.h 第 125 行定义.

◆ IStateQuery

在文件 StateAccess.h 第 124 行定义.

◆ MutationContext

在文件 StateAccess.h 第 128 行定义.

◆ MutationKind

在文件 StateAccess.h 第 127 行定义.

◆ MutationReceipt

在文件 StateAccess.h 第 129 行定义.

◆ OperationId

Stable operation identity inside a persisted transaction plan.

在文件 Identity.h 第 293 行定义.

◆ OptionalRef

template<typename T >
using eve::OptionalRef = typedef std::optional<std::reference_wrapper<T> >

Optional borrowed reference; it does not extend T's lifetime.

模板参数
TReferenced object type, possibly const-qualified.

在文件 BorrowedRef.h 第 24 行定义.

◆ PersistentId

Stable instance identity for persistence, networking and process boundaries.

PersistentId is a UUID value, not an ECS or registry handle. It remains meaningful after a runtime object is rebuilt, while the runtime handle may change or become stale.

在文件 Identity.h 第 253 行定义.

◆ PhotoModeValue

using eve::PhotoModeValue = typedef std::variant<bool, std::int64_t, float, std::string, PhotoModeColor>

Typed payload accepted by authoritative photo-mode domain owners.

在文件 PcgPhotoModeApply.h 第 11 行定义.

◆ PostEcsHook

using eve::PostEcsHook = typedef std::function<void(ssq::Table& table)>

在脚本 ECS 基类(eve.Component / eve.Entity / eve.System)注入之后执行的回调。 模块用它注入"extends eve.Entity"的脚本基类(例如 eve.SceneEntity)。 在 exposeECS / exposeECSToVM 末尾运行,早于任何游戏脚本。

在文件 ECS.h 第 176 行定义.

◆ ProtocolDispatchResult

Structured result returned by protocol dispatch boundaries.

注解
Transport/parse failures belong in the Result status; successful values describe every valid protocol disposition exhaustively.

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

◆ ResourcePin

using eve::ResourcePin = typedef script::RuntimePin<Resource, ResourceCacheTag>

Keep-alive pin on one cached resource; see script::RuntimePin.

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

◆ ResultRef

template<typename T >
using eve::ResultRef = typedef Result<std::reference_wrapper<T> >

Checked borrowed reference carried by Result; it does not own T.

模板参数
TReferenced object type, possibly const-qualified.

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

◆ Revision

Monotonic content/state revision used for optimistic-concurrency checks.

在文件 Revision.h 第 13 行定义.

◆ SceneObjectId

Stable persisted scene-object identity; distinct from an ECS handle.

在文件 Identity.h 第 278 行定义.

◆ SchemaVersion

Persistent data-format version; not a runtime replacement generation.

在文件 SchemaVersion.h 第 13 行定义.

◆ ScriptCapabilityBinder

using eve::ScriptCapabilityBinder = typedef std::function<Result<void>(const ScriptProviderHandle&)>

Binds one published provider to one native capability.

The module that owns a capability supplies this: it knows its own interface and therefore owns the marshalling. The registry only routes the binding, so no central table has to know every capability.

返回
Success once the capability can be observed by its consumers.

在文件 ScriptProvider.h 第 85 行定义.

◆ ScriptCapabilityUnbinder

using eve::ScriptCapabilityUnbinder = typedef std::function<Result<void>(const ScriptProviderHandle&)>

Removes the binding a matching ScriptCapabilityBinder created.

在文件 ScriptProvider.h 第 88 行定义.

◆ SimulationTick

Deterministic simulation time step; it is not wall-clock time.

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

◆ SnapshotHashProvider

using eve::SnapshotHashProvider = typedef std::function<Result<ContentId>(std::string_view canonicalInput)>

Injected content-digest implementation used by snapshots.

参数
canonicalInputCanonical JSON containing stable header fields and payload.
返回
A ContentId, or a structured failure when the provider is unavailable.
备注
No default hash or security claim is made. Providers must document their digest algorithm and collision/security properties.

在文件 Snapshot.h 第 36 行定义.

◆ StateMutation

在文件 StateAccess.h 第 126 行定义.

◆ StrongUuid

template<typename Tag >
using eve::StrongUuid = typedef detail::Id128<Tag>

Public alias for a tag-safe 128-bit UUID identity.

模板参数
TagEmpty domain tag that prevents accidental cross-domain mixing.
备注
All UUID aliases in the common layer use the same representation, parser, formatter, hash and child-derivation implementation.

在文件 Identity.h 第 244 行定义.

◆ TransactionId

Stable transaction identity for cross-module coordination and snapshots.

在文件 Identity.h 第 290 行定义.

◆ UuidClock

using eve::UuidClock = typedef std::function<std::chrono::system_clock::time_point()>

Clock callback used by the injectable UUIDv7 generator.

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

◆ UuidEntropySource

using eve::UuidEntropySource = typedef std::function<bool(std::span<std::uint8_t> bytes)>

Entropy callback used by UUIDv7 generation.

参数
bytesA writable span that the callback must fill completely on success.
返回
true only when all requested bytes were filled with suitable entropy.
备注
Callers must provide a seed; no implicit pseudo-random source or random_device path is used. Security-sensitive callers must inject a cryptographically secure source.

在文件 UuidV7.h 第 26 行定义.

枚举类型说明

◆ ActionGuideCapturePhase

enum class eve::ActionGuideCapturePhase : std::uint8_t
strong

Guide-capture job progress; Ready is published only after every requested AOV exists.

枚举值
Queued 
Rendering 
Ready 
Failed 
Cancelled 
Released 

在文件 ActionGuidePack.h 第 161 行定义.

◆ ActionGuideProjection

enum class eve::ActionGuideProjection : std::uint8_t
strong

Camera projection used for guide AOVs and landmark projection.

枚举值
Orthographic 
Perspective 

在文件 ActionGuidePack.h 第 34 行定义.

◆ ActionGuideRootMode

enum class eve::ActionGuideRootMode : std::uint8_t
strong

Root-motion handling when sampling the subject for guide shots.

枚举值
InPlace 
WorldRoot 

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

◆ BlendMode

enum class eve::BlendMode
strong

Render-neutral 2D blend mode shared by graphics-facing modules.

枚举值
Alpha 
Additive 
Opaque 
Premultiplied 
Multiply 

在文件 RenderTypes.h 第 11 行定义.

◆ ContentDigestKind

enum class eve::ContentDigestKind : std::uint8_t
strong

What a digest implementation actually guarantees, stated rather than implied.

枚举值
NonCryptographic 

Fast, deterministic, collision-resistant enough for storage identity only.

Cryptographic 

A cryptographic digest; the provider documents its algorithm and properties.

在文件 SnapshotHash.h 第 38 行定义.

◆ DiagnosticCode

enum class eve::DiagnosticCode : uint32_t
strong

Stable machine-readable diagnostic codes.

Numeric values are part of the public contract. Messages are intended for people and must not be used as program-branch conditions.

枚举值
None 
InvalidArgument 
PreconditionViolation 
NotFound 
AlreadyExists 
Conflict 
Unsupported 
Cancelled 
StaleHandle 
ParseError 
SerializationError 
InvariantViolation 
Failed 
HashMismatch 
UnknownVersion 
CallbackFailure 
DialogueNotWaitingForChoice 

Dialogue runner is not positioned at a choice suspension point.

DialogueNotWaitingForCommand 

Dialogue runner is not positioned at an asynchronous command.

DialogueConditionRejected 

A dialogue condition rejected the requested route.

DialogueRouteNotFound 

A requested dialogue route does not exist on the current node.

ProcgenGroupDataInvalid 

Mesh group sidecar data is inconsistent with its dense streams.

TypeMismatch 

A stable reference resolved to a different canonical domain type.

在文件 Diagnostic.h 第 47 行定义.

◆ FrameAttachment

enum class eve::FrameAttachment : uint8_t
strong

Stable logical render attachments; Depth and Velocity share storage.

枚举值
Final 
Depth 
HwDepth 
Normal 
Albedo 
PbrParams 
Emissive 
Velocity 
Shadow0 
Shadow1 
Shadow2 

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

◆ FrameCapturePhase

enum class eve::FrameCapturePhase : uint8_t
strong

Capture progress; Ready is published only after all selected copies complete.

枚举值
Queued 
Recording 
ReadbackPending 
Ready 
Failed 
Cancelled 
Expired 
Released 

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

◆ FramePixelFormat

enum class eve::FramePixelFormat : uint8_t
strong

CPU storage encoding; no GPU object escapes the provider.

枚举值
Rgba8 
Bgra8 
Depth32Float 
Rgba16Float 

在文件 FrameCapture.h 第 44 行定义.

◆ GameplayAccess

enum class eve::GameplayAccess : std::uint8_t
strong

Authority profile applied by a gameplay provider before domain validation.

枚举值
PlayerEquivalent 
TestDriver 
DeveloperCheat 

在文件 GameplayControl.h 第 22 行定义.

◆ GpuResidentBackend

enum class eve::GpuResidentBackend : uint8_t
strong

Backend identity for a transient, non-owning resident GPU buffer view.

枚举值
Unknown 
Vulkan 
WebGpu 

在文件 GpuResidentBufferView.h 第 8 行定义.

◆ MeshDeformationComputeOperation

enum class eve::MeshDeformationComputeOperation : std::uint8_t
strong

Operation executed by an optional mesh-deformation compute provider.

枚举值
Inflate 
Dent 
Flatten 
Directional 
Smooth 
Impact 

在文件 MeshDeformationCompute.h 第 11 行定义.

◆ ParticleSdfGradientStatus

enum class eve::ParticleSdfGradientStatus
strong

Outcome of sampling an SDF gradient for particle collision.

枚举值
Defined 

Finite outward unit gradient written to the output components.

Undefined 

Empty field or singularity; output components are unspecified.

在文件 ParticleSdf.h 第 8 行定义.

◆ PhotoModeDomain

enum class eve::PhotoModeDomain
strong

Authoritative owner selected for a Pcg photo-mode field.

枚举值
Photo 
FramePacing 
Graphics 
Camera 
Streaming 
Weather 
Lighting 
Water 
PostFx 
Terrain 
Grass 
Audio 

在文件 PcgPhotoModeApply.h 第 13 行定义.

◆ PhotoModeFieldAcceptance

enum class eve::PhotoModeFieldAcceptance
strong

Capability implemented by the composition root that routes assignments to domain owners.

Calls are synchronous on the game thread. Implementations must either apply one assignment fully or leave its domain unchanged. They must not retain references to the assignment or invoke scripts.

Optional per-field provider used by the built-in photo-mode capability router.

Providers register as capability listeners. Exactly one provider must accept an assignment. This extension point is reserved for optional domain-owned settings whose provider cannot be named by the UI module at link time. Stable engine controls use their narrow capabilities directly, such as IFramePacing and IFramePresentation, instead of making foundation modules parse PCG field names.

Named ownership response from a photo-mode field provider.

枚举值
Rejected 
Accepted 

在文件 PcgPhotoModeApply.h 第 32 行定义.

◆ PrefabRootPose

enum class eve::PrefabRootPose : std::uint8_t
strong

Immutable prefab placement convention shared by geometry bounds and renderer preparation. Authored preserves the complete source hierarchy. ReplaceTranslationRotation replaces only the source root position/orientation with the instance pose, preserving its signed scale and all children. Values are persistent; unknown values must be rejected before publication.

枚举值
Authored 
ReplaceTranslationRotation 

在文件 PrefabRootPose.h 第 11 行定义.

◆ ProtocolDispatch

enum class eve::ProtocolDispatch
strong

Observable disposition of one protocol input message.

枚举值
ReplySent 
NotificationHandled 
Rejected 
Terminate 

在文件 ProtocolDispatch.h 第 16 行定义.

◆ RegistryOperation

enum class eve::RegistryOperation : std::uint8_t
strong

Canonical mutation kind emitted by a VersionedRegistry.

枚举值
Insert 
Replace 
Remove 

在文件 VersionedRegistry.h 第 75 行定义.

◆ ResourceRefKind

enum class eve::ResourceRefKind : std::uint8_t
strong

The alternative held by a generic ResourceRef.

枚举值
Asset 
Uri 
Definition 
Object 

在文件 ResourceRef.h 第 22 行定义.

◆ SceneSpatialFrame

enum class eve::SceneSpatialFrame
strong

World axes, reference node axes, or a separate observer node's axes.

枚举值
World 
Reference 
Observer 

在文件 SceneSearch.h 第 36 行定义.

◆ SceneSpatialRelation

enum class eve::SceneSpatialRelation
strong

Exact geometric relation; directional predicates compare node origins, not visual occlusion.

枚举值
Left 
Right 
Above 
Below 
Front 
Behind 
Near 
Inside 

在文件 SceneSearch.h 第 34 行定义.

◆ ScriptStage

enum class eve::ScriptStage
strong

ScriptStage public API.

枚举值
Compile 
Execute 
Reflect 
Unload 
Shutdown 

在文件 Runtime.h 第 52 行定义.

◆ ScriptState

enum class eve::ScriptState
strong

ScriptState public API.

枚举值
Compiled 
Running 
Loaded 
Unloading 
Unloaded 
Failed 

在文件 Runtime.h 第 42 行定义.

◆ SdfField3DGradientStatus

enum class eve::SdfField3DGradientStatus
strong

Outcome of sampling a 3D SDF gradient.

枚举值
Defined 

Finite outward unit gradient written to the output components.

Undefined 

Empty field or singularity; output components are unspecified.

在文件 SdfField3D.h 第 13 行定义.

◆ SdfField3DSampleKind

enum class eve::SdfField3DSampleKind : std::uint8_t
strong

Dense regular-grid sample layout used by the shared SDF interchange blob.

VertexGrid matches physics::DistanceField3D and the sample lattice of fluids::MeshSdf (origin at the first sample, x-fastest then y then z).

枚举值
VertexGrid 

在文件 SdfField3D.h 第 24 行定义.

◆ Severity

enum class eve::Severity : uint8_t
strong

Stable severity of a diagnostic, independent of its display text.

枚举值
Info 
Warning 
Error 
Fatal 

在文件 Diagnostic.h 第 20 行定义.

◆ StatusCode

enum class eve::StatusCode : uint8_t
strong

Stable outcome category for an operation.

Ok, Applied, NoOp, and Pending are non-failure outcomes. The other values require the caller to inspect the diagnostics or otherwise make an explicit policy decision.

枚举值
Ok 
Applied 
NoOp 
Pending 
Rejected 
Conflict 
NotFound 
Unsupported 
Cancelled 
Failed 

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

◆ UriScheme

enum class eve::UriScheme : std::uint8_t
strong

URI schemes understood by the resource layer.

These schemes identify virtual resource namespaces, not operating-system paths. A URI has the canonical shape scheme://path[?query][#fragment].

枚举值
Asset 
Project 
Builtin 
Generated 
Memory 

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

◆ Utf8NullPolicy

enum class eve::Utf8NullPolicy : std::uint8_t
strong

Policy for embedded U+0000 in otherwise valid UTF-8 text.

枚举值
Allow 
Reject 

在文件 Utf8Validation.h 第 13 行定义.

函数说明

◆ actionGuideCapturePhaseName()

EVENGINE_API_FOUNDATION std::string_view eve::actionGuideCapturePhaseName ( ActionGuideCapturePhase  phase)

Stable protocol spelling of a guide-capture phase.

在文件 ActionGuidePack.cpp 第 639 行定义.

引用了 Cancelled, Failed, phase, Queued, Ready, Released , 以及 Rendering.

◆ activeSnapshotHashAlgorithm()

std::string_view eve::activeSnapshotHashAlgorithm ( )
noexcept

Id of the algorithm snapshotContentHashProvider currently uses.

返回
The active hasher's id, so a caller can record what produced a hash.

在文件 SnapshotHash.cpp 第 97 行定义.

引用了 eve::ISnapshotContentHasher::id() , 以及 registeredSnapshotContentHasher().

被这些函数引用 eve::tactics::Tactics::snapshotHashAlgorithm().

◆ b64_decode()

EVENGINE_API_FOUNDATION char * eve::b64_decode ( const char *  src,
size_t  srclen,
size_t &  dstlen 
)

Decode base64 encoded data.

参数
srcThe string containing the base64 data.
srclenThe length of the string.
dstlenThe size of the binary data is stored here.
返回
A chunk of memory containing the binary data (allocated with new[]). @ownership Caller owns the returned buffer and releases it with delete[]. @lifetime The returned buffer is independent of src and remains valid until freed.

在文件 b64.cpp 第 102 行定义.

引用了 d, out, size , 以及 v.

被这些函数引用 eve::data::decode().

◆ b64_encode()

EVENGINE_API_FOUNDATION char * eve::b64_encode ( const char *  src,
size_t  srclen,
size_t  linelen,
size_t &  dstlen 
)

Base64-encode data.

参数
srcThe data to encode.
srclenThe size in bytes of the data.
linelenThe maximum length of each line in the encoded string. 0 indicates no maximum length.
dstlenThe length of the encoded string is stored here.
返回
A string containing the base64-encoded data (allocated with new[]). @ownership Caller owns the returned buffer and releases it with delete[]. @lifetime The returned buffer is independent of src and remains valid until freed.

在文件 b64.cpp 第 28 行定义.

引用了 out.

被这些函数引用 eve::data::encode().

◆ buildActionGuideIngestDraft()

EVENGINE_API_FOUNDATION Result< ActionGuideIngestDraft > eve::buildActionGuideIngestDraft ( const ActionGuideIngestRequest &  request)

Build clip/ability draft Values from a validated ingest request.

备注
Does not call AbilityRuntime or create SpriteSheet*. Caller should validate first. @cost Linear in frame count for attribution assembly.

在文件 ActionGuideIngest.cpp 第 159 行定义.

引用了 draft, eve::Result< T >::failure(), file, request, eve::ActionGuideIngestDraft::sourceGuideRevision, valid , 以及 validateActionGuideCandidates().

◆ buildInfo()

EVENGINE_API_FOUNDATION std::string eve::buildInfo ( )

One-line build metadata for diagnostics (printed by eve --version).

返回
"v<engine version> git=<commit> built=<time> [<build type>] tp=<third-party version>"

在文件 Version.cpp 第 20 行定义.

引用了 info.

被这些函数引用 eve::cmd::Cmdline::runArgs().

◆ buildProcgenInstanceDeltaSnapshot()

EVENGINE_API_FOUNDATION Result< std::vector< ProcgenInstanceDesc > > eve::buildProcgenInstanceDeltaSnapshot ( const std::vector< ProcgenInstanceDesc > &  current,
uint64_t  currentRevision,
const ProcgenInstanceDelta &  delta 
)

Build an owning target snapshot from one exact revision and identity delta; does not publish state.

参数
currentBorrowed complete committed snapshot, retained only during this call.
currentRevisionNon-zero revision matching delta.baseRevision.
deltaBorrowed update, including exact target order and the next non-zero revision.
返回
Complete detached target or identity/revision failure; inputs remain unchanged. @cost Linear expected time and owning staging memory in current plus changed instances; amortized per explicit delta. @thread Any thread with immutable inputs; synchronous, no callbacks, global services or RNG.

在文件 ProcgenSceneSink.cpp 第 6 行定义.

引用了 eve::ProcgenInstanceDelta::added, eve::ProcgenInstanceDelta::baseRevision, Conflict, current, eve::Diagnostic::error(), found, identity, InvalidArgument, eve::ProcgenInstanceDelta::removed, eve::ProcgenInstanceDelta::removedPointIds, target, eve::ProcgenInstanceDelta::targetOrder, eve::ProcgenInstanceDelta::targetPointOrder, eve::ProcgenInstanceDelta::targetRevision , 以及 eve::ProcgenInstanceDelta::updated.

被这些函数引用 eve::asset_graphics::ProcgenPrefabSceneSink::applyDelta().

◆ builtinSnapshotContentHasher()

std::shared_ptr< ISnapshotContentHasher > eve::builtinSnapshotContentHasher ( )

The engine's built-in content hasher.

返回
A process-wide immutable hasher whose id is fnv1a64x2-noncrypto. @ownership Shared; the object is immutable and may be handed to cap::provide.

在文件 SnapshotHash.cpp 第 79 行定义.

◆ clearScriptComponentStore()

EVENGINE_API_FOUNDATION void eve::clearScriptComponentStore ( )

换 VM 时清空:脚本世界连同它的组件数据一起消失。

在文件 ScriptComponentStore.cpp 第 126 行定义.

引用了 clearScriptComponentStore().

被这些函数引用 clearScriptComponentStore() , 以及 prepareEcsScriptInjection().

◆ compareActionGuideJointError()

EVENGINE_API_FOUNDATION Result< ActionGuideJointMetrics > eve::compareActionGuideJointError ( std::span< const ActionGuideLandmark >  expected,
std::span< const ActionGuideLandmark >  observed 
)

Max L2 pixel error across bones present in both landmark lists (matched by boneId). @cost Linear in expected × observed size (small joint counts).

在文件 ActionGuideVerify.cpp 第 51 行定义.

引用了 dx, dy, error, eve::ActionGuideJointMetrics::evaluated, eve::ActionGuideJointMetrics::matchedBones, maxError, eve::ActionGuideJointMetrics::maxErrorPx, eve::ActionGuideJointMetrics::missingBones, eve::Result< T >::success(), eve::ActionGuideLandmark::x , 以及 eve::ActionGuideLandmark::y.

被这些函数引用 verifyActionGuideCandidates().

◆ compareActionGuideSilhouetteIoU()

EVENGINE_API_FOUNDATION Result< ActionGuideSilhouetteMetrics > eve::compareActionGuideSilhouetteIoU ( std::span< const std::uint8_t >  guideRgba8,
std::span< const std::uint8_t >  candidateRgba8,
std::uint32_t  width,
std::uint32_t  height,
std::uint8_t  guideLuminanceThreshold = 200,
std::uint8_t  candidateAlphaThreshold = 8 
)

Compute silhouette IoU between guide luminance mask and candidate alpha mask.

备注
Empty guide or candidate foreground is InvalidArgument (not IoU=1). @cost Linear in width × height.

在文件 ActionGuideVerify.cpp 第 24 行定义.

引用了 eve::ActionGuideSilhouetteMetrics::candidateForeground, eve::ActionGuideSilhouetteMetrics::guideForeground, height, eve::ActionGuideSilhouetteMetrics::intersection, eve::ActionGuideSilhouetteMetrics::iou, p, eve::Result< T >::success(), eve::ActionGuideSilhouetteMetrics::unionCount , 以及 width.

被这些函数引用 verifyActionGuideCandidates().

◆ contentDigestKindName()

EVENGINE_API_FOUNDATION std::string_view eve::contentDigestKindName ( ContentDigestKind  kind)
noexcept

Stable protocol spelling of a digest kind.

在文件 SnapshotHash.cpp 第 71 行定义.

引用了 Cryptographic, kind , 以及 NonCryptographic.

◆ crashLogPath()

EVENGINE_API_FOUNDATION std::string eve::crashLogPath ( )

Path of the open crash/error log file.

返回
Absolute/relative path as opened; empty when logging is not available.

在文件 CrashLog.cpp 第 89 行定义.

被这些函数引用 eve::dev::crashLogSummary().

◆ decodeActionGuideCandidateMeta()

◆ decodeActionGuidePack()

EVENGINE_API_FOUNDATION Result< ActionGuidePack > eve::decodeActionGuidePack ( const Value &  value)

Decode schema version 1; unknown fields/versions and incomplete shots are rejected.

参数
valueUntrusted owning value tree borrowed only for this synchronous call.
返回
Fully validated owning pack, or a structured parse/validation failure.
备注
Failure publishes no runtime state. Nested objects reject unknown fields.

在文件 ActionGuidePack.cpp 第 524 行定义.

引用了 eve::ActionGuidePack::actionBinding, binding, eve::ActionGuidePack::camera, camera, eve::ActionGuidePack::canvas, eve::ActionGuidePack::clipRef, eve::Result< T >::failure(), kActionGuidePackSchemaId, kActionGuidePackSchemaVersion, pack, eve::ActionGuidePack::qc, eve::ActionGuidePack::revision, revision, eve::ActionGuidePack::rootMode, eve::ActionGuidePack::shots, size, eve::ActionGuidePack::skeletonRef, eve::ActionGuidePack::subject, subject, eve::Result< T >::success(), text, valid, value , 以及 version.

被这些函数引用 eve::graphics::vulkan::Graphics::GuideCaptureService::requestCapture().

◆ decodeSdfField3DBlob()

EVENGINE_API_FOUNDATION Result< SdfField3DBlob > eve::decodeSdfField3DBlob ( const Value &  value)

Decode a Value object into an owning SDF blob. @cost Allocates and copies the distance sample buffer once on success.

在文件 SdfField3D.cpp 第 54 行定义.

引用了 blob, depth, eve::Result< T >::failure(), height, key, kind, eve::SdfField3DBlob::kind, object, origin, eve::SdfField3DBlob::schemaId, eve::SdfField3DBlob::schemaVersion, eve::Result< T >::success(), valid, validateSdfField3DBlob(), value, version , 以及 width.

◆ diagnosticCodeName()

constexpr std::string_view eve::diagnosticCodeName ( DiagnosticCode  code)
constexprnoexcept

Return a stable, compact spelling useful for logs and diagnostics.

返回
Borrowed static text for code; unknown values return "unknown". @thread Thread-safe and side-effect free. @reentrancy Does not invoke callbacks or alter diagnostic state.

在文件 Diagnostic.h 第 176 行定义.

引用了 AlreadyExists, CallbackFailure, Cancelled, code, Conflict, DialogueConditionRejected, DialogueNotWaitingForChoice, DialogueNotWaitingForCommand, DialogueRouteNotFound, Failed, HashMismatch, InvalidArgument, InvariantViolation, None, NotFound, ParseError, PreconditionViolation, ProcgenGroupDataInvalid, SerializationError, StaleHandle, TypeMismatch, UnknownVersion , 以及 Unsupported.

被这些函数引用 eve::DiagnosticValueTraits< DiagnosticCode >::name(), operator<<() , 以及 eve::script::projectDiagnostic().

◆ diagnosticValueCode()

template<DiagnosticValue T>
constexpr DiagnosticCode eve::diagnosticValueCode ( T  value)
constexprnoexcept

Return the stable machine-readable code supplied by a DiagnosticValue specialization.

Diagnostic value code.

Code.

在文件 DiagnosticValue.h 第 42 行定义.

引用了 value.

◆ diagnosticValueName()

template<DiagnosticValue T>
constexpr std::string_view eve::diagnosticValueName ( T  value)
constexprnoexcept

Return the stable name supplied by a DiagnosticValue specialization.

Diagnostic value name.

Name.

在文件 DiagnosticValue.h 第 34 行定义.

引用了 value.

◆ editorMcpAttachHook()

EVENGINE_API_FOUNDATION EditorMcpAttachFn eve::editorMcpAttachHook ( )

Current attach hook, or null.

在文件 EditorMcpAttach.cpp 第 16 行定义.

被这些函数引用 eve::dev::exposeMcpScriptApi().

◆ editorMcpDetachHook()

EVENGINE_API_FOUNDATION EditorMcpDetachFn eve::editorMcpDetachHook ( )

Current detach hook, or null.

在文件 EditorMcpAttach.cpp 第 18 行定义.

被这些函数引用 eve::dev::exposeMcpScriptApi().

◆ encodeActionGuideCandidateMeta()

◆ encodeActionGuidePack()

EVENGINE_API_FOUNDATION Result< Value > eve::encodeActionGuidePack ( const ActionGuidePack &  pack)

Encode one validated guide pack as canonical schema version 1 data.

参数
packOwning pack borrowed only for this synchronous call.
返回
Independently owning Value, or a structured validation/encoding failure.
备注
Owner-thread-only and reentrant; no files, clocks, or callbacks. @cost Linear in shot and landmark-free pack size.

在文件 ActionGuidePack.cpp 第 466 行定义.

引用了 eve::ActionGuideBinding::abilityId, eve::ActionGuidePack::actionBinding, eve::ActionGuideCanvas::backgroundRgba, eve::ActionGuidePack::camera, eve::ActionGuidePack::canvas, eve::ActionGuideBinding::clipName, eve::ActionGuidePack::clipRef, eve::ActionGuideSubject::domain, eve::ActionGuideCamera::eye, eve::Result< T >::failure(), eve::ActionGuideCamera::farPlane, eve::ActionGuideCamera::fovYDegrees, eve::ActionGuideBinding::fps, eve::ActionGuideSubject::generation, eve::ActionGuideCanvas::height, eve::ActionGuideSubject::id, kActionGuidePackSchemaId, kActionGuidePackSchemaVersion, eve::ActionGuideBinding::loop, eve::ActionGuideQc::maxJointErrorPx, eve::ActionGuideQc::maxRetries, eve::ActionGuideQc::minSilhouetteIoU, eve::ActionGuideCamera::nearPlane, eve::ActionGuideCamera::orthoSize, pack, eve::ActionGuideBinding::phaseMarks, eve::ActionGuideCanvas::pixelsPerUnit, eve::ActionGuideCamera::projection, eve::ActionGuidePack::qc, eve::ActionGuidePack::revision, root, eve::ActionGuidePack::rootMode, eve::ActionGuidePack::shots, eve::ActionGuidePack::skeletonRef, eve::ActionGuidePack::subject, eve::Result< T >::success(), eve::ActionGuideCamera::target, eve::ActionGuideCanvas::transparent, eve::ActionGuideCamera::up, valid , 以及 eve::ActionGuideCanvas::width.

◆ encodeActionGuideVerifyReport()

◆ encodeSdfField3DBlob()

EVENGINE_API_FOUNDATION Result< Value > eve::encodeSdfField3DBlob ( const SdfField3DBlob &  blob)

Encode a validated SDF blob to a Value object. @cost Copies the distance sample buffer into the Value array once.

在文件 SdfField3D.cpp 第 35 行定义.

引用了 blob, distance, eve::Result< T >::failure(), eve::SdfField3DBlob::schemaId, eve::SdfField3DBlob::schemaVersion, eve::Result< T >::success(), valid , 以及 validateSdfField3DBlob().

被这些函数引用 eve::fluids::exposeVolumeFluidFactory().

◆ eulerYxzFromMatrix()

template<typename T >
void eve::eulerYxzFromMatrix ( const glm::mat< 4, 4, T, glm::defaultp > &  m,
T &  yaw,
T &  pitch,
T &  roll 
)
inline

Yaw/pitch/roll for the engine's transform order T * Ry * Rx * Rz * S.

Everything that composes a node, renderable or body transform uses that order: scene's localMatrix(), RenderSystem3D's modelFromTransform() and physics' pushBody3D(). A conversion from a matrix or quaternion back to yaw/pitch/roll must therefore invert that order, and glm::extractEulerAngleYXZ is exactly its inverse (GLM documents it as extracting the Y * X * Z angles).

glm::eulerAngles() inverts a different Euler family, so using it here silently produced wrong orientations for any multi-axis rotation. Single-axis rotations happen to agree between the two families, which is why this survived for so long. Extracting and recomposing is a round trip, so both sides must use the same helper – never glm::eulerAngles() on an engine transform.

Note the output order: yaw first, then pitch, then roll. glm::eulerAngles() produced the pitch/yaw/roll order instead, so call sites that read .x/.y/.z must map them onto yaw/pitch/roll explicitly.

参数
[in]mRotation matrix, or one whose scale has already been divided out.
[out]yawSet to the rotation about +Y.
[out]pitchSet to the rotation about +X.
[out]rollSet to the rotation about +Z.
注解
Ownership/lifetime: the parameters are plain scalar out-references, written once before the call returns and never retained, aliased or freed by this helper, so callers keep ownership of their own storage. This mirrors the signature of glm::extractEulerAngleYXZ, which it forwards to.

在文件 TransformEuler.h 第 42 行定义.

引用了 m, pitch, roll , 以及 yaw.

被这些函数引用 eulerYxzFromQuat().

◆ eulerYxzFromQuat()

template<typename T >
void eve::eulerYxzFromQuat ( const glm::qua< T, glm::defaultp > &  q,
T &  yaw,
T &  pitch,
T &  roll 
)
inline

◆ everyResultValid()

template<typename... Results>
bool eve::everyResultValid ( const Results &...  results)
noexcept

True only when every argument Result succeeded, observing all of them.

Use this helper for any condition that combines several Results instead of a short-circuiting chain such as if (!first || !second). || stops at the first failing operand, so the operands after it are never observed; destroying an unobserved Result asserts in Debug, and when two such destructors run during the same unwinding the second throw terminates the process instead of reporting the intended structured failure. The fold below uses & rather than && for exactly that reason: every argument is observed before the answer is computed.

参数
resultsOne or more Results to observe; pass them as lvalues.
返回
True when every argument represents a successful outcome.
备注
Evaluation order follows the fold's grouping and is deterministic; the helper never throws, never allocates, and invokes no callbacks.

Every result valid.

在文件 Result.h 第 618 行定义.

◆ executeGameplayControlJson()

EVENGINE_API_FOUNDATION Result< std::string > eve::executeGameplayControlJson ( std::string_view  requestJson)

Parse, execute and serialize one gameplay-control JSON request.

参数
requestJsonStrict UTF-8 JSON request.
返回
Deterministic compact response JSON or structured diagnostics.

在文件 GameplayControlJson.cpp 第 378 行定义.

引用了 executeGameplayControlJson(), executeGameplayControlRequest(), request , 以及 response.

被这些函数引用 executeGameplayControlJson() , 以及 eve::dev::DevTool::exposeScriptApi().

◆ executeGameplayControlRequest()

EVENGINE_API_FOUNDATION Result< Value > eve::executeGameplayControlRequest ( const Value &  request)

Routes one versioned owning request to the uniquely matching gameplay provider.

参数
requestRequest object with schema id evengine.gameplay-control-request and version 1.
返回
Owning response object, or structured parse/routing/domain diagnostics.
备注
Unknown root fields are rejected. Provider callbacks execute synchronously on the gameplay owner thread; this function retains no request or provider pointer.

在文件 GameplayControlJson.cpp 第 221 行定义.

引用了 eve::Value::array(), domain, eve::Diagnostic::error(), eve::Result< T >::failure(), left, eve::Value::object(), operation, output, ParseError, eve::Value::pushBack(), request, right, root, eve::Result< T >::success(), Unsupported , 以及 valid.

被这些函数引用 executeGameplayControlJson().

◆ exposeECS()

EVENGINE_API_FOUNDATION void eve::exposeECS ( ssq::Table &  table)

脚本侧 ECS:Entity / Component / System / ShaderSystem / view(见 ECS.cpp)。 C++ 游戏实体仍直接用 ECS.hpp 的 ENTITY / COMPONENT / View。 GPU System:eve.ShaderSystem + gpgpu::ShaderSystem / EcsGpu.h。

在文件 ECS.cpp 第 1589 行定义.

引用了 cls, exposeECS(), flushPostEcsHooks(), name, version , 以及 vm.

被这些函数引用 exposeECS() , 以及 exposeECSToVM().

◆ exposeECSToVM()

EVENGINE_API_FOUNDATION void eve::exposeECSToVM ( ssq::VM &  vm)

在 ModuleManager::expose 之后调用;保证 eve.Component 等不被其它模块覆盖。

在文件 ECS.cpp 第 1664 行定义.

引用了 exposeECS(), exposeECSToVM() , 以及 vm.

被这些函数引用 exposeECSToVM().

◆ exposeReflection()

EVENGINE_API_FOUNDATION void eve::exposeReflection ( Runtime &  runtime,
ssq::Table  eveTable 
)

Exposes the Runtime reflection API to scripts as eve.reflect.

Adds a reflect sub-table to the eve table with class/instance introspection, typed property read/write and array/table member editing. Script-facing schema projection for the shared property UI lives on ui.propertySchema(instance) (built by ReflectedPropertyModel).

local info = eve.reflect.classInfo("Hero") // class metadata table
local hero = eve.reflect.createInstance("Hero")
eve.reflect.write(hero, "hp", 42.5)
local hp = eve.reflect.read(hero, "hp") // 42.5
local members = eve.reflect.inspect(hero) // member metadata + live values
std::string local
std::map< std::string, std::span< const std::uint8_t > > members
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
glm::uvec4 info

Scalar reads/writes keep the slot's own type (bool stays bool, integer stays integer, ...), mirroring Runtime::writeProperty; array, table and instance slots are read as their live script objects. classInfo() returns null for an unknown class, and every mutator returns false instead of throwing when the member is missing, is a method, or is not editable.

参数
runtimeRuntime whose reflection data the bindings operate on.
eveTableRoot eve table to add the reflect sub-table to.

在文件 ReflectScript.cpp 第 163 行定义.

引用了 cls, index, info, key, member, name, out , 以及 value.

被这些函数引用 eve::Runtime::initialize().

◆ findScriptComponent()

EVENGINE_API_FOUNDATION const ScriptComponentRecord * eve::findScriptComponent ( const std::string &  name,
SchemaVersion  version 
)

当前未退役的那条登记。

返回
只读指针,指向注册表内部记录;没有该名字+版本时返回 nullptr。 @lifetime 在下一次 registerScriptComponent 或 prepareEcsScriptInjection 前有效。

在文件 ECS.cpp 第 1549 行定义.

引用了 current, found, eve::ScriptComponentRecord::generation, name , 以及 version.

被这些函数引用 restoreScriptComponents(), scriptComponentInstancesOf() , 以及 scriptComponentStatesJson().

◆ findScriptComponentValues()

EVENGINE_API_FOUNDATION const Value * eve::findScriptComponentValues ( const ScriptComponentStoreKey &  key)

读一条组件数据。

返回
只读指针,或在没有该键时返回 nullptr。 @lifetime 在下一次 set/remove/clear 之前有效。
备注
字段按**名字**查找;需要稳定顺序时(序列化/Git diff)按注册表记录里的**声明顺序** 遍历,而不是遍历这个 map(Value::Object 是 std::map,顺序是字典序)。

在文件 ScriptComponentStore.cpp 第 41 行定义.

引用了 found , 以及 key.

被这些函数引用 eve::scene_editor::ScriptComponentOperationTarget::bind(), eve::scene_editor::ScriptComponentOperationTarget::cloneDomainState(), eve::scene_editor::ScriptComponentOperationTarget::commitDomainState(), scriptComponentField() , 以及 scriptComponentInstancesOf().

◆ flushPostEcsHooks()

EVENGINE_API_FOUNDATION void eve::flushPostEcsHooks ( ssq::Table &  table)

Run post-ECS hooks that were registered after exposeECS already ran.

Native module classes bind on first script access. A module may therefore register a hook (or depend on Entity already existing) after the initial exposeECS call; this flushes those pending hooks onto the live eve table.

在文件 ECS.cpp 第 1650 行定义.

引用了 flushPostEcsHooks() , 以及 n.

被这些函数引用 eve::ModuleManager::expose_pending(), exposeECS() , 以及 flushPostEcsHooks().

◆ frameAttachmentName()

EVENGINE_API_FOUNDATION std::string_view eve::frameAttachmentName ( FrameAttachment  a)

Stable protocol spelling of an attachment.

在文件 FrameCapture.cpp 第 25 行定义.

引用了 a.

被这些函数引用 eve::dev::callMcpFrameCaptureTool() , 以及 eve::FrameCaptureStore::request().

◆ frameCaptureLinearDepth()

EVENGINE_API_FOUNDATION Result< double > eve::frameCaptureLinearDepth ( const FrameCaptureBuffer &  b,
uint32_t  x,
uint32_t  y,
const std::array< float, 16 > &  matrix 
)

Reconstruct positive view depth using this snapshot's projection. @thread Any thread with CPU leases.

在文件 FrameCaptureImage.cpp 第 58 行定义.

引用了 b, Depth32Float, eve::Result< T >::failure(), frameCapturePixel(), HwDepth, matrix, nx, ny, eve::Result< T >::success(), vz, x, y , 以及 z.

被这些函数引用 eve::dev::callMcpFrameCaptureTool() , 以及 eve::dev::frameCapturePreview().

◆ frameCapturePhaseName()

EVENGINE_API_FOUNDATION std::string_view eve::frameCapturePhaseName ( FrameCapturePhase  p)

Stable protocol spelling of a progress state.

在文件 FrameCapture.cpp 第 34 行定义.

引用了 p.

被这些函数引用 eve::dev::callMcpEntityInspectionTool() , 以及 eve::dev::callMcpFrameCaptureTool().

◆ frameCapturePixel()

EVENGINE_API_FOUNDATION Result< FramePixel > eve::frameCapturePixel ( const FrameCaptureBuffer &  b,
uint32_t  x,
uint32_t  y 
)

Read CPU snapshot only; no callback, rendering, or GPU wait. @thread Any thread with a snapshot lease.

在文件 FrameCaptureImage.cpp 第 12 行定义.

引用了 Albedo, b, Bgra8, c, Depth, depth, Depth32Float, fraction, framePixelBytes(), eve::FramePixel::labels, Normal, p, PbrParams, Rgba16Float, eve::Result< T >::success(), value, Velocity, x , 以及 y.

被这些函数引用 eve::dev::callMcpFrameCaptureTool(), frameCaptureLinearDepth() , 以及 eve::dev::frameCapturePreview().

◆ framePixelBytes()

constexpr size_t eve::framePixelBytes ( FramePixelFormat  format)
constexpr

Packed CPU bytes per pixel; pure value query, callable on any thread.

在文件 FrameCapture.h 第 46 行定义.

引用了 Bgra8, Depth32Float, Rgba16Float , 以及 Rgba8.

被这些函数引用 eve::FrameCaptureStore::complete(), frameCapturePixel() , 以及 eve::dev::frameCapturePreview().

◆ generateUuidV7()

EVENGINE_API_FOUNDATION std::optional< PersistentId > eve::generateUuidV7 ( std::chrono::system_clock::time_point  timestamp,
const UuidEntropySource &  entropy 
)

Constructs a UUIDv7 without owning a clock or generator object.

参数
timestampUnix time used for the UUIDv7 millisecond field.
entropySource for the UUID random portion.
返回
A generated PersistentId, or empty when entropy/time is unavailable or out of range.

在文件 Identity.cpp 第 90 行定义.

引用了 bytes, index , 以及 milliseconds.

被这些函数引用 eve::UuidV7Generator::generate().

◆ gitCommit()

EVENGINE_API_FOUNDATION const char * eve::gitCommit ( )

Git commit.

返回
Short engine git commit, or "unknown" when not built from a git checkout.

在文件 Version.cpp 第 17 行定义.

◆ initSystemLogging()

EVENGINE_API_FOUNDATION void eve::initSystemLogging ( const std::string &  logDir = {})

Opens (append) the crash/error log file and records a session marker.

参数
logDirDirectory for the eve.log file. Empty selects EVE_LOG_DIR or the current working directory.

Idempotent: subsequent calls are no-ops. If the file cannot be opened, logging silently stays disabled (stderr output is unaffected).

在文件 CrashLog.cpp 第 64 行定义.

被这些函数引用 main().

◆ isValidUtf8()

EVENGINE_API_FOUNDATION bool eve::isValidUtf8 ( std::string_view  text,
Utf8NullPolicy  nullPolicy = Utf8NullPolicy::Allow 
)
noexcept

Validate shortest-form UTF-8, Unicode scalar range and optional NUL exclusion.

参数
textBorrowed bytes used only for this call.
nullPolicyWhether U+0000 is accepted.
返回
True only for a complete sequence containing no surrogate code points. @thread Worker-safe; no shared state or allocation.

在文件 Utf8Validation.cpp 第 5 行定义.

引用了 index, Reject , 以及 text.

被这些函数引用 eve::asset_procgen::EvpackInstanceSetLoader::load(), eve::asset_procgen::EvpackTerrainMaterialLoader::load(), eve::asset_import::unity_detail::metaScalar(), eve::asset_import::prepareCanonicalTerrainImport(), eve::asset_import::prepareUnityVegetationPreset() , 以及 eve::asset_import::unity_detail::validPath().

◆ makeSnapshotEnvelope()

EVENGINE_API_FOUNDATION Result< SnapshotEnvelope > eve::makeSnapshotEnvelope ( std::string  type,
LogicalId  schema,
SchemaVersion  schemaVersion,
PersistentId  instanceId,
Revision  revision,
SimulationTick  tick,
Value  payload,
const SnapshotHashProvider &  hashProvider 
)

Construct and seal a snapshot envelope.

参数
typeStable runtime/domain snapshot type.
schemaStable namespace:name payload schema identifier.
schemaVersionVersion of the payload schema.
instanceIdStable identity of the state owner; nil is allowed for legacy anonymous stores.
revisionState revision at capture time.
tickSimulation tick at capture time; wall-clock time is not accepted.
payloadOwning domain payload.
hashProviderInjected digest provider; must not be empty.
返回
A sealed envelope, or a structured validation/hash failure.

在文件 Snapshot.cpp 第 103 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), hash, input, instanceId, eve::detail::Id128< Tag >::nil(), payload, revision, snapshot, snapshotHashInput(), eve::Result< T >::success(), tick, type, Unsupported , 以及 valid.

被这些函数引用 eve::pixelworld_streaming::archiveChunkBatch(), eve::SnapshotMigrationChain::migrate(), eve::tactics::TacticsPersistence::snapshot(), eve::procgen::ArtifactPublisher::snapshot(), eve::authority::Store::snapshot(), eve::definitions::DefinitionRegistry::snapshot(), eve::game_event::GameEventLog::snapshot(), eve::physics::World::snapshot(), eve::physics::World3D::snapshot(), eve::policyregistry::PolicyRegistry::snapshot(), eve::production::WorkQueue::snapshot(), eve::statepatch::Store::snapshot(), eve::transaction::Ledger::snapshot(), eve::pixelworld_replay::PixelReplayLog::snapshot(), eve::rpg::RPGSaveSession::snapshotJson(), eve::GameSaveSession::snapshotJson(), eve::definition::snapshotRuntimeInstance() , 以及 snapshotScriptComponents().

◆ operator<<() [1/5]

EVENGINE_API_FOUNDATION std::ostream & eve::operator<< ( std::ostream &  stream,
DiagnosticCode  code 
)

Writes the stable diagnostic-code spelling to a stream.

在文件 Diagnostic.cpp 第 9 行定义.

引用了 code , 以及 diagnosticCodeName().

◆ operator<<() [2/5]

std::ostream & eve::operator<< ( std::ostream &  stream,
RegistryOperation  operation 
)
inline

Writes the stable registry-operation protocol name.

Registry operation name.

在文件 VersionedRegistry.h 第 100 行定义.

引用了 operation , 以及 registryOperationName().

◆ operator<<() [3/5]

std::ostream & eve::operator<< ( std::ostream &  stream,
ResourceRefKind  kind 
)
inline

Writes a resource-reference alternative for diagnostics.

Resource ref kind name.

在文件 ResourceRef.h 第 41 行定义.

引用了 kind , 以及 resourceRefKindName().

◆ operator<<() [4/5]

EVENGINE_API_FOUNDATION std::ostream & eve::operator<< ( std::ostream &  stream,
Severity  severity 
)

Writes a severity for diagnostics and test output.

在文件 Diagnostic.cpp 第 7 行定义.

引用了 severityName().

◆ operator<<() [5/5]

EVENGINE_API_FOUNDATION std::ostream & eve::operator<< ( std::ostream &  stream,
StatusCode  code 
)

Write the stable StatusCode spelling to a stream.

在文件 Status.cpp 第 7 行定义.

引用了 code , 以及 statusCodeName().

◆ parseFrameAttachment()

EVENGINE_API_FOUNDATION Result< FrameAttachment > eve::parseFrameAttachment ( std::string_view  name)

Validate a protocol attachment name without inventing a resource.

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

引用了 name , 以及 eve::Result< T >::success().

被这些函数引用 eve::dev::callMcpFrameCaptureTool().

◆ parseSnapshotEnvelope()

◆ parseSnapshotEnvelopeValue()

EVENGINE_API_FOUNDATION Result< SnapshotEnvelope > eve::parseSnapshotEnvelopeValue ( const Value &  value,
const SnapshotHashProvider &  hashProvider 
)

Parse and verify an envelope from an owning Value.

参数
valueObject containing exactly the envelope fields.
hashProviderProvider used to verify contentHash.
返回
A verified envelope, or a parse/version/hash failure.

在文件 Snapshot.cpp 第 136 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), instanceId, object, eve::LogicalId::parse(), eve::detail::Id128< Tag >::parse(), ParseError, payload, revision, snapshot, eve::Result< T >::success(), tick, type, value, verifySnapshotEnvelope() , 以及 version.

被这些函数引用 parseSnapshotEnvelope() , 以及 eve::tactics::TacticsGameSaveParticipant::prepare().

◆ prepareEcsScriptInjection()

EVENGINE_API_FOUNDATION void eve::prepareEcsScriptInjection ( )

Resets per-VM script injection bookkeeping before a new VM is exposed.

在文件 ECS.cpp 第 1624 行定义.

引用了 clearScriptComponentStore() , 以及 prepareEcsScriptInjection().

被这些函数引用 eve::ModuleManager::exposeVM() , 以及 prepareEcsScriptInjection().

◆ projectActionGuideLandmarks()

EVENGINE_API_FOUNDATION Result< std::vector< ActionGuideLandmark > > eve::projectActionGuideLandmarks ( const ActionGuidePack &  pack,
std::span< const ActionGuideBoneWorld >  bones 
)

Project world-space bones into guide-canvas landmarks using the pack camera/canvas.

参数
packValidated pack borrowed for this call; camera and canvas define the projection.
bonesCaller-owned world samples; not retained.
返回
Owning landmark list, or a structured projection failure.
备注
Does not sample animation or touch GPU. Depth is positive view-space distance. @cost Linear in bone count; matrix setup is O(1) per call.

在文件 ActionGuidePack.cpp 第 595 行定义.

引用了 bone, eve::ActionGuideLandmark::boneId, bones, eve::ActionGuidePack::camera, eve::ActionGuidePack::canvas, clip, eve::ActionGuideLandmark::depth, eve::ActionGuideCanvas::height, eve::ActionGuideLandmark::name, pack, eve::ActionGuideLandmark::parentId, proj, valid, view, viewProj, eve::ActionGuideCanvas::width, eve::ActionGuideLandmark::x , 以及 eve::ActionGuideLandmark::y.

被这些函数引用 eve::graphics::vulkan::Graphics::GuideCaptureService::publishCurrentShot().

◆ readBoolValue()

EVENGINE_API_FOUNDATION Result< bool > eve::readBoolValue ( const Value &  value)

Read a Bool without coercing integers, strings or other kinds.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent Boolean payload, including false, or TypeMismatch for another kind.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 50 行定义.

引用了 readBoolValue() , 以及 value.

被这些函数引用 readBoolValue().

◆ readFiniteFloatValue()

EVENGINE_API_FOUNDATION Result< float > eve::readFiniteFloatValue ( const Value &  value)

Convert an Integer or Double to a finite Float after validating its source range.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent float, or TypeMismatch for another kind and InvalidArgument for nonfinite/out-of-range input.
备注
Int64 conversion intentionally goes through double before float, preserving the existing codec rounding. Underflow to zero is accepted, and negative zero is preserved. No caller state changes on failure.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 81 行定义.

引用了 maximum, number, readFiniteFloatValue() , 以及 value.

被这些函数引用 readFiniteFloatValue().

◆ readInt64Value()

EVENGINE_API_FOUNDATION Result< std::int64_t > eve::readInt64Value ( const Value &  value)

Read an Int64 without narrowing or numeric coercion.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent signed integer, or TypeMismatch for another kind.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 57 行定义.

引用了 readInt64Value() , 以及 value.

被这些函数引用 eve::map::readI64(), readInt64Value() , 以及 readUInt32Value().

◆ readIntValue()

EVENGINE_API_FOUNDATION Result< int > eve::readIntValue ( const Value &  value)

Read an Int64 value as a range-checked native int without numeric coercion.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent integer, or TypeMismatch for another kind and InvalidArgument for overflow.
备注
Doubles, booleans and numeric strings are rejected, even if they represent an integer.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 41 行定义.

引用了 readIntValue() , 以及 value.

被这些函数引用 readIntValue() , 以及 eve::warship::WarshipSystem::rearrangeFromJson().

◆ readNonEmptyStringMember()

EVENGINE_API_FOUNDATION Result< std::string > eve::readNonEmptyStringMember ( const Value::Object &  object,
std::string_view  name 
)

Read a required nonempty string field as an independent owning value.

参数
objectBorrowed object, stable for this synchronous call only; never retained.
nameBorrowed field name, never retained.
返回
Copied string, or ParseError for a missing, empty or non-string field. @cost One object lookup and a copy linear in field bytes per call.
注解
Caller synchronizes object access; no callbacks or shared mutable state.

在文件 Value.cpp 第 33 行定义.

引用了 name, readNonEmptyStringMember(), readStringMember() , 以及 text.

被这些函数引用 readNonEmptyStringMember(), eve::map::readString(), eve::scene::readString() , 以及 scanUnsignedStringMember().

◆ readNumericDoubleValue()

EVENGINE_API_FOUNDATION Result< double > eve::readNumericDoubleValue ( const Value &  value)

Read an Int64 or Double as a double without imposing a finite-value policy.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent double, or TypeMismatch for all other kinds.
备注
Int64 uses static_cast<double>; Double preserves negative zero, NaN and infinities. Consumers validate finiteness after applying their own assignment/diagnostic policy.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 74 行定义.

引用了 number, readNumericDoubleValue() , 以及 value.

被这些函数引用 readNumericDoubleValue() , 以及 eve::weapon::detail::readOptionalDouble().

◆ readScriptComponentField()

EVENGINE_API_FOUNDATION Result< Value > eve::readScriptComponentField ( const ssq::Object &  instance,
const std::string &  field 
)

读一个脚本组件实例的字段,**不关心这个字段存在哪**。

登记过的组件(eve.component(name, version, cls))的字段在引擎侧存储里,没登记的在实例 自己的槽位里。原生消费者(GPU 打包、存档、编辑器)不该自己判断这件事——那是 ECS 的归属 约定(登记时摘槽位、装上 _get/_set),在别处再写一份必然漂移。所以这里由 ECS 统一回答。

参数
instance组件**实例**(eve.Component 子类的实例),不是类。
field字段名;登记组件必须是 schema 里声明过的,未登记组件必须是实例上真实存在的槽位。
返回
字段值;NotFound 表示没有这个字段,InvalidArgument 表示传进来的不是实例。
备注
返回的是**拷贝**,不引用脚本对象,可以跨帧保存。 @cost 登记组件一次存储查找(键含字段名);未登记组件一次 Squirrel 槽位查找。 热路径请按 (实体, 组件名, 版本) 直接用 common/ScriptComponentStore.h,不要按名字反复问。

◆ readStringMember()

EVENGINE_API_FOUNDATION Result< std::string > eve::readStringMember ( const Value::Object &  object,
std::string_view  name 
)

Read a required string field, including an empty string, as an owning value.

参数
objectBorrowed object, stable during this synchronous call; never retained.
nameBorrowed field name, never retained.
返回
Copied string, or ParseError for a missing or non-string field. @cost One object lookup and a copy linear in field bytes per call.
注解
Caller synchronizes object access; no callbacks or shared mutable state.

在文件 Value.cpp 第 25 行定义.

引用了 found, name, readStringMember() , 以及 text.

被这些函数引用 readNonEmptyStringMember(), readStringMember() , 以及 eve::warship::WarshipSystem::rearrangeFromJson().

◆ readUInt32Value()

EVENGINE_API_FOUNDATION Result< std::uint32_t > eve::readUInt32Value ( const Value &  value)

Read an Int64 as a range-checked UInt32 without numeric coercion.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Independent UInt32, or TypeMismatch for another kind and InvalidArgument for a negative/large integer.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 65 行定义.

引用了 readInt64Value(), readUInt32Value() , 以及 value.

被这些函数引用 readUInt32Value().

◆ reconcileScriptComponentValues()

EVENGINE_API_FOUNDATION void eve::reconcileScriptComponentValues ( const std::string &  name,
SchemaVersion  version,
const std::vector< std::string > &  fields,
const std::vector< Value > &  defaults 
)

把某个组件(名字 + 版本)在**所有实体**上的数据重建到新 schema 上(热重载换代)。

两代都有的字段**保留旧值**;新代新增的字段取 defaults 里对应的声明默认值;旧代被删掉的 字段丢弃——存储里不留没人声明的字段(否则序列化/编辑器会看到它)。

参数
name组件名;
version组件版本。
fields新 schema 的字段名,声明顺序。
defaults与 fields 一一对应的声明默认值;缺项按 null 处理。
备注
这是热重载迁移里**唯一需要 C++ 做**的部分:字段数据按版本寻址,所以换代时 必须显式对齐 schema。实例的重接由脚本侧 ECS 负责(它才知道哪些实体活着)。 @cost 与"该组件已存在的实体数"成正比;只应在脚本重载时调用,不在任何热路径上。

在文件 ScriptComponentStore.cpp 第 88 行定义.

引用了 defaults, fields, index, eve::Value::isObject(), key, name, reconcileScriptComponentValues(), touched, values , 以及 version.

被这些函数引用 reconcileScriptComponentValues().

◆ recordCrashEvent()

EVENGINE_API_FOUNDATION void eve::recordCrashEvent ( const std::string &  report)

Records a crash report, safe to call from a crash/exception handler.

参数
reportMulti-line crash report (e.g. exception code + backtrace).

Uses a try-lock so it never deadlocks if the crashing thread already held the log mutex; on contention the report is dropped rather than hanging. Best used by the unhandled-exception filter, which also prints the same report to stderr.

在文件 CrashLog.cpp 第 78 行定义.

◆ recordLogEvent()

EVENGINE_API_FOUNDATION void eve::recordLogEvent ( const std::string &  level,
const std::string &  message 
)

Appends a timestamped event line to the crash/error log.

参数
levelSeverity tag (e.g. "info", "warn", "error").
messageThe event text (a trailing newline is added).

Thread-safe and blocking so normal error reporting never drops a line. No-op (besides the implicit lazy open) when logging is unavailable.

在文件 CrashLog.cpp 第 70 行定义.

引用了 level , 以及 message.

被这些函数引用 eve::climbing::declareScriptClimbingEventSeam(), eve::ui::declareScriptPhotoModeApplySeam(), eve::weapon::declareScriptProjectileSeam(), eve::sensing::declareScriptSensingCandidateSeam(), eve::dialogue::declareScriptStateMutationSeam(), eve::graphics::vulkan::Graphics::initHeadless(), eve::graphics::vulkan::Graphics::initWithWindow(), recordSessionEnd() , 以及 eve::cmd::Cmdline::Run().

◆ recordSessionEnd()

void eve::recordSessionEnd ( int  exitCode)

Appends the session-end marker carrying the process exit code.

A session block without this marker is how a reader recognises a run that did not finish (crash, kill, power loss).

参数
exitCodeProcess exit code that ended the session.

在文件 CrashLog.cpp 第 102 行定义.

引用了 kSessionEndMarker , 以及 recordLogEvent().

被这些函数引用 main().

◆ recordSessionStart()

void eve::recordSessionStart ( )

Appends a session-start marker.

initSystemLogging() writes one when it opens the log. A host that runs more than one game session inside one process (a launcher, a test harness) calls this to delimit them, so a reader can still tell which run a failure belongs to.

在文件 CrashLog.cpp 第 94 行定义.

引用了 kSessionStartMarker.

◆ reflectedFloatString()

std::string eve::reflectedFloatString ( double  value)
inline

Shortest round-trip float formatting (portable).

std::to_chars(float/double) is unavailable on Apple platforms with an iOS deployment target below 16.3, so reflection/editor code must not use it. snprintf with max_digits10 guarantees round-tripping at the cost of not being the shortest spelling.

Snprintf.

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

引用了 value.

◆ registerBuiltinSnapshotHasher()

Result< void > eve::registerBuiltinSnapshotHasher ( )

Register the built-in hasher, unless a module already registered one.

返回
Applied when this call registered the built-in, or NoOp when a provider was already present (an existing, possibly stronger, provider is never replaced).
备注
Host boot calls this once so script and tooling paths have a working default without every caller having to inject one.

在文件 SnapshotHash.cpp 第 85 行定义.

引用了 Applied, NoOp, registeredSnapshotContentHasher(), eve::Status::success() , 以及 eve::Result< T >::success().

被这些函数引用 main().

◆ registerCppEntityView()

EVENGINE_API_FOUNDATION void eve::registerCppEntityView ( const ssq::Class &  cls,
CppEntityViewFn  fn 
)

Registers cpp entity view.

在文件 ECS.cpp 第 1642 行定义.

引用了 cls, fn , 以及 registerCppEntityView().

被这些函数引用 registerCppEntityView().

◆ registeredSnapshotContentHasher()

ISnapshotContentHasher * eve::registeredSnapshotContentHasher ( )
noexcept

The currently registered hasher, if a module registered one.

返回
Borrowed pointer to the registered implementation, or nullptr when none is. @ownership Borrowed; the registering module owns the object and must outlive its use. @nullable Yes. @lifetime Valid until another module registers a replacement or revokes this one. @thread Safe to call concurrently with queries; registration is not synchronized with use.

在文件 SnapshotHash.cpp 第 81 行定义.

被这些函数引用 activeSnapshotHashAlgorithm() , 以及 registerBuiltinSnapshotHasher().

◆ registerPostEcsHook()

EVENGINE_API_FOUNDATION void eve::registerPostEcsHook ( PostEcsHook  fn)

Registers post ecs hook.

在文件 ECS.cpp 第 1646 行定义.

引用了 fn , 以及 registerPostEcsHook().

被这些函数引用 registerPostEcsHook().

◆ registerScriptComponent()

Result< void > eve::registerScriptComponent ( const std::string &  name,
SchemaVersion  version,
const ssq::Object &  cls 
)

登记一个脚本组件:eve.component(name, version, cls) 的 C++ 侧。

参数
name非空组件名。
version正整数版本。
cls必须是 Squirrel 类对象。
返回
成功,或说明原因的失败(名字空 / 版本为 0 / 不是类)。
备注
同名同版本再次登记 = 热重载换了一代:旧代记为 retired、新代 generation +1。 登记按 VM 隔离(新 VM 从空开始,见 prepareEcsScriptInjection),且**不改变 现有脚本写法**——类对象仍然照旧驱动 eve.view / create。 @cost 一次 map 查找 + 一次 sq_addref;只应在脚本加载/热重载时调用。

◆ registryOperationName()

const char * eve::registryOperationName ( RegistryOperation  operation)
inlinenoexcept

Stable lowercase name for a registry mutation kind.

返回
Borrowed, non-null, null-terminated static text. @ownership Borrowed; the returned text is not allocated. @nullable No; unknown enum values return "unknown". @lifetime Static for the process lifetime. @thread Thread-safe and side-effect free. @reentrancy Does not access or mutate a registry.

在文件 VersionedRegistry.h 第 90 行定义.

引用了 Insert, operation, Remove , 以及 Replace.

被这些函数引用 operator<<().

◆ removeScriptComponentValues()

EVENGINE_API_FOUNDATION std::size_t eve::removeScriptComponentValues ( std::uint64_t  entityId)

实体销毁时清掉它的全部组件数据。

返回
被清掉的条数。

在文件 ScriptComponentStore.cpp 第 111 行定义.

引用了 removed , 以及 removeScriptComponentValues().

被这些函数引用 removeScriptComponentValues().

◆ replaceScriptComponentValues()

EVENGINE_API_FOUNDATION void eve::replaceScriptComponentValues ( std::vector< ScriptComponentStoreEntry >  entries)

用给定条目**整体替换**存储(恢复快照用)。

参数
entries新内容;调用方负责先校验完(未知组件/未知字段/重复键),因为本函数只做替换。
备注
全有或全无:先把条目插进一张临时表,再一次性换掉,恢复失败不会留下半套数据。

在文件 ScriptComponentStore.cpp 第 81 行定义.

引用了 entries , 以及 replaceScriptComponentValues().

被这些函数引用 replaceScriptComponentValues().

◆ resolveEntitySpatialPose()

EVENGINE_API_FOUNDATION Result< EntitySpatialPose > eve::resolveEntitySpatialPose ( ecs::EntityHandle  entity,
std::string_view  bone = {} 
)

Resolve through registered providers in deterministic registration order.

返回
First successful pose; the first non-NotFound failure; or NotFound. @thread Owner thread only; provider registration must be settled before dispatch. @reentrancy Providers must not mutate the capability listener registry.

在文件 EntitySpatialResolver.cpp 第 9 行定义.

引用了 bone, entity, eve::Diagnostic::error(), eve::Result< T >::failure(), NotFound, pose, provider, resolved , 以及 eve::Result< T >::success().

◆ resourceRefKindName()

constexpr std::string_view eve::resourceRefKindName ( ResourceRefKind  kind)
constexprnoexcept

Returns the stable resource-reference alternative spelling.

在文件 ResourceRef.h 第 30 行定义.

引用了 Asset, Definition, kind, Object , 以及 Uri.

被这些函数引用 operator<<().

◆ restoreScriptComponents()

EVENGINE_API_FOUNDATION Result< void > eve::restoreScriptComponents ( const SnapshotEnvelope &  snapshot,
const SnapshotHashProvider &  hashProvider 
)

用快照里的数据**整体替换**当前的脚本组件数据。

参数
snapshot待恢复的信封;会被校验哈希(verifySnapshotEnvelope)。
hashProvider与封闭时同一个摘要实现。
返回
成功,或说明原因的失败。
备注
**未知组件/未知字段一律拒绝,且不改动任何现有数据**(对齐"持久化数据必须有未知字段 策略"):恢复必须能回答"这份数据描述的是哪个已登记的组件",否则它读不出来。字段被删掉 的旧载荷因此必须走 SnapshotMigrationChain,而不是被静默收下。
**实体身份是 VM 内的 entityId**:本函数适合同一 VM 内的回滚/重放/编辑器撤销。跨进程 存档要先有稳定的实体身份(阶段 5 的 RuntimeObjectRegistry + ownerEpoch),那之前 跨会话恢复只能按创建顺序对上号。

在文件 ScriptComponentSnapshot.cpp 第 93 行定义.

引用了 eve::Value::arraySize(), eve::Value::at(), Conflict, entity, entries, eve::Result< T >::failure(), fields, eve::ScriptComponentRecord::fields, eve::Value::find(), findScriptComponent(), index, InvalidArgument, eve::Value::isArray(), eve::Value::isObject(), key, kScriptComponentSnapshotType, name, NotFound, ParseError, record, scriptComponentSnapshotSchema(), snapshot, UnknownVersion, Unsupported, eve::detail::StrongUint64< Tag >::value(), values, verifySnapshotEnvelope() , 以及 version.

被这些函数引用 restoreScriptComponentSnapshotJson().

◆ restoreScriptComponentSnapshotJson()

EVENGINE_API_FOUNDATION Result< void > eve::restoreScriptComponentSnapshotJson ( std::string_view  json,
const SnapshotHashProvider &  hashProvider 
)

从 JSON 解析、校验并恢复。

返回
成功,或解析/校验/未知组件失败。

在文件 ScriptComponentSnapshot.cpp 第 181 行定义.

引用了 parseSnapshotEnvelope(), restoreScriptComponents() , 以及 restoreScriptComponentSnapshotJson().

被这些函数引用 restoreScriptComponentSnapshotJson().

◆ scanUnsignedStringMember()

EVENGINE_API_FOUNDATION Result< json::UnsignedIntegerScan > eve::scanUnsignedStringMember ( const Value::Object &  object,
std::string_view  name 
)

Scan a required nonempty decimal-string field using from_chars semantics.

参数
objectBorrowed object, stable during the call; never retained.
nameBorrowed field name, never retained.
返回
Owning integer prefix and consumed length, or ParseError for invalid type/input/overflow.
备注
Compatibility adapters compare consumed to the field length after assigning the prefix.
注解
Synchronous on the caller thread; caller synchronizes object access; no callbacks.

在文件 Value.cpp 第 104 行定义.

引用了 name, readNonEmptyStringMember(), scanUnsignedStringMember() , 以及 text.

被这些函数引用 eve::map::readU64(), eve::scene::readUint64String() , 以及 scanUnsignedStringMember().

◆ scanUnsignedStringValue()

EVENGINE_API_FOUNDATION Result< json::UnsignedIntegerScan > eve::scanUnsignedStringValue ( const Value &  value)

Scan an unsigned decimal prefix from a required nonempty String value.

参数
valueBorrowed stable input, used synchronously and never retained.
返回
Owning integer prefix and input lengths, or ParseError for invalid kind/input/overflow.
备注
No whitespace or signs are accepted. Consumers must compare consumed to size for full parsing.
注解
Callable on any thread with stable input; no callbacks or shared mutable state.

在文件 Value.cpp 第 96 行定义.

引用了 scanUnsignedStringValue(), text , 以及 value.

被这些函数引用 scanUnsignedStringValue().

◆ scriptComponentDeclaredSchema()

EVENGINE_API_FOUNDATION Result< ScriptComponentDeclaredSchema > eve::scriptComponentDeclaredSchema ( const std::string &  name,
SchemaVersion  version 
)

读一条已登记组件的声明 schema(字段名 + 声明默认值)。

参数
name组件名;
version组件版本。
返回
该代的声明 schema,或 NotFound(这个 VM 里没有登记过这个名字+版本,或该代已退役)。
备注
这是"默认值属于 schema"的唯一出口:字段槽位在登记时已被摘掉,类对象上再也读不回 声明值,所以默认值只能从这里取。**不**读实例、不读引擎侧存储。 @cost 一次 map 查找 + 一次字段/默认值拷贝;给编辑器与工具用,不在逐帧路径上。

在文件 ECS.cpp 第 1573 行定义.

引用了 current, found, name, eve::ScriptComponentDeclaredSchema::name, out, scriptComponentDeclaredSchema() , 以及 version.

被这些函数引用 eve::scene_editor::ScriptComponentOperationTarget::commitDomainState() , 以及 scriptComponentDeclaredSchema().

◆ scriptComponentField()

EVENGINE_API_FOUNDATION Result< Value > eve::scriptComponentField ( const ScriptComponentStoreKey &  key,
const std::string &  field 
)

读一个字段。

返回
字段值,或 NotFound(键或字段不存在)。

在文件 ScriptComponentStore.cpp 第 47 行定义.

引用了 eve::Result< T >::failure(), eve::Value::find(), findScriptComponentValues(), key, NotFound, eve::Result< T >::success(), value , 以及 values.

◆ scriptComponentInstancesOf()

EVENGINE_API_FOUNDATION Result< std::vector< ScriptComponentInstanceState > > eve::scriptComponentInstancesOf ( const ssq::Object &  entityInstance)

读一个脚本实体实例上挂着的全部**已登记**组件的状态。

参数
entityInstanceeve.Entity 子类的实例(例如从 Scene::scriptEntitiesAt 拿到的)。
返回
按 (名字, 版本) 升序的状态数组;实例没有组件时返回空数组。 InvalidArgument 表示传进来的不是实例。
备注
组件的身份来自实例上的控制槽位(_componentName/_componentVersion,§9.64), 值来自引擎侧存储;两者对不上(例如类登记过但数据条目已被清掉)时仍会列出该组件、 字段值为 null——工具应当看得见"有组件但没有数据",而不是被静默跳过。 @lifetime 返回值拥有自己的存储,脚本 VM 销毁后依然可用。 @cost 与"实例上的组件数 × 字段数"成正比;供编辑器/工具按需调用,不在逐帧路径上。

在文件 ScriptComponentSnapshot.cpp 第 187 行定义.

引用了 eve::ScriptComponentInstanceState::entityId, fields, eve::Value::find(), findScriptComponent(), findScriptComponentValues(), found, identities, name, ok, out, raw, record, scriptComponentInstancesOf(), slot, state, stored, top, value, version , 以及 vm.

被这些函数引用 scriptComponentInstancesOf().

◆ scriptComponentRecords()

EVENGINE_API_FOUNDATION std::vector< ScriptComponentRecord > eve::scriptComponentRecords ( )

当前 VM 的全部登记(含 retired 历史),按名字、版本、代际排序。 @cost 一次拷贝;仅供编辑器/诊断/测试等非热路径使用。

在文件 ECS.cpp 第 1558 行定义.

引用了 key, out , 以及 size.

◆ scriptComponentSnapshotSchema()

EVENGINE_API_FOUNDATION LogicalId eve::scriptComponentSnapshotSchema ( )

脚本组件快照的 payload schema:eve:script-components 版本 1。

在文件 ScriptComponentSnapshot.cpp 第 68 行定义.

引用了 eve::LogicalId::parse().

被这些函数引用 restoreScriptComponents() , 以及 snapshotScriptComponents().

◆ scriptComponentStatesJson()

EVENGINE_API_FOUNDATION Result< std::string > eve::scriptComponentStatesJson ( )

引擎侧脚本组件数据的**工具视图**(MCP eve_script_components 与诊断用)。

返回
确定性 JSON:
{"entities":[{"id":"7","components":[{"name":"Position","version":1,"generation":1,"fields":{"x":1.5}}]}]}
条目按 (实体, 组件名, 版本) 升序,字段是字典序(Value::Object 是 std::map)。 实体 id 是**十进制字符串**(u64 装不进 JSON 数字,与快照同一约定)。
备注
这是"引擎工具读得到脚本组件状态"的工具面:只报引擎侧那一个权威存储里的数据 (未登记组件不出现);与**场景节点**的对应关系在场景模块那一侧(§9.72 的原生读路径 + 编辑器 payload provider)。 @cost 与存储里的条目数成正比(一次拷贝 + 一次序列化);工具/诊断用,不在逐帧路径上。

在文件 ScriptComponentSnapshot.cpp 第 280 行定义.

引用了 entities, findScriptComponent(), record, scriptComponentStatesJson() , 以及 scriptComponentStoreEntries().

被这些函数引用 scriptComponentStatesJson().

◆ scriptComponentStoreEntries()

EVENGINE_API_FOUNDATION std::vector< ScriptComponentStoreEntry > eve::scriptComponentStoreEntries ( )

列出存储里的全部条目,按 (实体, 组件名, 版本) 升序。

返回
条目的拷贝;顺序由 ScriptComponentStoreKey::operator< 决定,因此跨进程稳定。 @cost 一次全量深拷贝;只给快照/编辑器/诊断用,不在热路径上。

在文件 ScriptComponentStore.cpp 第 73 行定义.

引用了 key, out , 以及 values.

被这些函数引用 scriptComponentStatesJson() , 以及 snapshotScriptComponents().

◆ scriptComponentStoreRevision()

EVENGINE_API_FOUNDATION std::uint64_t eve::scriptComponentStoreRevision ( )

存储的单调版本号:任何一次写(含恢复、换代对齐、实体销毁)都会 +1。

编辑器/工具用它判断"我手里的引用是否过期":IPropertyProvider::currentRevision 要一个非零 且会变的版本,而脚本组件的字段值不在场景文档里,文档版本号对它没有意义。

返回
当前版本号;进程内从 1 开始单调递增,**不会**因为清空而回退。 @cost O(1)。

在文件 ScriptComponentStore.cpp 第 133 行定义.

引用了 scriptComponentStoreRevision().

被这些函数引用 eve::scene_editor::ScriptComponentPayloadProvider::components(), eve::scene_editor::ScriptComponentPayloadProvider::currentRevision(), eve::scene_editor::ScriptComponentOperationTarget::revision() , 以及 scriptComponentStoreRevision().

◆ scriptComponentStoreSize()

EVENGINE_API_FOUNDATION std::size_t eve::scriptComponentStoreSize ( )

当前数据条数(诊断与测试用)。

在文件 ScriptComponentStore.cpp 第 131 行定义.

引用了 scriptComponentStoreSize().

被这些函数引用 scriptComponentStoreSize().

◆ serializeScriptComponentSnapshot()

EVENGINE_API_FOUNDATION Result< std::string > eve::serializeScriptComponentSnapshot ( PersistentId  instanceId,
Revision  revision,
SimulationTick  tick,
const SnapshotHashProvider &  hashProvider 
)

采集并序列化成确定性 JSON(存档写盘用)。 @cost 同 snapshotScriptComponents + 一次序列化。

在文件 ScriptComponentSnapshot.cpp 第 174 行定义.

引用了 instanceId, revision, serializeScriptComponentSnapshot(), serializeSnapshotEnvelope(), snapshotScriptComponents(), tick , 以及 value.

被这些函数引用 serializeScriptComponentSnapshot().

◆ serializeSnapshotEnvelope()

◆ setEditorMcpAttachHooks()

EVENGINE_API_FOUNDATION void eve::setEditorMcpAttachHooks ( EditorMcpAttachFn  attach,
EditorMcpDetachFn  detach 
)

Register Host attach hooks used by eve.mcp.attachEditor.

注解
Lives in common so DevTools and editor do not create a cyclic link.

在文件 EditorMcpAttach.cpp 第 11 行定义.

被这些函数引用 eve::editor::Editor::Editor() , 以及 eve::editor::Editor::~Editor().

◆ setScriptComponentField()

EVENGINE_API_FOUNDATION Result< void > eve::setScriptComponentField ( const ScriptComponentStoreKey &  key,
const std::string &  field,
Value  value 
)

写一个字段(脚本侧的写入与原生侧的写入都走这里)。

返回
成功,或 NotFound(该组件数据不存在)。
备注
**不**接受未在 schema 里的新字段:组件的数据形状由 schema 决定,凭空加字段会让 序列化与编辑器看到一份没有声明的数据。要加字段就改脚本里的组件类并升版本。

在文件 ScriptComponentStore.cpp 第 59 行定义.

引用了 Applied, eve::Result< T >::failure(), found, key, NotFound, eve::Status::success(), eve::Result< T >::success() , 以及 value.

◆ setScriptComponentValues()

EVENGINE_API_FOUNDATION Result< void > eve::setScriptComponentValues ( const ScriptComponentStoreKey &  key,
Value  values 
)

写入一条组件的引擎侧数据(创建实体、或迁移到新代时调用)。

参数
values必须是 Object(字段名 → 值);其它类型返回 InvalidArgument。
返回
成功,或说明原因的失败。
备注
这是**唯一权威**的脚本组件字段存储:脚本侧的字段读写最终都落到这里 (见 _get/_set 接缝),原生侧(打包/存档/编辑器)也从这里读。 @cost 一次 map 插入 + 一次 Value 拷贝。

在文件 ScriptComponentStore.cpp 第 32 行定义.

引用了 Applied, eve::Result< T >::failure(), InvalidArgument, key, eve::Status::success(), eve::Result< T >::success() , 以及 values.

被这些函数引用 eve::scene_editor::ScriptComponentOperationTarget::commitDomainState().

◆ severityName()

constexpr std::string_view eve::severityName ( Severity  severity)
constexprnoexcept

Returns the stable lowercase severity spelling.

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

引用了 Error, Fatal, Info , 以及 Warning.

被这些函数引用 eve::DiagnosticValueTraits< Severity >::name() , 以及 operator<<().

◆ snapshotContentHashProvider()

SnapshotHashProvider eve::snapshotContentHashProvider ( )

A SnapshotHashProvider backed by the active hasher.

返回
A callable suitable for the snapshot/restore entry points. @ownership The returned callable borrows the active hasher; it must not outlive it, and it must not be stored beyond the registration's lifetime.
备注
Uses the registered hasher when there is one, otherwise builtinSnapshotContentHasher. Callers that must not accept a weak digest ask activeSnapshotHashAlgorithm or registeredSnapshotContentHasher first.

在文件 SnapshotHash.cpp 第 92 行定义.

被这些函数引用 eve::tactics::Tactics::restoreJson() , 以及 eve::tactics::Tactics::snapshotJson().

◆ snapshotEnvelopeValue()

EVENGINE_API_FOUNDATION Result< Value > eve::snapshotEnvelopeValue ( const SnapshotEnvelope &  snapshot)

Convert an envelope to its strict canonical value representation.

参数
snapshotEnvelope to encode.
返回
An owning object with exactly the public envelope fields.

在文件 Snapshot.cpp 第 121 行定义.

引用了 eve::Result< T >::failure(), object, snapshot, eve::Result< T >::success() , 以及 valid.

被这些函数引用 eve::tactics::TacticsGameSaveParticipant::capture() , 以及 serializeSnapshotEnvelope().

◆ snapshotHashInput()

EVENGINE_API_FOUNDATION Result< std::string > eve::snapshotHashInput ( const SnapshotEnvelope &  snapshot)

Produce the canonical JSON input used for a snapshot content hash.

参数
snapshotEnvelope whose content hash is excluded from the input.
返回
Deterministic JSON containing stable header fields and payload.
备注
There is intentionally no createdAt or wall-clock field.

在文件 Snapshot.cpp 第 57 行定义.

引用了 eve::Result< T >::failure(), snapshot , 以及 valid.

被这些函数引用 makeSnapshotEnvelope() , 以及 verifySnapshotEnvelope().

◆ snapshotScriptComponents()

EVENGINE_API_FOUNDATION Result< SnapshotEnvelope > eve::snapshotScriptComponents ( PersistentId  instanceId,
Revision  revision,
SimulationTick  tick,
const SnapshotHashProvider &  hashProvider 
)

把引擎侧的脚本组件数据封成一个快照信封。

payload 形状(版本 1,字段全部必需):

{"components":[{"entity":"7","name":"Position","version":1,"fields":{"x":1.5,"y":2.5}}]}
参数
instanceId这次快照的状态所有者身份;PersistentId()(nil)表示匿名/旧式存储。
revision采集时的状态版本。
tick采集时的模拟 tick。
hashProvider注入的摘要实现;不得为空。
返回
封闭好的信封,或结构化的失败。
备注
**顺序是确定的**:条目按 (实体, 组件名, 版本) 升序;字段落在 Value::Object(std::map) 里,序列化与哈希输入因此是字典序。同一份状态两次快照得到同一个哈希,也不含墙钟字段。 @cost 与存储里的条目数成正比(一次全量拷贝 + 一次 JSON 规范化);只在存档/编辑器读时调用。

在文件 ScriptComponentSnapshot.cpp 第 74 行定义.

引用了 eve::Value::array(), instanceId, eve::Value::integer(), kScriptComponentSnapshotType, makeSnapshotEnvelope(), eve::Value::object(), payload, revision, scriptComponentSnapshotSchema(), scriptComponentStoreEntries(), eve::Value::string() , 以及 tick.

被这些函数引用 serializeScriptComponentSnapshot().

◆ statusCodeName()

constexpr std::string_view eve::statusCodeName ( StatusCode  code)
constexprnoexcept

Return the stable protocol spelling of a status code.

参数
codeStatus category to name.
返回
Static non-owning text; unknown values return "unknown".

在文件 Status.h 第 46 行定义.

引用了 Applied, Cancelled, code, Conflict, Failed, NoOp, NotFound, Ok, Pending, Rejected , 以及 Unsupported.

被这些函数引用 eve::Status::describe(), eve::dev::DevTool::exposeScriptApi(), eve::dev::gameWorld(), eve::DiagnosticValueTraits< StatusCode >::name() , 以及 operator<<().

◆ thirdPartyVersion()

EVENGINE_API_FOUNDATION const char * eve::thirdPartyVersion ( )

Third party version.

返回
Third-party version this build was linked against (source<commit> / prebuilt<commit>).

在文件 Version.cpp 第 18 行定义.

◆ toCanonicalStateValue()

◆ toLegacyStateValue()

◆ uriSchemeName()

EVENGINE_API_FOUNDATION const char * eve::uriSchemeName ( UriScheme  scheme)
noexcept

Return the stable lower-case spelling of a resource URI scheme.

在文件 Uri.cpp 第 130 行定义.

引用了 Asset, Builtin, Generated, Memory , 以及 Project.

◆ utf8_byte_offset_for_codepoints()

EVENGINE_API_FOUNDATION size_t eve::utf8_byte_offset_for_codepoints ( const std::string &  s,
size_t  codepoints 
)

Byte offset of the N-th UTF-8 code point (0-based count of code points). Returns s.size() if there are fewer than N code points.

在文件 utf8.cpp 第 37 行定义.

引用了 n, s , 以及 step.

被这些函数引用 eve::dialogue::Dialogue::getVisibleText().

◆ utf8_codepoint_count()

EVENGINE_API_FOUNDATION size_t eve::utf8_codepoint_count ( const std::string &  s)

Count UTF-8 code points in a string. Invalid / truncated sequences stop the scan.

在文件 utf8.cpp 第 23 行定义.

引用了 n, s , 以及 step.

被这些函数引用 eve::dialogue::Dialogue::getVisibleText(), eve::dialogue::Dialogue::skipTyping() , 以及 eve::dialogue::Dialogue::update().

◆ validateActionGuideCandidates()

EVENGINE_API_FOUNDATION Result< void > eve::validateActionGuideCandidates ( const ActionGuideIngestRequest &  request)

Validate candidate frames against a GuidePack contract (revision, count, size, alpha edge).

备注
When requireTransparentEdge and the pack canvas is transparent, every 1px border sample must have alpha below 250. Does not write files or register abilities. @cost Linear in frame count × pixels (full scan) plus O(perimeter) for the edge check.

在文件 ActionGuideIngest.cpp 第 112 行定义.

引用了 frame, p, path, request, eve::Result< T >::success(), x , 以及 y.

被这些函数引用 buildActionGuideIngestDraft().

◆ validateSdfField3DBlob()

◆ validateSnapshotPayloadMetadata()

EVENGINE_API_FOUNDATION Result< void > eve::validateSnapshotPayloadMetadata ( const Value &  payload,
Revision  revision,
SimulationTick  tick 
)

Validate optional payload copies of envelope revision and tick.

参数
payloadDomain payload after any schema migration.
revisionAuthoritative envelope revision.
tickAuthoritative envelope simulation tick.
返回
Success when omitted or exactly equal; Conflict/ParseError on a duplicate field that disagrees or is not a decimal string.
备注
Consumers may omit duplicate fields from new payloads. This helper gives legacy payloads one uniform compatibility rule before any consumer state is mutated.

在文件 Snapshot.cpp 第 80 行定义.

引用了 Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), found, object, payload, revision, eve::Result< T >::success(), tick , 以及 eve::detail::StrongUint64< Tag >::value().

被这些函数引用 eve::tactics::TacticsPersistence::prepareRestore(), eve::definition::restoreRuntimeInstance(), eve::authority::Store::restoreSnapshot(), eve::definitions::DefinitionRegistry::restoreSnapshot(), eve::game_event::GameEventLog::restoreSnapshot(), eve::production::WorkQueue::restoreSnapshot(), eve::statepatch::Store::restoreSnapshot() , 以及 eve::transaction::Ledger::restoreSnapshot().

◆ verifyActionGuideCandidates()

◆ verifySnapshotEnvelope()

EVENGINE_API_FOUNDATION Result< void > eve::verifySnapshotEnvelope ( const SnapshotEnvelope &  snapshot,
const SnapshotHashProvider &  hashProvider 
)

◆ writeScriptComponentField()

EVENGINE_API_FOUNDATION Result< void > eve::writeScriptComponentField ( const ssq::Object &  instance,
const std::string &  field,
const Value &  value 
)

写一个脚本组件实例的字段,归属规则见 readScriptComponentField。

参数
instance组件实例。
field字段名。
value新值(按 Value 的通用类型转成 Squirrel 值)。
返回
成功,或 NotFound(没有这个字段)/ InvalidArgument(不是实例)。
备注
未登记组件写的是实例槽位;登记组件写的是引擎侧存储——脚本侧下一次读就看见新值。 @cost 同 readScriptComponentField。

变量说明

◆ Array

◆ async_content

const char* eve::async_content
extern

被这些函数引用 eve::cmd::Cmdline::Run().

◆ Bool

enum EVENGINE_API_FOUNDATION eve::Bool = 1

OT_BOOL.

在文件 Runtime.h 第 116 行定义.

◆ boot_content

const char* eve::boot_content
extern

嵌入式脚本 / 着色器源码常量(构建时由集成脚本生成)。

◆ demo_content

const char* eve::demo_content
extern

被这些函数引用 eve::cmd::Cmdline::Run().

◆ Float

enum EVENGINE_API_FOUNDATION eve::Float = 3

OT_FLOAT.

在文件 Runtime.h 第 118 行定义.

◆ fragment_content

const char* eve::fragment_content
extern

◆ Instance

enum EVENGINE_API_FOUNDATION eve::Instance = 7

Nested script instance (navigate; ObjectRef in property schema).

在文件 Runtime.h 第 122 行定义.

◆ Integer

enum EVENGINE_API_FOUNDATION eve::Integer = 2

OT_INTEGER.

在文件 Runtime.h 第 117 行定义.

◆ kActionGuideAbilityDraftSchemaId

constexpr std::string_view eve::kActionGuideAbilityDraftSchemaId = "eve.action.guide-ability-draft"
inlineconstexpr

在文件 ActionGuideIngest.h 第 26 行定义.

◆ kActionGuideAbilityDraftSchemaVersion

constexpr std::uint64_t eve::kActionGuideAbilityDraftSchemaVersion = 1
inlineconstexpr

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

◆ kActionGuideCandidateMetaSchemaId

constexpr std::string_view eve::kActionGuideCandidateMetaSchemaId = "eve.action.guide-candidate"
inlineconstexpr

在文件 ActionGuideIngest.h 第 24 行定义.

被这些函数引用 decodeActionGuideCandidateMeta() , 以及 encodeActionGuideCandidateMeta().

◆ kActionGuideCandidateMetaSchemaVersion

constexpr std::uint64_t eve::kActionGuideCandidateMetaSchemaVersion = 1
inlineconstexpr

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

被这些函数引用 decodeActionGuideCandidateMeta() , 以及 encodeActionGuideCandidateMeta().

◆ kActionGuideClipRecipeSchemaId

constexpr std::string_view eve::kActionGuideClipRecipeSchemaId = "eve.action.guide-clip"
inlineconstexpr

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

◆ kActionGuideClipRecipeSchemaVersion

constexpr std::uint64_t eve::kActionGuideClipRecipeSchemaVersion = 1
inlineconstexpr

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

◆ kActionGuidePackSchemaId

constexpr std::string_view eve::kActionGuidePackSchemaId = "eve.action.guide-pack"
inlineconstexpr

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

被这些函数引用 decodeActionGuidePack() , 以及 encodeActionGuidePack().

◆ kActionGuidePackSchemaVersion

constexpr std::uint64_t eve::kActionGuidePackSchemaVersion = 1
inlineconstexpr

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

被这些函数引用 decodeActionGuidePack() , 以及 encodeActionGuidePack().

◆ kActionGuideVerifyReportSchemaId

constexpr std::string_view eve::kActionGuideVerifyReportSchemaId = "eve.action.guide-verify-report"
inlineconstexpr

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

被这些函数引用 encodeActionGuideVerifyReport().

◆ kActionGuideVerifyReportSchemaVersion

constexpr std::uint64_t eve::kActionGuideVerifyReportSchemaVersion = 1
inlineconstexpr

在文件 ActionGuideVerify.h 第 26 行定义.

被这些函数引用 encodeActionGuideVerifyReport().

◆ kGpuResidentStorageOffsetAlignment

constexpr uint64_t eve::kGpuResidentStorageOffsetAlignment = 256
constexpr

Portable alignment required for resident storage-buffer slice offsets.

在文件 GpuResidentBufferView.h 第 11 行定义.

被这些函数引用 eve::graphics::vulkan::Graphics::gpuDrivenSubmitResident() , 以及 eve::graphics::webgpu::Graphics::gpuDrivenSubmitResident().

◆ kScriptComponentSnapshotType

constexpr const char* eve::kScriptComponentSnapshotType = "eve.script-components"
inlineconstexpr

脚本组件快照的稳定类型(SnapshotEnvelope::type)。

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

被这些函数引用 restoreScriptComponents() , 以及 snapshotScriptComponents().

◆ kSessionEndMarker

constexpr const char* eve::kSessionEndMarker = "session end (exit code"
inlineconstexpr

Marker text that closes a session block (followed by the exit code). @ownership Borrowed pointer to a static string literal; the caller owns nothing. @lifetime Static storage duration; valid for the whole process.

在文件 CrashLog.h 第 46 行定义.

被这些函数引用 recordSessionEnd().

◆ kSessionStartMarker

constexpr const char* eve::kSessionStartMarker = "EVEngine session start"
inlineconstexpr

Marker text that opens a session block in eve.log.

Writers and readers of the log share these constants so an external tool can delimit sessions without duplicating a literal that could silently drift. @ownership The pointer is borrowed, not owned: it addresses a string literal with static storage duration. @lifetime Static: valid for the whole process, never freed by the caller.

在文件 CrashLog.h 第 39 行定义.

被这些函数引用 recordSessionStart().

◆ load_content

const char* eve::load_content
extern

被这些函数引用 eve::cmd::RunArgs::parse().

◆ module_list_content

const char* eve::module_list_content
extern

Generated slot -> class table for the modules in this build.

被这些函数引用 eve::dev::LanguageServer::Impl::Impl(), eve::cmd::Cmdline::McpHost() , 以及 eve::cmd::Cmdline::Run().

◆ Other

enum EVENGINE_API_FOUNDATION eve::Other = 8

Any other slot kind.

在文件 Runtime.h 第 123 行定义.

◆ ReflectedValueKind

enum EVENGINE_API_FOUNDATION eve::ReflectedValueKind
strong

Runtime value kind read from a live script instance slot.

Missing / null slot.

在文件 Runtime.h 第 114 行定义.

◆ scene_director_content

const char* eve::scene_director_content
extern

被这些函数引用 eve::cmd::Cmdline::Run().

◆ sceneSpatialFrameNames

constexpr std::array<std::string_view, 3> eve::sceneSpatialFrameNames {"world", "reference", "observer"}
inlineconstexpr

Static protocol spellings, in SceneSpatialFrame order.

在文件 SceneSearch.h 第 41 行定义.

被这些函数引用 eve::dev::callSceneSearch().

◆ sceneSpatialRelationNames

constexpr std::array<std::string_view, 8> eve::sceneSpatialRelationNames
inlineconstexpr
初始值:
{
"left-of", "right-of", "above", "below", "in-front-of", "behind", "near", "inside"}

Static protocol spellings, in SceneSpatialRelation order.

在文件 SceneSearch.h 第 38 行定义.

被这些函数引用 eve::dev::callSceneSearch().

◆ String

enum EVENGINE_API_FOUNDATION eve::String = 4

OT_STRING.

在文件 Runtime.h 第 119 行定义.

◆ Table

enum EVENGINE_API_FOUNDATION eve::Table = 6

OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).

在文件 Runtime.h 第 121 行定义.

◆ vertex_content

const char* eve::vertex_content
extern