Class Plant
Inheritance
System.Object
Plant
Implements
System.IComparable
Assembly: Eco.Simulation.dll
Syntax
public abstract class Plant : Organism, ITickable, IComparable, INetTrafficCategory
Constructors
Plant()
Declaration
Plant(PlantSpecies, WorldPosition3i, PlantPack)
Declaration
public Plant(PlantSpecies species, WorldPosition3i position, PlantPack plantPack)
Parameters
Fields
NextSeedTime
Declaration
public double NextSeedTime
Field Value
Type |
Description |
System.Double |
|
TimeTillMatureHours
Declaration
public double TimeTillMatureHours
Field Value
Type |
Description |
System.Double |
|
Properties
DeathTime
Declaration
public double DeathTime { get; set; }
Property Value
Type |
Description |
System.Double |
|
GrowthBlocked
Declaration
public virtual bool GrowthBlocked { get; }
Property Value
Type |
Description |
System.Boolean |
|
GrowthPercent
Declaration
public override float GrowthPercent { get; set; }
Property Value
Type |
Description |
System.Single |
|
Overrides
NetTrafficCategory
Declaration
public virtual string NetTrafficCategory { get; }
Property Value
Type |
Description |
System.String |
|
PlantPack
Declaration
public PlantPack PlantPack { get; set; }
Property Value
Ripe
Declaration
public virtual bool Ripe { get; }
Property Value
Type |
Description |
System.Boolean |
|
Species
Declaration
public PlantSpecies Species { get; }
Property Value
Tended
Declaration
public bool Tended { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UpRooted
Declaration
public virtual bool UpRooted { get; }
Property Value
Type |
Description |
System.Boolean |
|
WillDecay
Declaration
public virtual bool WillDecay { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
CalculateResourceYield(Range, Single)
Declaration
protected virtual int CalculateResourceYield(Range range, float bonusMultiplier = 1F)
Parameters
Type |
Name |
Description |
Range |
range |
|
System.Single |
bonusMultiplier |
|
Returns
Type |
Description |
System.Int32 |
|
Destroy()
Declaration
public override void Destroy()
Overrides
GetEcosystemInfo()
Declaration
public LocString GetEcosystemInfo()
Returns
MarkDirty()
Declaration
RandomizeAge()
Declaration
public virtual void RandomizeAge()
ShouldDecay()
Declaration
public bool ShouldDecay()
Returns
Type |
Description |
System.Boolean |
|
Tick()
Declaration
public override void Tick()
Overrides
TrySeed(Double)
If possible, returns collection of position where plant leave the seeds. Can seed only once in SeedingTime.
Declaration
public IEnumerable<Vector2i> TrySeed(double time)
Parameters
Type |
Name |
Description |
System.Double |
time |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Vector2i> |
|
Implements
System.IComparable