载入中...
搜索中...
未找到
RTSEffects.h
浏览该文件的文档.
93 void restoreSchedulerTick(eve::SimulationTick tick) noexcept { container_.restoreSchedulerTick(tick); }
95 [[nodiscard]] eve::Result<const effects::EffectInstance*> resolve(effects::EffectHandle handle) const;
133 [[nodiscard]] eve::Result<void> restore(const RTSEffectSnapshot& value) { return adapter_.restore(value); }
135 void restoreSchedulerTick(eve::SimulationTick tick) noexcept { adapter_.restoreSchedulerTick(tick); }
141 [[nodiscard]] double multiplier(std::string_view field) const noexcept { return adapter_.multiplier(field); }
Owning effect storage and lifecycle-only executor.
Move-only, checked operation results for the common layer.
Stable reference to a runtime gameplay subject.
Common time values and an injectable deterministic simulation clock.
Owns active effect instances and their deterministic lifecycle events.
Definition EffectContainer.h:35
RTS adapter that keeps the common container as the sole instance owner.
Definition RTSEffects.h:77
RTSEffectTarget & target() noexcept
Access the adapter-owned RTS target state.
Definition RTSEffects.h:101
const RTSEffectTarget & target() const noexcept
Read the adapter-owned RTS target state.
Definition RTSEffects.h:103
void restoreSchedulerTick(eve::SimulationTick tick) noexcept
Align the contained lifecycle scheduler with an owning world checkpoint.
Definition RTSEffects.h:93
Entity-local RTS effect component backed by the canonical adapter.
Definition RTSEffects.h:118
eve::Result< void > restore(const RTSEffectSnapshot &value)
Atomically restore the canonical effect lifecycle and RTS target projection.
Definition RTSEffects.h:133
RTSEffectSnapshot snapshot() const
Capture the canonical effect lifecycle and RTS target projection.
Definition RTSEffects.h:131
RTSEffectTarget & target() noexcept
Return the mutable RTS target state owned by this component.
Definition RTSEffects.h:137
double multiplier(std::string_view field) const noexcept
Return a composed active status multiplier.
Definition RTSEffects.h:141
void restoreSchedulerTick(eve::SimulationTick tick) noexcept
Align the lifecycle scheduler with an owning world checkpoint.
Definition RTSEffects.h:135
double additive(std::string_view field) const noexcept
Return a composed active additive status value.
Definition RTSEffects.h:143
const RTSEffectTarget & target() const noexcept
Return the read-only RTS target state owned by this component.
Definition RTSEffects.h:139
RTS executor for morale, suppression and production-lock semantics.
Definition RTSEffects.h:64
eve::Result< RTSEffectUpdate > settle(RTSEffectTarget &target, effects::EffectUpdateSummary lifecycle) const
Settle common periodic triggers using RTS-specific policies.
Definition RTSEffects.cpp:37
eve::Result< void > applyImmediate(RTSEffectTarget &target, const effects::EffectInstance &effect) const
Apply immediate production-lock semantics to a staged target.
Definition RTSEffects.cpp:29
eve::Result< void > validate(const RTSEffectTarget &target) const
Validate the target state before a staged application.
Definition RTSEffects.cpp:22
Definition RTS.cpp:24
@ Morale
@ Suppression
@ ProductionLock
Generation-qualified local reference to a canonical effect instance.
Definition EffectTypes.h:173
Independent policy dimensions used when applying an effect definition.
Definition EffectTypes.h:53
Summary returned by the lifecycle executor after one simulation step.
Definition EffectTypes.h:212
Typed RTS definition projected to the common lifecycle schema.
Definition RTSEffects.h:35
double incomingDamageMultiplier
Definition RTSEffects.h:43
Mutable RTS state affected by the domain executor.
Definition RTSEffects.h:27
std::uint32_t commandInterrupts
Definition RTSEffects.h:31
Result of one RTS lifecycle step and domain settlement.
Definition RTSEffects.h:51
effects::EffectUpdateSummary lifecycle
Definition RTSEffects.h:52
std::uint32_t commandInterrupts
Definition RTSEffects.h:54