类 | |
| struct | DiseaseSusceptibility |
| Per-day infection chance while the organism is stressed. 更多... | |
| class | Growth |
Farm growth module facade (eve.Growth): species registry + world step. 更多... | |
| class | GrowthCalendar |
| Injected simulation calendar owned by GrowthWorld. 更多... | |
| struct | GrowthEvent |
| One queued lifecycle observation. 更多... | |
| class | GrowthEventLog |
| Append-only event log cleared explicitly (economy-style). 更多... | |
| struct | GrowthStageDef |
| One authored growth stage for a species. 更多... | |
| class | GrowthWorld |
| Owner of calendar, RNG seed, and the sole simulation advance path. 更多... | |
| struct | NeedMeterDef |
| Named vital meter (water, radiation, ether, …) — not fixed to Earth biology. 更多... | |
| class | Organism |
| Growth short-root entity for any configured lifeform. 更多... | |
| struct | ReproductionDef |
| Species reproduction parameters selected by ReproductionMode. 更多... | |
| struct | SeasonSlotDef |
| One named season slot in a configurable calendar layout. 更多... | |
| struct | SpeciesDef |
| Static species definition — fully data-driven life cycle. 更多... | |
| class | SpeciesRegistry |
| Process-wide species table used by GrowthWorld and Organism factories. 更多... | |
| struct | YieldDef |
| One item emitted by harvest or periodic produce. 更多... | |
| struct | YieldReceipt |
| One harvested or produced item line (no inventory dependency). 更多... | |
枚举 | |
| enum class | Season : std::uint8_t { Spring = 0 , Summer = 1 , Autumn = 2 , Winter = 3 } |
| Legacy four-season index kept for Earth-farm defaults and older tests. 更多... | |
| enum class | GrowthEventKind : std::uint8_t { StageChanged = 0 , Matured , Produced , Harvested , Watered , Fed , Fertilized , Diseased , Cured , Bred , Offspring , Died } |
| Kind of a deterministic growth lifecycle event. 更多... | |
| enum class | OrganismKind : std::uint8_t { Plant = 0 , Animal = 1 , Custom = 2 } |
| Optional Earth-biology label; custom lifeforms use Custom + free-form kindId. 更多... | |
| enum class | ReproductionMode : std::uint8_t { None = 0 , PairGestation = 1 , SelfBud = 2 , Fission = 3 , SporeBurst = 4 } |
| Authored reproduction strategy — pair gestation is only one mode. 更多... | |
函数 | |
| Module_IMPL (Growth, new Growth()) | |
| Result< OrganismKind > | parseOrganismKind (std::string_view text) |
| Parses kind text: plant/animal/custom or any free-form tag → Custom. | |
| Result< ReproductionMode > | parseReproductionMode (std::string_view text) |
| Parses reproduction.mode text. | |
| Result< void > | normalizeSpeciesDef (SpeciesDef &def) |
| Fills needs/reproduction from legacy plant/animal fields when authors omit the new schema. @cost Cheap: copies a handful of meter/reproduction fields. | |
枚举类型说明
◆ GrowthEventKind
|
strong |
Kind of a deterministic growth lifecycle event.
| 枚举值 | |
|---|---|
| StageChanged | |
| Matured | |
| Produced | |
| Harvested | |
| Watered | |
| Fed | |
| Fertilized | |
| Diseased | |
| Cured | |
| Bred | |
| Offspring | |
| Died | |
在文件 GrowthEvents.h 第 11 行定义.
◆ OrganismKind
|
strong |
◆ ReproductionMode
|
strong |
Authored reproduction strategy — pair gestation is only one mode.
◆ Season
|
strong |
Legacy four-season index kept for Earth-farm defaults and older tests.
- 备注
- Prefer seasonIndex()/seasonId() when the calendar layout is custom.
| 枚举值 | |
|---|---|
| Spring | |
| Summer | |
| Autumn | |
| Winter | |
在文件 GrowthCalendar.h 第 23 行定义.
函数说明
◆ Module_IMPL()
| eve::growth::Module_IMPL | ( | Growth | , |
| new | Growth() | ||
| ) |
◆ normalizeSpeciesDef()
| EVENGINE_API_FOUNDATION Result< void > eve::growth::normalizeSpeciesDef | ( | SpeciesDef & | def | ) |
Fills needs/reproduction from legacy plant/animal fields when authors omit the new schema. @cost Cheap: copies a handful of meter/reproduction fields.
在文件 Species.cpp 第 428 行定义.
引用了 Animal, Custom, eve::Diagnostic::error(), eve::Result< T >::failure(), Fission, eve::growth::ReproductionDef::gestationDays, eve::growth::SpeciesDef::id, eve::growth::ReproductionDef::intervalDays, eve::InvalidArgument, eve::growth::SpeciesDef::kind, eve::growth::SpeciesDef::kindId, eve::growth::ReproductionDef::mode, eve::growth::SpeciesDef::needs, eve::growth::ReproductionDef::offspringSpeciesId, PairGestation, Plant, eve::growth::SpeciesDef::reproduction, eve::growth::ReproductionDef::requiresPartner, eve::growth::SpeciesDef::seasonMul, SelfBud, SporeBurst , 以及 eve::Result< T >::success().
◆ parseOrganismKind()
| EVENGINE_API_FOUNDATION Result< OrganismKind > eve::growth::parseOrganismKind | ( | std::string_view | text | ) |
Parses kind text: plant/animal/custom or any free-form tag → Custom.
在文件 Species.cpp 第 401 行定义.
引用了 Animal, Custom, Plant, eve::Result< T >::success() , 以及 text.
◆ parseReproductionMode()
| EVENGINE_API_FOUNDATION Result< ReproductionMode > eve::growth::parseReproductionMode | ( | std::string_view | text | ) |
Parses reproduction.mode text.
在文件 Species.cpp 第 411 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), Fission, eve::InvalidArgument, None, PairGestation, SelfBud, SporeBurst, eve::Result< T >::success() , 以及 text.