Show / Hide Table of Contents

Class PlantSpecies

Inheritance
System.Object
Species
PlantSpecies
TreeSpecies
Implements
IController
IViewController
IHasUniversalID
IStat
Inherited Members
Species.PopulationChangedEvent
Species.SpeciesStatCategory
Species.MinNameToType
Species.SpeciesWentExtinctEvent
Species.Initialize()
Species.ToString()
Species.GetErrorDescription()
Species.GetWorldLayerMinimapName()
Species.OnBirth()
Species.OnDeath(Int32)
Species.InstanceType
Species.Name
Species.DisplayName
Species.DisplayDescription
Species.MaturityAgeDays
Species.CalorieValue
Species.ResourceList
Species.ResourceBonusAtGrowth
Species.ReleasesCO2TonsPerDay
Species.VoxelsPerEntry
Species.Tags
Species.CurrentPopulation
Species.UniqueAbbreviation
Species.ResourceItemType
Species.ResourceRange
Species.ControllerID
Namespace: Eco.Simulation.Types
Assembly: Eco.Simulation.dll
Syntax
public abstract class PlantSpecies : Species, IController, IViewController, IHasUniversalID, IStat

Constructors

PlantSpecies()

Declaration
public PlantSpecies()

Fields

CaloriesPerVoxelColumnPerDensity

Declaration
public float CaloriesPerVoxelColumnPerDensity
Field Value
Type Description
System.Single

CapacityConstraintsByLayer

Declaration
public Lazy<Dictionary<string, PlantSpecies.CapacityConstraint>> CapacityConstraintsByLayer
Field Value
Type Description
System.Lazy<System.Collections.Generic.Dictionary<System.String, PlantSpecies.CapacityConstraint>>

GenerationDefinitions

Declaration
public PlantGroupDefinition GenerationDefinitions
Field Value
Type Description
PlantGroupDefinition

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
Type Description
System.Lazy<System.Collections.Generic.Dictionary<System.String, PlantSpecies.ResourceConstraint>>

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
Type Description
System.Collections.Generic.List<PlantSpecies.CapacityConstraint>

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
Type Description
Range

GenerationSpawnPointMultiplier

Declaration
public float GenerationSpawnPointMultiplier { get; set; }
Property Value
Type Description
System.Single

GenerationSpawnSpread

Declaration
public Range GenerationSpawnSpread { get; set; }
Property Value
Type Description
Range

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
Type Description
Range

IdealTemperatureRange

Declaration
public Range IdealTemperatureRange { get; set; }
Property Value
Type Description
Range

IdealWaterRange

Declaration
public Range IdealWaterRange { get; set; }
Property Value
Type Description
Range

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
Type Description
Range

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
Type Description
PlantPopulationPuller

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
Type Description
System.Collections.Generic.List<PlantSpecies.ResourceConstraint>

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
Type Description
Range

Water

Declaration
public bool Water { get; set; }
Property Value
Type Description
System.Boolean

WaterExtremes

Declaration
public Range WaterExtremes { get; set; }
Property Value
Type Description
Range

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
Type Name Description
LayerPosition layerPosition
Returns
Type Description
LocString

DescribeSpace(LayerPosition)

Declaration
public LocString DescribeSpace(LayerPosition layerPosition)
Parameters
Type Name Description
LayerPosition layerPosition
Returns
Type Description
LocString

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
Type Name Description
WrappedWorldPosition3i placementPosition
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

IController
IViewController
IHasUniversalID
IStat
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾