Show / Hide Table of Contents

Class Species

Inheritance
System.Object
Species
AnimalSpecies
PlantSpecies
Implements
IController
IViewController
IHasUniversalID
IStat
Namespace: Eco.Simulation.Types
Assembly: Eco.Simulation.dll
Syntax
public abstract class Species : Object, IController, IViewController, IHasUniversalID, IStat

Constructors

Species()

Declaration
protected Species()

Fields

MinNameToType

Declaration
public static Dictionary<string, Type> MinNameToType
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Type>

PopulationChangedEvent

Declaration
public static ThreadSafeAction<Species> PopulationChangedEvent
Field Value
Type Description
ThreadSafeAction<Species>

SpeciesStatCategory

Declaration
public const string SpeciesStatCategory = "Populations"
Field Value
Type Description
System.String

SpeciesWentExtinctEvent

Declaration
public static ThreadSafeAction<Species> SpeciesWentExtinctEvent
Field Value
Type Description
ThreadSafeAction<Species>

Properties

CalorieValue

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

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

CurrentPopulation

Declaration
public virtual int CurrentPopulation { get; }
Property Value
Type Description
System.Int32

DisplayDescription

Declaration
public LocString DisplayDescription { get; set; }
Property Value
Type Description
LocString

DisplayName

Declaration
public LocString DisplayName { get; set; }
Property Value
Type Description
LocString

InstanceType

Declaration
public Type InstanceType { get; set; }
Property Value
Type Description
System.Type

MaturityAgeDays

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

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

ReleasesCO2TonsPerDay

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

ResourceBonusAtGrowth

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

ResourceItemType

Declaration
public Type ResourceItemType { get; }
Property Value
Type Description
System.Type

ResourceList

Declaration
public List<SpeciesResource> ResourceList { get; set; }
Property Value
Type Description
System.Collections.Generic.List<SpeciesResource>

ResourceRange

Declaration
public Range ResourceRange { get; }
Property Value
Type Description
Range

Tags

Declaration
public string[] Tags { get; set; }
Property Value
Type Description
System.String[]

UniqueAbbreviation

Declaration
public string UniqueAbbreviation { get; }
Property Value
Type Description
System.String

VoxelsPerEntry

Declaration
public int VoxelsPerEntry { get; set; }
Property Value
Type Description
System.Int32

Methods

GetErrorDescription()

Declaration
public virtual string GetErrorDescription()
Returns
Type Description
System.String

GetWorldLayerMinimapName()

Declaration
public LocString GetWorldLayerMinimapName()
Returns
Type Description
LocString

Initialize()

Declaration
public void Initialize()

OnBirth()

Declaration
public void OnBirth()

OnDeath(Int32)

Declaration
public void OnDeath(int amount = 1)
Parameters
Type Name Description
System.Int32 amount

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Implements

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