载入中...
搜索中...
未找到
GrowthSystem.h
浏览该文件的文档.
76 void advanceDisease(Organism& organism, const SpeciesDef& species, double days, std::int64_t dayIndexForHash);
79 [[nodiscard]] Result<void> spawnOffspring(Organism& parent, const SpeciesDef& species, int count);
Move-only, checked operation results for the common layer.
Common time values and an injectable deterministic simulation clock.
Injected simulation calendar owned by GrowthWorld.
Definition GrowthCalendar.h:30
Append-only event log cleared explicitly (economy-style).
Definition GrowthEvents.h:35
Owner of calendar, RNG seed, and the sole simulation advance path.
Definition GrowthSystem.h:19
const GrowthEventLog & events() const noexcept
Definition GrowthSystem.h:34
double secondsPerSimDay() const noexcept
Definition GrowthSystem.h:25
const GrowthCalendar & calendar() const noexcept
Definition GrowthSystem.h:32
GrowthWorld()=default
void setRngSeed(std::uint64_t seed) noexcept
Deterministic seed for disease / yield hash streams.
Definition GrowthSystem.h:28
Definition Growth.cpp:11
Static species definition — fully data-driven life cycle.
Definition Species.h:81