载入中...
搜索中...
未找到
VehicleDefinitionRuntime.h
浏览该文件的文档.
35[[nodiscard]] eve::Result<VehicleDefinition> parseVehicleDefinition(const eve::definitions::Definition& source);
63 eve::definitions::DefinitionRegistry& registry, eve::DefinitionRef definition, eve::PersistentId instanceId,
68 eve::definitions::DefinitionRegistry& registry, std::string_view definitionId, eve::PersistentId instanceId,
110 [[nodiscard]] eve::Result<eve::definition::ReloadOutcome> reload(eve::definition::ReloadPolicy policy);
113 [[nodiscard]] eve::Result<eve::SnapshotEnvelope> snapshot(eve::Revision revision, eve::SimulationTick tick,
Common identity and hot-reload contract for typed runtime instances.
Shared SnapshotEnvelope codec for typed definition runtime instances.
Versioned, integrity-checked persistence envelopes.
Owns one strongly typed runtime state and its definition identity.
Definition DefinitionRuntime.h:292
Deterministic registry of topic-neutral, versioned JSON definitions.
Definition Definitions.h:58
Binds a VehicleDefinition to a VehicleEntity without a new root type.
Definition VehicleDefinitionRuntime.h:56
VehicleDefinitionRuntime(VehicleDefinitionRuntime &&) noexcept=default
Vehicle definition runtime.
@ RebuildInstance
Let the consumer atomically construct a new state from the new definition.
eve::Result< VehicleDefinition > parseVehicleDefinition(const eve::definitions::Definition &source)
Parse one canonical registry definition into a short-lived typed projection.
Definition VehicleDefinitionRuntime.cpp:98
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36
Definition Container.h:602
Stable outer format shared by persistence and cross-process snapshots.
Definition Snapshot.h:46
One immutable view of a registered versioned JSON definition.
Definition Definitions.h:31
载具模板(registerVehiclesFromJson 注册,进程级注册表)。
Definition VehicleTypes.h:135
Mutable state owned by one typed vehicle runtime instance.
Definition VehicleDefinitionRuntime.h:38
std::string faction
Definition VehicleDefinitionRuntime.h:44