载入中...
搜索中...
未找到
Species.h 文件参考
#include "common/Export.h"
#include "common/Result.h"
#include <cstdint>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>

浏览源代码.

类

struct  eve::growth::GrowthStageDef
 One authored growth stage for a species. 更多...
 
struct  eve::growth::YieldDef
 One item emitted by harvest or periodic produce. 更多...
 
struct  eve::growth::NeedMeterDef
 Named vital meter (water, radiation, ether, …) — not fixed to Earth biology. 更多...
 
struct  eve::growth::ReproductionDef
 Species reproduction parameters selected by ReproductionMode. 更多...
 
struct  eve::growth::DiseaseSusceptibility
 Per-day infection chance while the organism is stressed. 更多...
 
struct  eve::growth::SpeciesDef
 Static species definition — fully data-driven life cycle. 更多...
 
class  eve::growth::SpeciesRegistry
 Process-wide species table used by GrowthWorld and Organism factories. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::growth
 

枚举

enum class  eve::growth::OrganismKind : std::uint8_t { eve::growth::Plant = 0 , eve::growth::Animal = 1 , eve::growth::Custom = 2 }
 Optional Earth-biology label; custom lifeforms use Custom + free-form kindId. 更多...
 
enum class  eve::growth::ReproductionMode : std::uint8_t {
  eve::growth::None = 0 , eve::growth::PairGestation = 1 , eve::growth::SelfBud = 2 , eve::growth::Fission = 3 ,
  eve::growth::SporeBurst = 4
}
 Authored reproduction strategy — pair gestation is only one mode. 更多...
 

函数

Result< OrganismKind > eve::growth::parseOrganismKind (std::string_view text)
 Parses kind text: plant/animal/custom or any free-form tag → Custom.
 
Result< ReproductionMode > eve::growth::parseReproductionMode (std::string_view text)
 Parses reproduction.mode text.
 
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.