载入中...
搜索中...
未找到
eve::growth 命名空间参考

类

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

enum class eve::growth::GrowthEventKind : std::uint8_t
strong

Kind of a deterministic growth lifecycle event.

枚举值
StageChanged 
Matured 
Produced 
Harvested 
Watered 
Fed 
Fertilized 
Diseased 
Cured 
Bred 
Offspring 
Died 

在文件 GrowthEvents.h 第 11 行定义.

◆ OrganismKind

enum class eve::growth::OrganismKind : std::uint8_t
strong

Optional Earth-biology label; custom lifeforms use Custom + free-form kindId.

备注
Simulation never branches on this enum — needs / reproduction / yields drive behavior.
枚举值
Plant 
Animal 
Custom 

在文件 Species.h 第 18 行定义.

◆ ReproductionMode

enum class eve::growth::ReproductionMode : std::uint8_t
strong

Authored reproduction strategy — pair gestation is only one mode.

枚举值
None 

No reproduction.

PairGestation 

Two parents; carrier gestates then spawns offspring.

SelfBud 

Single mature parent; interval then spawn (alien budding).

Fission 

Single parent splits; optional parent death or stage reset.

SporeBurst 

Periodic offspring bursts without a partner.

在文件 Species.h 第 44 行定义.

◆ Season

enum class eve::growth::Season : std::uint8_t
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()

◆ 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)