Class PlantSpecies
Inheritance
System.Object
PlantSpecies
Assembly: Eco.Simulation.dll
Syntax
public abstract class PlantSpecies : Species, IController, IViewController, IHasUniversalID, IStat
Constructors
PlantSpecies()
Declaration
Fields
CaloriesPerVoxelColumnPerDensity
Declaration
public float CaloriesPerVoxelColumnPerDensity
Field Value
| Type |
Description |
| System.Single |
|
CapacityConstraintsByLayer
Declaration
public Lazy<Dictionary<string, PlantSpecies.CapacityConstraint>> CapacityConstraintsByLayer
Field Value
GenerationDefinitions
Declaration
public PlantGroupDefinition GenerationDefinitions
Field Value
GrowthLayerSuffix
Declaration
public const string GrowthLayerSuffix = "Growth"
Field Value
| Type |
Description |
| System.String |
|
MinHabitability
Declaration
public const float MinHabitability = 0.4F
Field Value
| Type |
Description |
| System.Single |
|
ResourceConstraintsByLayer
Declaration
public Lazy<Dictionary<string, PlantSpecies.ResourceConstraint>> ResourceConstraintsByLayer
Field Value
SeedsLayerSuffix
Declaration
public const string SeedsLayerSuffix = "Seeds"
Field Value
| Type |
Description |
| System.String |
|
YieldPotentialLayerSuffix
Declaration
public const string YieldPotentialLayerSuffix = "YieldPotential"
Field Value
| Type |
Description |
| System.String |
|
Properties
BlanketSpawnPercent
Declaration
public float BlanketSpawnPercent { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
BlockType
Declaration
public Type BlockType { get; set; }
Property Value
| Type |
Description |
| System.Type |
|
CaloriesToPlant
Declaration
public float CaloriesToPlant { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
CapacityConstraints
Declaration
public List<PlantSpecies.CapacityConstraint> CapacityConstraints { get; set; }
Property Value
Decorative
Declaration
public bool Decorative { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ExperiencePerHarvest
Declaration
public float ExperiencePerHarvest { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
GenerationSpawnCountPerPoint
Declaration
public Range GenerationSpawnCountPerPoint { get; set; }
Property Value
GenerationSpawnPointMultiplier
Declaration
public float GenerationSpawnPointMultiplier { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
GenerationSpawnSpread
Declaration
public Range GenerationSpawnSpread { get; set; }
Property Value
GrowthLayer
Declaration
public string GrowthLayer { get; }
Property Value
| Type |
Description |
| System.String |
|
Height
Declaration
public int Height { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
IdealMoistureRange
Declaration
public Range IdealMoistureRange { get; set; }
Property Value
IdealTemperatureRange
Declaration
public Range IdealTemperatureRange { get; set; }
Property Value
IdealWaterRange
Declaration
public Range IdealWaterRange { get; set; }
Property Value
IsConsideredNearbyFoodDuringSpawnCheck
Declaration
public bool IsConsideredNearbyFoodDuringSpawnCheck { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
MaxDeathRate
Declaration
public float MaxDeathRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
MaxGrowthRate
Declaration
public float MaxGrowthRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
MaxPollutionDensity
Declaration
public float MaxPollutionDensity { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
MoistureExtremes
Declaration
public Range MoistureExtremes { get; set; }
Property Value
MoveThroughCost
Declaration
public float MoveThroughCost { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
NoSpread
Declaration
public bool NoSpread { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
PickableAtPercent
Declaration
public float PickableAtPercent { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
PlantAgeToSeed
Declaration
public float PlantAgeToSeed { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
PollutionDensityTolerance
Declaration
public float PollutionDensityTolerance { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
PopulationLayer
Declaration
public string PopulationLayer { get; }
Property Value
| Type |
Description |
| System.String |
|
PopulationPuller
Declaration
public PlantPopulationPuller PopulationPuller { get; }
Property Value
PostHarvestingGrowth
Declaration
public float PostHarvestingGrowth { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
RequireHarvestable
Declaration
public bool RequireHarvestable { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ResourceConstraints
Declaration
public List<PlantSpecies.ResourceConstraint> ResourceConstraints { get; set; }
Property Value
ScythingKills
Declaration
public bool ScythingKills { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
SeedingArea
Declaration
public float SeedingArea { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
SeedingTime
Declaration
public double SeedingTime { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
SeedsCount
Declaration
public int SeedsCount { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
SeedsLayer
Declaration
public string SeedsLayer { get; }
Property Value
| Type |
Description |
| System.String |
|
SpreadRate
Declaration
public float SpreadRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
TemperatureExtremes
Declaration
public Range TemperatureExtremes { get; set; }
Property Value
Water
Declaration
public bool Water { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
WaterExtremes
Declaration
public Range WaterExtremes { get; set; }
Property Value
YieldLayer
Declaration
public string YieldLayer { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
CalculateMoveThroughCost()
Declaration
public void CalculateMoveThroughCost()
CheckAreaForHabitability(LayerPosition, out Single, out Single, out Single, out Single)
Declaration
public float CheckAreaForHabitability(LayerPosition layerPosition, out float temperature, out float moisture, out float pollution, out float saltwater)
Parameters
| Type |
Name |
Description |
| LayerPosition |
layerPosition |
|
| System.Single |
temperature |
|
| System.Single |
moisture |
|
| System.Single |
pollution |
|
| System.Single |
saltwater |
|
Returns
| Type |
Description |
| System.Single |
|
CreateLayerInteractions()
Declaration
public void CreateLayerInteractions()
CreateSubLayerSettings()
Declaration
public void CreateSubLayerSettings()
DescribeHabitability(LayerPosition)
Declaration
public LocString DescribeHabitability(LayerPosition layerPosition)
Parameters
Returns
DescribeSpace(LayerPosition)
Declaration
public LocString DescribeSpace(LayerPosition layerPosition)
Parameters
Returns
HabitabilityModifier(Single, Single, Single, Single)
Declaration
public float HabitabilityModifier(float temperature, float moisture, float pollution, float saltwater)
Parameters
| Type |
Name |
Description |
| System.Single |
temperature |
|
| System.Single |
moisture |
|
| System.Single |
pollution |
|
| System.Single |
saltwater |
|
Returns
| Type |
Description |
| System.Single |
|
IsGoodPlacement(WrappedWorldPosition3i)
Checks if placementPosition is good for that plant species.
Declaration
public bool IsGoodPlacement(WrappedWorldPosition3i placementPosition)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
RangesToModifier(Range, Range, Single)
Declaration
public static float RangesToModifier(Range outerRange, Range innerRange, float value)
Parameters
| Type |
Name |
Description |
| Range |
outerRange |
|
| Range |
innerRange |
|
| System.Single |
value |
|
Returns
| Type |
Description |
| System.Single |
|
Implements