载入中...
搜索中...
未找到
WeaponDefinitionRuntime.h
浏览该文件的文档.
80 eve::definitions::DefinitionRegistry& registry, eve::DefinitionRef definition, eve::PersistentId instanceId,
85 eve::definitions::DefinitionRegistry& registry, std::string_view definitionId, eve::PersistentId instanceId,
131 [[nodiscard]] eve::Result<eve::definition::ReloadOutcome> reload(eve::definition::ReloadPolicy policy);
134 [[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 typed WeaponDefinition to one mutable runtime instance.
Definition WeaponDefinitionRuntime.h:69
WeaponDefinitionRuntime(WeaponDefinitionRuntime &&) noexcept=default
Weapon definition runtime.
@ RebuildInstance
Let the consumer atomically construct a new state from the new definition.
@ Weapon
载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
Definition RTSArchetype.h:10
eve::Result< WeaponDefinition > parseWeaponDefinition(const eve::definitions::Definition &source)
Parse one canonical registry definition into an owning typed snapshot.
Definition WeaponDefinitionRuntime.cpp:409
@ Single
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
Mutable state owned by one typed weapon runtime instance.
Definition WeaponDefinitionRuntime.h:45
float recoilPitch
Definition WeaponDefinitionRuntime.h:54
int burstRemaining
Definition WeaponDefinitionRuntime.h:48
float currentSpread
Definition WeaponDefinitionRuntime.h:53